-
Used release is Debian 10 - Buster
-
Sources and issues reports on Github
Guide for basic Debian installation with Gnome desktop.
Minimal system installation
| All commands have to be run as superuser. |
-
Create bootable USB. If extra firmware(drivers) are needed, download them from Debian repositories website and put .ucode and .fw files in the root of another USB.
-
Boot system from USB. If UEFI installation is needed, boot the USB in UEFI mode, and after keyboard configuration go to a new terminal(
ctrl+alt+f2) and type:[ -d /sys/firmware/efi ] && echo UEFI || echo Legacy
which it is going to print if the system was booted in UEFI or Legacy mode. Return to installation with (
ctrl+alt+f1). -
Follow installation steps and when you reach Software Selection section, ONLY tick Standard System Utilities for a minimal system installation.
For more detailed info about this step, you can follow this guide. -
Reboot system and remove usb.
Connect to a wireless network [Optional]
-
Login as superuser:
su -
-
Look for the interface that will be used (Wifi interfaces usally have a name like
wlan0orwlp1s0):ip a
-
Turn on the interface:
ip link set INTERFACE_NAME up
-
Look for a network to connect (replace interface name):
iw INTERFACE_NAME scan | less
-
Create a file with the network(replacing
NETWORK_NAME). NOTE: After run the command, the password has to be inmediately typed:wpa_passphrase NETWORK_NAME >> /etc/wpa_supplicant/wpa_supplicant.conf
-
Init the connection, using
-Bflag to run on background:wpa_supplicant -B -i INTERFACE_NAME -c /etc/wpa_supplicant/wpa_supplicant.conf
-
Get an ip address using dhcp client:
dhclient INTERFACE_NAME
-
Test connection(ping to Google dns):
ping 8.8.8.8
-
In case is needed, to release ip type:
dhclient -r
-
This step is no needed, but if you want to turn off the interface:
ip link set INTERFACE_NAME down
Configure repositories
-
Enter as superuser:
su -
-
Edit repositories file (nano editor is used here):
nano /etc/apt/sources.list
-
Comment the lines(add
#at the beginning of line) if they start withdeb cdrom. -
Add
contribandnon-freepackages, appendingcontrib non-freeaftermainin each repository line -
Adjust mirror repository on each url based on your location, look for it at Debian Mirrors website.
-
[Optional] To use Debian Testing distribution you should replace
stablefortestingon each line. For more information go to Debian Releases website.This step is only needed if the Debian Testing release is desired. -
Save and quit(
ctrl+o,ctrl+x). -
It may end up like this(replace
MIRRORwith you region):sources.listdeb http://ftp.MIRROR.debian.org/debian/ stretch main contrib non-free deb-src http://ftp.MIRROR.debian.org/debian/ stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib non-free deb-src http://security.debian.org/ stretch/updates main contrib non-free deb http://ftp.MIRROR.debian.org/debian/ stretch-updates main contrib non-free deb-src http://ftp.MIRROR.debian.org/debian/ stretch-updates main contrib non-free
-
[Optional] If you want newer packages on a stable release (from testing distribution, mostly) you could append the backports repositories:
sources.list[fragment]# ... previous sources ... # backports deb http://ftp.MIRROR.debian.org/debian/ stretch-backports main contrib non-free deb-src http://ftp.MIRROR.debian.org/debian/ stretch-backports main contrib non-free
These are the "Stretch" backports repositories. For more information look for the official backports instructions. After each Debian stable release it will take a few days before backports are available. Important, to install any package from the backports, it has to be installed with:
apt-get -t stretch-backports install "package"
Update & Upgrade
-
Update packages:
apt-get update
-
Upgrade packages:
apt-get upgrade
-
If testing repositories were added, it will need a dist-upgrade:
apt-get dist-upgrade
Add superuser privileges to main user
-
Install
sudopackageapt-get install sudo
-
Add user to group
sudo(which is on file: with the permissions, replace USERNAME):adduser USERNAME sudo
As an alternative it can be used:
usermod -a -G sudo USERNAME
These commands modify the /etc/sudoers file.
|
Install firmware
-
Install device linux firmware
apt-get install firmware-linux firmware-linux-free firmware-linux-nonfree
-
Install wifi firmware:
apt-get install firmware-iwlwifi
Install minimal Gnome desktop
-
Install display server(
xserver-xorg-core), minimal gnome desktop(gnome-core) and gnome display manager(gdm3):apt-get install gnome-core gdm3
Install Graphics card firmware
Install Nvidia Drivers
-
Install Nvidia detect to identify the used nvidia card:
apt install nvidia-detect
-
Run command:
nvidia-detect
You will obtain a message like this image::img/nvidia-detect.png[Nvidia Detect] -
Install Nvidia firmware, and follow the instructions:
apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
Usually propietary drivers for Gpus have a better performance, they can be downloaded from their own websites. BUT OS drivers have a better compatibillity with other software, Steam for example.
Install AMD Graphics Drivers
-
Install AMD graphics firmware:
apt install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') fglrx-driver
Reboot
-
Reboot system:
reboot
| After the installation you should verify that the Debian partition is the primary boot drive for your device in order to run the grub on multi-booting systems. |