Installing Debian 10
As of this writing, 2019-04-25, the current stable version of Debian is version 9, codenamed “stretch”. As such, this chapter of Prot’s Dots For Debian (PDFD) is not meant for the general public, but only for early adopters (“beta testers”). The instructions below will not get you Debian 10 ‘buster’. You will instead be installing the current stable version.
To actually get ‘buster’ prior to its release you need to configure your
APT sources accordingly and then manually upgrade from Stretch to Buster
sudo apt update && sudo apt full-upgrade). This process is prone
to failure, might require manual interventions, could remove critical
packages, and should never be attempted on mission critical hardware or
without full understanding of its potential consequences. I leave you
with the contents of my
/etc/apt/sources.list and wish you good luck:
deb http://deb.debian.org/debian/ buster main non-free contrib deb-src http://deb.debian.org/debian/ buster main non-free contrib deb http://security.debian.org/debian-security buster/updates main contrib non-free deb-src http://security.debian.org/debian-security buster/updates main contrib non-free # buster-updates, previously known as 'volatile' deb http://deb.debian.org/debian/ buster-updates main contrib non-free deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
The following information will be valid after the official release of Debian 10. This book’s relevant sections shall be updated accordingly.
To get Debian 10 ‘buster’ on our machine, we are going to use one of the
netinstall iso images. The official way is to follow the standard
method, which includes only free/libre software, or to use the
unconventional method which comes preconfigured with the
non-free package repos. The latter is intended for awkward hardware
setups that absolutely require certain non-free packages (firmware
drivers) to run the installer. Here are the corresponding links:
Short note about free software
Debian refers to the second iso as “unofficial”. Do not let that mislead you. It is still provided by the team responsible for the installer images. In this context, “unofficial” means that it does not fully conform with Debian’s Free Software Guidelines.
While understandable, this is a rather unconvincing attempt to maintain the line that Debian only ships with free/libre software. I can, thus, understand why the Free Software Foundation and GNU1 do not include Debian in their list of approved distributions that do not sacrifice software freedom for convenience.2
Personally, I use Debian with a single non-free package that is necessary to enable my Wi-Fi card. Otherwise I could not run a free OS at all. Still, Debian can be run with only free software by simply removing any “contrib” and “non-free” entries from its APT sources list. System administration of this sort is outside the scope of PDFD. I have, nonetheless, taken care to only recommend libre software in the pages of this book.
Writing the latest release iso
Politics aside, let us proceed with the installation. You need to verify your iso with information provided by Debian (from the pages you get the iso from). Once the checks are done, write the iso to a flash drive. I usually follow these steps after I insert the medium and open a new terminal:
# prints information about devices sudo fdisk -l # the flash drive I insterted is usually at /dev/sdb # unmount the flash drive umount /dev/sdb # write to it sudo dd if=/path/to/iso/file of=/dev/sdb # eject the flash drive sudo eject /dev/sdb
Please be extemely careful with the above commands, especially when
identifying the flash drive. Pay attention to the output of
-l and make sure you correctly spot the writeable medium you intend to
use. Carelessness might result in data loss or other damages.
The installation process
Now on to get Debian on the machine. Insert the flash drive and power on the computer. You are given the choice of a graphical or textual interface, as well as advanced options. If in doubt, go with the graphical option. Once the installer starts, you will have to choose your language and keyboard settings, set your root user’s password, create a regular user, and the like.
At some point in the installation process, you will be asked to select your major system components. These include a Desktop Environment, an SSH server, a print server, and a web server. I always keep the first option checked, then using the space key to toggle on/off I add MATE, SSH server, remove the print server, and keep the standard system utilities.
The selection screen looks like this:
[x] Debian desktop environment [ ] ... GNOME [ ] ... Xfce [ ] ... KDE [ ] ... Cinnamon [x] ... MATE [ ] ... LXDE [ ] web server [ ] print server [x] SSH server [x] standard system utilities
You can omit the SSH server if you have no use for it. Follow the remaining steps and after a while you will have successfully installed Debian on your machine. Congratulations!
Later in the book I explain why you should also choose MATE. For the time being, let us proceed to the next chapter of actually installing the core packages and configuring things accordingly.