Install Debian Testing the right way!

      No Comments on Install Debian Testing the right way!
It's only fair to share...Share on Facebook
Share on Google+
Tweet about this on Twitter
Share on Reddit
Email this to someone

Screenshot of Debian Testing Xfce Desktop

Install Debian Testing to get the latest hardware support, kernel developments, and newer programs. Debian Stable is stable but it also feels pretty outdated. Install Debian Testing Xfce and you will get more up-to-date software without compromising the stability.

Here is the smoothest and probably the very right way to install Debian Testing.

Video Tutorial

What is the right way to install Debian Testing?

The reliable way to install Debian testing from scratch is to do a minimal installation of Debian Stable with the stable installer image, then upgrade from Debian Stable to Debian Testing, and install desktop environment and other necessary packages.

Alternatively, you can also use Debian Testing Image, but it’s not recommended because Debian Testing image is meant to test the installer not to install Debian Testing.

You need to install Debian Stable first and then upgrade to Debian Testing. This is not a complex process but there are a couple of steps which are very important and will discuss in this post.

Selection of the ISO file

Download the ISO file from

I recommend you to go with the network installer. It contains just the minimal amount of software to start the installation and fetch the remaining packages over the Internet. We will install only the basic packages from the Stable branch of Debian, so there is no need to download a large ISO.

One more key query, there are many installation ISO files, different size, different architectures but which one will fit the best for you to fulfill the requirement of installing Debian Testing? For a normal PC system download the amd64 (64 bit) or i386 (32 bit) ISO files.

Install Debian Testing: Download link for Debian Network install ISO

Install Debian Testing: download amd64 Debian Network install ISO

Base System Installation

Make a bootable USB and boot from the Debian Network install image.

Choose the Graphical Install, for newbies it is recommended.

Install Debian Testing: Graphical install menu

Install Debian Testing: choose Graphical install

Basic settings

Select the language, location and then select the keymap, i.e. the keyboard layout. The latter step is important, choose the keymap carefully, different keyboard layout will make your typing tough, however, it could be changed later.

Install Debian Testing: Select location, keyboard layout, and language

Install Debian Testing: Select location, keyboard layout, and language

The next steps are to some extent intuitive. Set the hostname of your system. This is the name of your personal computer, the default is debian, you could change it. This could be changed later too.

Domain name, leave it blank for a normal desktop system. This domain name plays a significant role if you are using this machine as a server, I usually keep it empty.

Now set the root password, it is always good to set a long difficult password. But you can also leave it empty and later when you set your user password, it will also be used as a password for administrative tasks. However, a root password will add an extra layer of security to your system.

Install Debian Testing – Install Debian Testing: set hostname, configure the network and create a root password

Install Debian Testing: set hostname, configure the network and create a root password

Setup the username and password for the normal user, i.e. may be your name, I’m setting it to Average Linux User (ALU) for example, again choose a good password for the user account.

Partition your Disk

Now create the partition scheme for your Debian installation. This is a quite important step because a wrong partitioning may result in a failed installation or even data loss. So, make here you have a backup of all your data before this step.

Options to Create Partitions.

You get many options to Create Partitions:

  • Guided – use entire disk – This option will create partitions automatically by selecting the Disk.
  • Guided – use entire disk and set up LVM – This Option will create LVM Partitions.
  • Guided – use entire disk and set up encrypted LVM – This option will create LVM Partitions and then encrypt those partitions to make your data more secure.
  • Manual – By selecting this option you have to create partition manually.

Manual Partitioning

I usually create Partition manually so that I can have more control. If you are inexperienced with Linux partition tables, select Guided – use entire disk.  I select Manual and click on Continue.

Install Debian Testing: Partitioning Methods

Install Debian Testing: Partitioning Methods

My partition setup is very simple because – it’s only one / partition. Linux is stable enough now, so you can use only the root partition. For swap, you can use a swap file. But of course, you can also use /home and /swap partitions.

In the Select the Disk menu, you are given a list of available file systems. If you don’t know which file system to choose, go for ext4. Ext4 journaling file system is a reliable file system.

Install Debian Testing: choose ext4 file system

Install Debian Testing: choose the file system

Format the partitions

In the next step, you have to define if you need to format the partition. Format your / root partition. But be careful at this step if it is your /home partition and you have important files on it, DON’T format it.

Assign mounting points

For the mounting point, you select / – the root file system for your system partition. But if it’s your home partition you need to choose /home – user home directories. The mount point specifies at which location in the directory hierarchy a device or disk partition appears.

Install Debian Testing: choose mounting points

Install Debian Testing: select mounting points for your partitions

Label Partitions

You can label the partitions to assign them some explanatory names. You can also skip labels. For example, I usually name my system and home partitions with root and home, respectively. So, it is easier to navigate between partitions.

Finish Partitioning

After required settings select Done Setting up the partition to complete the partition creation for Debian. Then click on Continue.

And then select the Finish partitioning and write changes to disk to finish the partitioning.

Finish partitioning and write changes to disk

Finish partitioning and write changes to disk

The next steps are also intuitive, they will install the basic system utilities.

Configure Package Manager with a Network Mirror

Now choose if you want to use a network mirror or not, I recommend to select YES.
Because you are using the Debian Netinstall image and most of the packages will be downloaded over the internet, you will benefit from using a network mirror. Select the country where the network mirror that you want to use is located (usually this is the country where your Debian system is located):

Configure package manager

Configure package manager

For the mirror name, you can choose any of the listed ones, but usually the top version works fine.

Configure Proxy Setting

As you might have guessed from the name, an internet connection is required during the installation. This might pose a problem if you find yourself installing a Debian system in a (corporate) Windows environment where internet access is restricted by a web proxy that uses Microsoft’s Active Directory for user authentication.

Configure proxy

Configure proxy

Unless you use an HTTP proxy, leave the following field empty and hit Continue.

Enable Popularity Contest

The popularity contest package sets up a cron job that will periodically anonymously submit to the developer’s statistics about the most used packages on this system.

This information helps the Debian Community in making decisions such as which packages should go on the first CD. It also helps improving future versions of Debian so that the most popular packages are the ones which are installed automatically for new users.

debian Popularity contest

Popularity contest

You can skip the package usage survey by selecting No, but I recommend you to put Yes here.

Critical Step for Minimal Installation!

This is the most important step of this guide because we want our installation to be as minimal as possible.  Choose only standard system utilities. We will install all the extra packages manually later on.

Debian software selection

Debian software selection

Install GRUB Bootloader

GRUB is the GRand Unified Bootloader, probably the most popular BootLoader that is used to boot most Linux operating system. When you’re asked Install the GRUB boot loader to the master boot record? select Yes.

And then you need to choose the hard drive where you installed your system.

Install Grub on a hard disk

Install Grub on a hard disk

Finish the Base System Installation

OK, so we are done with a minimal install of Debian Stable.

Debian stable installation is done

Debian stable minimal install is done

From this step, the base system installation is finished. Remove the Debian CD from the CD drive and hit Continue to reboot the system.

Upgrade Debian Stable to Testing

Log in to the new system at the command line interface with your username and password.

The command line interface of Debian

The command line interface of Debian

This is a minimal Debian install, so there is no GUI installed. We will install the Xfce graphical interface after the upgrade to Debian Testing.

Change to root

Upgrading a system to the Testing branch requires editing some system files, and you would need root privileges for that. So, after the login, you have to switch to root. Use the su (substitute user) command to get a root shell. If you set only the user password, run sudo su -. Note that when you use this command it will ask for the root password.

Edit source.list

Next, backup the original of /etc/apt/source.list:

cp /etc/apt/sources.list /etc/apt/sources.list.backup

You can restore it if needed. It is a good practice to make a copy of every system file you edit.

Now, you can edit the original file with the Nano editor:

nano /etc/apt/sources.list
nano /etc/apt/sources.list

/etc/apt/sources.list opened with nano

In this file, we have all our sources listed as jessie (now it is stretch). We need to replace all these jessie names with testing.

You can edit it right in nano. But it’s a bit laborious to change every word here. I will demonstrate you an intelligent solution, if you want to change all occurrences of jessie to testing, you can make the changes using the sed command in this way:

sed -i 's/stretch/testing/g' /etc/apt/sources.list

After that command has executed all jessie are replaced with testing. The -i option stands for “in-place” editing. It is used to modify the existing file. You can check if changes took place by opening the file with Nano again.

Upgrade packages to Debian Testing

Next, we need to update the local package index with the latest changes made in the repositories. To that end, run:

apt update

This will display a database of available packages from the repositories defined in the /etc/apt/sources.list file.

Next, upgrade the packages:

apt upgrade

Choose YES to agree for the installation of all listed packages. When you are presented with the text showing all changes, just scroll with the space key and press the Q key to quit.

Debian Testing upgrade process

Debian Testing upgrade process

upgrade doesn’t upgrade all the packages, upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list.

dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages, so you also need to run dist-upgrade:

apt dist-upgrade

Choose YES to agree to upgrade the distribution.

When all the packages are upgraded, you have successfully upgraded to Debian Testing. Reboot the system by running the reboot command:


Install the Xfce desktop

After the reboot, we will install the graphical interface. Login to root again (use the su command) and install Xfce as follows:

apt install xfce4

Choose YES to agree to install the necessary packages.

Once apt finishes, reboot and if all went well, the next screen will be the newly loaded Debian Testing Xfce.

Debian Testing Xfce

Debian Testing Xfce

So That’s all from this article. Debian Testing Xfce has been installed successfully. You can now start customizing it.

I hope this article helped you. If you face any problem, question or suggestion please let me know by leaving a comment below. And hey, please share this article with your friends.

It's only fair to share...Share on Facebook
Share on Google+
Tweet about this on Twitter
Share on Reddit
Email this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.