Install Debian
NotesThese steps were written for Debian 12. Debian 13 “trixie” is now the current release, and installs the same way.
For the most part, installing linux is self-explanatory, click through the various prompts and accepting defaults.
Select the Graphical Installation from the boot menu to begin:
You’ll first be asked to select a language:
Choose your location:
Select you keyboard layout:
Enter what you’d like the hostname to be of your Virtual Machine, be aware that when on the command line the hostname is included in BASH terminal, for example richard@hostname, in this case I’m using “debian”, so I’ll get richard@debian, but you can call it whatever you prefer!
This next screen is talking about belonging to a domain, but for a local virtual machine and generally speaking this can be left blank and ignored.
Next you need to enter and confirm the root user password:
Enter you full name, such as “Joe Bloggs”, or as the screenshot depicts just a name with suffice:
The username is usually suggested based off what you entered previously from your full name, but you cna change it is you like:
Then enter and confirm a password for your user account:
The next part is to select and partition you VMs disk. Without getting bogged down in detail it’s absolutely fine to use the guided partitioner and user the whole disk in a single partition configuration.
You can ignore adding extra media:
Again, you can include a mirror here for the latest packages, but updates can always be applied post install, so for speed select no:
The next question boils down to where you stand on privacy, a lot of applications and operating systems these days love to collect usage data which helps them priorities effort on their development, the choice is yours:
An important step, make sure to select “SSH server” to make it easy to SSH into the Virtual Machine from other hosts. And, select the GUI you wish to use. Linux’s desktops are a personal choice, I’ve used all of them from time to time. One thing to keep in mind is that Gnome tends to be the default and the most likely to be frequently tuned and maintained.
Remember, most popular Linux distributions are Debian based, so for example if you like the Cinnamon Desktop, using Linux Mint is a good choice because they use Cinnamon as their default desktop and therefore you’re likely to have a good experience.
Ubuntu (debian based) now use Gnome but tailor it to their behave like there previous Unity desktop. However, Ubuntu has “Ubuntu Flavours” https://ubuntu.com/desktop/flavours, so if you like a specific Desktop, use the dedicate flavour for a better experience.
Likewise, Fedora (not debian based) does the same thing with Fedora Spins https://fedoraproject.org/spins/.
For this Debian 12 installation, I’m suggesting it’s best to stick with Gnome as the desktop:
You be promoted where to install GRUB, for this single disk Virtual Machine, you only have one choice:
All being well, you should be prompted to restart the VM, and it should boot up ready to use:
So once you logged into your new Debian 12 Virtual Machine, there a couple of things to do. First, make sure you user is added to sudoers, add a file, for example:
/etc/sudoers.d/richard
richard ALL=(ALL:ALL) NOPASSWD:ALLThis adds your user account to sudoers and lets you run sudo commands without being promted with a password.