Installation of GNU Linux Debian 12 (Bookworm) + KDE in graphical mode for workstations from scratch and step by step

Banner installing debian 12 bookworm + kde

In this article we will see step by step how to install GNU Linux Debian 12 (Bookworm) in graphical mode and with the KDE desktop environment.

Why do we choose the KDE desktop environment?

The answer to this question is quite simple. Although there are many desktop environments for Linux within which we can mention Gnome, LXDE, Mate, XFCE, Cinnamon, to name a few examples, none of the above is as complete and customizable as KDE. Most Linux distributions come by default with Gnome, which is the most popular desktop environment in GNU Linux distributions, but it lacks advanced customization features, graphical environment applications for integration with the operating system, in this none aspect surpasses KDE.

In previous versions, users did not use KDE due to resource limitations or sometimes lack of knowledge. However, today the KDE Desktop Environment is as lightweight or lighter than other alternatives and is capable of running on low-resource computers.

KDE has visual themes, window themes, icon themes, cursor themes, widgets, boot screens, session manager screens, home screens, animations, gesture control, etc. You can even make your system visually look like a MacOS or Windows or better yet give it a unique appearance.

If you are a lover of customization and changing your entire system down to the smallest detail, then KDE is the desktop environment for you, if not, you can also customize it so that it is the most minimalist you can use, with KDE there are no limits .

For the installation we will use a DVD version ISO image (debian-12.X.X-amd64-DVD-1.iso) which can be downloaded from the following page:

https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/

Please note that in this example we will be installing on the amd64 architecture. If you want to install on a different architecture, you must download the ISO corresponding to your architecture.
We can do this installation on both physical equipment (Laptops, desktop PCs, mini-computers) and virtual equipment (Virtual Machines). If you want to install it on a physical computer, you can use a USB stick properly prepared with software to serve as installation media. Here are two links to articles that talk about these tools in case you need them.

Herramientas para preparar memorias USB para instalación o boot live CD (ISO a USB)

Preparar memoria USB con Balena Etcher

The first step is to make the computer where we will install start with the installation media. Once the computer boots, a screen like the following should appear, in which we will select the “Graphical install” option. You must pay attention and carefully read the messages displayed by the installation program so that everything goes correctly.

Debian 12 DVD boot menu in graphical mode

Next, the installation program will allow us to select the language, in our case we will select “Spanish – Español” in the list and click on the continue button

Debian 12 Installer Language Selection

Next, the installation wizard will ask us for our geographical location. This data will be used to establish our time zone and regional settings, in our case we will select Spain, but you must choose yours

Debian installer location (country) selection list in graphical mode

The next step is to select the language of our keyboard, depending on the keyboard you have, be free to select the option that suits your keyboard and click the continue button.

Debian 12 Installation Keyboard Language Selection List in Graphical Mode

The next step is to configure the network, for which we can wait a few seconds and the installation program will try to do the automatic configuration using DHCP. Otherwise you will have to specify the data corresponding to the network where you are located, which the installation wizard will request.

Automatic network configuration of the Debian 12 installer in graphical mode

The next step is to establish the name of the equipment we are installing, for which we write the desired name in the edit box and click continue. Feel free to choose whatever name you want for your PC.

Specifying computer name in network configuration of the Debian 12 installer in graphical mode

The installation program will then ask for the domain name. We specify the same in the edit box and click continue.

Network domain name configuration in Debian 12 installer in graphical mode

Now it’s time to specify the password for the root user. You must use a strong password, since the root account is the one that has all system administration permissions and must be protected with a strong password. Once the password has been written and confirmed, we click on the continue button.

Specifying root user password in Debian 12 installer in graphical mode

Now it’s time to specify the full name of the user who will use the device. This is the name that will be displayed, it can be your real full name or how you would like your computer login account to be displayed. Example: Juan Pérez, Pablo Díaz…, in our case we call him “Administrator”, but you can specify the one you want.

Specifying username in Debian 12 installer in graphical mode

The next information requested is which user will use the previous account to access the system, it does not have to match, but generally we use something similar. Note that by convention users are lowercase.

User specification in Debian 12 installer in graphical mode

Next we will set the password for our new user as shown in the following image, it is advisable to use a good password.

Specifying user password in Debian 12 installer in graphical mode

Now let’s choose the time zone. In our case we used the “Peninsula” one as shown in the following image, feel free to choose yours.

Time zone selection in Debian 12 installer in graphical mode

At this point comes the most important part of the installation, which is where we define which storage the system will be installed on. In this case we will do a simple installation. In later articles we will address other more advanced topics regarding that, so we will select the “Guided – use the entire disk” mode. It is important to emphasize that this will erase all partitions and information on the disk that will be selected in the next step.

Selecting the Debian 12 installer partitioning mode in graphical mode

Now we select the disk where the partitions will be made and click continue

Disk selection to install the operating system with Debian 12 installer in graphical mode

In this initial guide, we recommend choosing the “All files in one partition” option, this is also a topic that will be covered in later articles.

Partition scheme selection in Debian 12 installer in graphical mode

Next, we will be shown the list of partitions that the installer will create: a small one that will be used as a boot EFI partition, another larger one that will be used as full system storage and another small one that will be used as a swap area. Then, we select “Finish partitioning and write changes to disk” and click continue

Example of disk partitioning for Debian 12 installation using the graphical mode of the installer

We confirm so that the changes are applied and continue.

Confirmation of writing changes to partitioner disk in Debian 12 installer in graphical mode

At this point we have to wait for the base system to be installed.

Base system installation progress in Debian 12 installer in graphical mode

Once the previous step is completed, we could analyze other installation media, but in this case we will select no.

Debian 12 Installer Additional Installation Media Review Selection in Graphical Mode

It will also ask us for a network replica which we could select if we are installing the system and we have an internet connection in it. If not, we simply select no and continue.

Confirmation to use a network mirror of the Debian 12 installer in graphical mode

Here we can choose if we want to contribute and send usage statistics for software packages, this is up to you, in our case we will select no.

Selecting participation in the Debian 12 installer package usage survey in graphical mode

If you have come this far, the installation of the base system has already been completed, now we have to select what additional software we will use. In this case we verify that the “Debian Desktop Environment” option is checked, we uncheck GNOME and we are going to select “KDE Plasma”. Additionally, we will see that the last option that says “Standard system utilities” is checked so that the necessary basic commands are included.

Selection of programs in Debian 12 installer in graphical mode

Now there is only a little left during the installation process while a screen like the following is displayed

software installation progress in Debian 12 installer in graphical mode

Once the installation is complete, a screen like the following will be displayed

Installation completed in Debian 12 installer in graphical mode

Congratulations! You have now completed the installation of your Debian 12 operating system with KDE desktop environment. Now we proceed to remove the installation media and let the system boot for the first time.

Below is the boot menu of the operating system, which will start the first option automatically in a few seconds

Debian 12 Grub selection menu with Joy theme

Once the system loads, this screen appears in which we can change the desktop session manager, which by default is selected as Wayland.

Login screen in Debian 12 Joy theme

We will change it to X11, as shown in the following image. This is not mandatory, but it will allow us a more fluid user experience on most computers

Login screen in Debian 12 Joy theme

Once the change is made, we have to enter the password of the user that we created during the installation and click on the button or press enter.

Login screen in Debian 12 Joy theme

If the password is correct, the session loading screen should appear, as shown in the following image. Be careful, it is not the most beautiful, but that is where the advantage of KDE is, we can change it like all the previous ones.

KDE session loading screen in Debian 12

Once the system fully loads, it shows a desktop like the following, in which we can see elements very similar to a Microsoft Windows desktop. This even includes a secondary menu like the one shown below

Debian 12+KDE desktop with secondary menu displayed

By displaying the main menu we can see the following options

Main menu displayed on Debian 12+KDE desktop with dark theme

In the preferences window we can make all the adjustments we want both in the appearance and behavior of the system. For example, in the following image the appearance option is selected and we can see some global themes installed by default. We could also obtain new global themes, this option will require our team to be connected to the internet.

Global visual theme selection in KDE settings center in Debian 12

This way you can customize each of the settings to your liking, within the reach of a few clicks. Before continuing, we are going to configure the software sources (repositories), for which we will use the terminal, which we can execute by pressing the Control+F2 keys and typing terminal

Invoking the console using the run window Alt+F2 on KDE desktop on Debian 12

Next, when the terminal window appears, we will write:
su and it will ask us for the password that we specified for the root user when installing the system. Since we are going to make a couple of global changes we need to do this as the root user. What the su command does is change to the root user as shown in the image below

switch to root user in Debian 12 + KDE Konsole application

Now we open a text editor to modify the repositories file and specify the path to the file. In the console we write “kate /etc/apt/sources.list” as shown in the image and press enter

command to open kate text editor with software sources configuration file

If everything has gone well, a new window will appear, which is the kate text editor (kde text editor). In it we delete all the content and write the 4 lines of configuration from the official repositories, as shown in the following image, then we click save and close the window.

text editor kate editing software sources file, sources.list

Software source configuration lines (Repositories)

#======================================================#
# Repositorios Oficiales Internet Debian 12 (Bookworm) #
#======================================================#
deb http://ftp.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security 	bookworm-security main contrib non-free non-free-firmware
deb http://ftp.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://ftp.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

If it was saved correctly and the Kate window was closed, we return to the console and write

“apt update” to reload the software sources. If everything has gone well, it should look like the image below.

reloading software sources using apt update command in konsole application on Debian + KDE

Let’s do a full system update by running the command
apt full-upgrade -y

Running this command may take some time depending on how much software needs to be downloaded from the update sources. It is advisable to restart the system once the update process is complete so that in case the kernel is updated, the system starts using the new one.

If you have reached this point you must have seen in detail the steps for installing Debian 12 + KDE in graphical mode. In future posts we will see how to customize it in detail.

Skip to content