June 04, 2020
Installing Debian Buster on the Desktop
Tutorial to installation and setup of Debian Buster on the desktop with screenshots.
We will be describe blank installation of Debian Buster 10.4 in this post. An installer in different versions may be slightly different. For our purpose we will use a computer with one hard disk, which we will be format and create new volumes. For security reasons we will use disk encryption by dm-crypt/Linux Unified Key Setup (LUKS) and for managing encrypted disk we will use Logical Volume Manager (LVM). Creating more volumes in not necessary. You can have everything in one volume but it is more secure to use more volumes. If some volume will be broken, for example by power cut, then other volumes remain intact.
We will create two physical volumes on our hard disk. First volume of 1 GB for system loader and related files, will be mounted as /boot and formatted by ext2 file system because in this case we don’t need journal. Only this volume will not be encrypted. Second volume of up to all free capacity will be reserved as physical volume for encrypting. We will create in this physical volume one volume group and inside this group three logical volumes, namely root volume mounted as /, user volume mounted as /home and swap volume. The root volume and user volume will be formatted by ext4 file system, swap volume has own file system.
Now, few words to volume sizes. There are no rules for volume sizes. You can set volume sizes by your needs. Usually, I set for root volume 100 GB, for swap volume size by physical RAM size and for user volume all remain free capacity.
We start the installation by system loading. We can to use previously created installable USB sticker. Now, we USB sticker insert into computer, restart system and set boot from USB sticker. If it is all right, then we see installer menu:
We don’t choose any standard options but we choose option “Advanced options” for more install options:
And then we choose option “Expert install” for customizing our installation:
Now, we see the installer main menu. The installer is designed so that you can go to previous step in every time and make changes. Now, we start the installation and at first we select language:
We choose option “English”:
We choose location “United States”:
And then we choose location “United States” again:
We continue by choosing locales. Locales are implicit set by default by the previously specified location. We keep default settings:
We continue by setting access software for a blind person. If you don’t use braille display, then only confirm to continue.
We continue by keyboard configuring:
We choose option “American English”:
We continue by disk detecting. In our case, the installer considers USB sticker as CD-ROM:
The installer offers to us loading some special modules, which we need. We choose all options (if not) and confirm to continue:
If everything is all right, then we see this message. We confirm it for continue:
We continue by loading installer components. In our case, the installer considers USB sticker as CD-ROM:
The installer offers to us installing some additional components. Usually, we don’t need to install them. We confirm it only for continue.
We continue by detecting network hardware. Usually just, we confirm it for continue:
We continue by network configuring:
We choose option “Yes”.
We accept default time value and confirm it for continue:
We enter computer name. If it is home computer then you can enter any name, for example your name. The computer name will be listed in terminal, for example john@debian:~/. If it is company computer, then you must to accept rules of your company:
We enter computer domain. If it is home computer then you can enter any name. If you have more computers, then it is good idea enter same domain to all your computers. If it is company computer, then you must to accept rules of your company:
We continue by setting the login and password:
We choose option “Yes”. The NIS mean Network Information Service and it is client-server protocol for distributing system configuration data.
We choose option “No”. For security reasons is not good idea to have root user directly accessible. It is better idea disable it and use access to root by sudo:
We enter the full user name:
We enter the login name:
We enter the password:
We enter the password again for confirmation:
We continue by system clock configuring:
We choose option “Yes”. We set and synchronize the system clock by Network Time Protocol:
We enter the network time server URL. The URL mean Uniform Resource Locator. It is good idea use some geographically near server.
We choose time zone, in our case “Eastern”. UNIX computers work with UTC time and local time show to us by time zone settings.
We continue by disk detecting. The installer find all available disks:
We continue by partition disks:
We choose option “Manual”:
We select disk for partitioning. If we have more disks then we must to select just one disk:
We choose option “Yes”. We create empty partition table:
We choose option “msdos”:
We continue by physical volumes creating. We see here, how much free space (17.2 GB) we have on the partitioned disk. We select menu item “FREE SPACE”:
We create volume for system loader and related files. We choose option “Create a new partition”:
We enter the value 1 GB:
We choose option “Primary”:
We choose option “Beginning”:
We choose options “Ext2 file system”, “/boot” and bootable flag “on”. We confirm it by menu item “Done setting up the partition”:
We was returned back to partition menu. Now, we see newly created volume and create second physical volume for encryption. We select menu item “FREE SPACE”:
We choose option “Create a new partition”:
We use all free disk capacity for new partition size. We accept the default value (16.2 GB) and confirm it for continue:
We choose option “Logical”:
We choose options “physical volume for encryption”, “Passphrase” and bootable flag “off”. We confirm it by menu item Done setting up the partition:
We was returned back to partition menu. We see two newly created volumes. Now, we write changes to disk and encrypt disk. We choose option “Configure encrypted volumes”:
We choose option “Yes” and write changes to disk:
We choose option “Create encrypted volumes”:
We choose option “/dev/sda5 (16177MB; crypto)”. The option “/dev/sda1 (999MB; ext2)” must not be chosen! We confirm it for continue:
We choose option “Finish”:
We choose option “Yes”:
We wait to overwriting by random characters. It can take a long time. You can skip it by option “Cancel”:
We enter the password for access to encrypted disks. You will be asked for this password each booting:
We enter the password for access to encrypted disks again for confirmation:
We choose option “Yes”. We accept short password:
We continue by one volume group creating and then three logical volumes creating. We choose option “Configure the Logical Volume Manager”:
We choose option “Yes” and write changes to disk:
We choose option “Create volume group”:
We enter the volume group name. Usually, I name it by current computer name:
We choose option “/dev/mapper/sda5_crypt (16160MB; ext4)”. The option “/dev/sda1 (999MB; ext2)” must not be chosen! We confirm it for continue:
We create logical volumes. First, we create root volume. We choose option “Create logical volume”:
We choose volume group, in our case “debian”:
We enter the root volume name. Usually, I name it as “root”:
We enter the root volume size. Usually, I set 100 GB, here for example 10 GB:
Secondly, we create swap volume. We choose option “Create logical volume”:
We choose volume group, in our case “debian”:
We enter the swap volume name. Usually, I name it as “swap”:
We enter the swap volume size. Usually, I set physical RAM size, here for example 2048 MB:
Thirdly, we create user volume. We choose “Create logical volume”:
We choose volume group, in our case “debian”:
We enter the user volume name. Usually, I name it as “home”:
We enter the user volume size. Usually, I enter remain free disk capacity, here for example 4110 MB:
We choose option “Finish”:
We set logical volumes. First, we set user volume. We choose option “#1 4.1 GB” (in our case):
We choose option “Use as: do not use”:
We choose option “Ext4 journaling file system”:
We set mount point as “/home” and confirm by menu item “Done setting up the partition”:
Secondly, we set root volume. We choose option “#1 10.0 GB” (in our case):
We choose option “Use as: do not use”:
We choose option “Ext4 journaling file system”:
We set mount point as “/” and confirm by menu item “Done setting up the partition”:
Thirdly, we set swap volume. We choose option “#1 2.0 GB” (in our case):
We choose option “Use as: do not use”:
We choose option “swap area”:
We choose option “Done setting up the partition”:
We write all changes to disk. We choose option “Finish partitioning and write changes to disk”:
We confirm it. We choose option “Yes”:
We continue by installing base system:
We wait to installing base system. It can take a some time.
We choose option “linux-image-amd64”. We use common metapackage:
We choose option “generic: include all available drivers”:
We continue by configuring the package manager:
We choose option “No”. We don’t scan another install CD-ROM or DVD:
We choose option “Yes”. We use downloading from Debian servers or its mirrors:
We choose option “http”:
We choose option “United States”:
We choose concrete Debian server or its mirror. It is good idea choose server geographically near:
If you use proxy, then enter necessary data for connection, else leave blank and continue:
We choose option “Yes”. We allow the installation non-free software:
We choose option “Yes”:
We choose all options and continue. We use all types of updates:
We continue by select and install software:
We choose option “No automatic updates”. I prefer updating manually in according with my needs:
We choose option “Yes”. We help to Debian developers:
We choose options “Debian desktop environment”, “print server”, “standard system utilities” and choose graphic environment “… Xfce”. I prefer XFCE but you can install different.
We continue by installing of boot loader. The Debian use boot loader GRUB. It mean GRand Unified Bootloader:
We choose option “Yes”. We have only one operating system:
We choose option “/dev/sda” (in our case). If you have more disks, then choose option very carefully:
We choose option “No”:
We continue by finishing the installation:
We choose option “Yes”. The system clock is set to UTC:
The installation is finished. We remove install USB sticker and restart computer:
If it is all right, then we see loader menu. We choose option “Debian GNU/Linux” or wait few seconds to start booting automatically:
We enter password to encrypted disk:
We enter login and password to computer:
We choose option “Use default config” (on first booting only):
Congratulations! Your Debian Buster is running:
Now, we install some additional packages. First, we update repositories and installed packages. You can update it in every time:
sudo apt-get update
sudo apt-get upgrade
Optionally, we install packages with free and non-free system kernel drivers:
sudo apt-get install firmware-linux firmware-linux-nonfree
Optionally, we install WiFi driver:
sudo apt-get install firmware-iwlwifi
Optionally, we install utility for enabling keyboard’s Numeric Lock during X11 session:
sudo apt-get install numlockx
Optionally, we install support for downloading by HTTPS:
sudo apt-get install apt-transport-https curl
Finally, we restart computer for apply changes. Installing is finished. Happy working with Debian!
Related posts
Installable USB Sticker with Debian Buster
Installing proprietary graphics drivers on the Debian Buster