Debian 11 (Bullseye) minimal server installation

botond published 2022. 04. 04., h - 19:52 time

Content

  1. page: Download and install Debian 11 (Bullseye)
  2. page: Make basic settings after installation

 

The 1. page content

 

Introductory

In this description, we install one Debian 11 (Bullseye) a minimal server consisting of the base system of Debian 11 and the installation and configuration of some basic programs. This installation will be the basis for later Debian 11s LAMP- and tutorials on perfect servers. On this page, download the Debian 11 (Bullseye) installation package and follow the steps in the installation program.

Previously prepared minimal server installation tutorials and virtual machines are also available in the following versions:
These minimal server installations do not include a graphical desktop environment. If you do not want to do this, but want to install Debian 11 (Bullseye) on a computer with an GUI for office or home use, please visit the following guide:

 

 

Get Debian 11 (Bullseye) and build a bootable device

Debian 11 (Bullseye) was released on August 2021, 14 and has an end-of-life date has not yet been officially released. As soon as it is published, I will make up for it here. So if you want to build a live server, this is a good choice because Debian 11 is still at the beginning of its cycle.

To download the installation package, visit Debian 11 (Bullseye) download page, then select the installation kit and architecture that is right for you. I the netinst CD image part I choose that amd64 installer, I will use this. Thanks to the netinst package, you don’t have to download several GB of installation kits, just a 378 Mb ISO file, which is enough to boot the system and the additional required components are downloaded on the fly. If you plan to install later in offline mode, you will of course need to download one of the full installation kits. The current version of Debian I downloaded is 11.2.

Creating a bootable device

Once you have downloaded the ISO file, make it a bootable flash drive. There are several ways to do this: Learn how to make bootable flash drives here.

Because Debian server installations do not include a desktop environment, their hardware requirements are extremely low. Therefore, it is also popular with owners of older hardware, so don't forget the type of system on your motherboard:

  • if our motherboard was made before 2010, in this case only BIOShas, which is MBR supports partitioning scheme
  • if our motherboard was made between 2010 and 2020, in this case UEFIworks with, which is GPT supports partitioning scheme. These motherboards still have the CSMThanks to, they also support the BIOS and MBR pairs, so you can install on both motherboards made during this period.
  • if your motherboard was built after 2020, in this case it only contains UEFI so it only supports the GPT partitioning scheme.

So write the installation kit to your flash drive as described above. If the middle option applies to us - where both systems are supported - then choose UEFI because it has a number of hardware advantages over the old BIOS.

In this description, I have one VirtualBox on a virtual machine I will install Debian 11 (Bullseye) in UEFI mode.

 

Installation

This description is one building block, which means that several other descriptions on the site will be based on this. Thus, it is important that it is executed accurately so that any subsequent guides installed for it can work without any problems.

Startup main menu

After booting the computer / virtual machine with the installer, the installer boot menu will appear:

Installing Debian 11 (Bullseye) - Boot Main Menu

Here are pretty much the usual options, let's run them through quickly:

  • Graphical installation: This is the default installation method with a graphical interface. This will install Debian 11 as well.
  • install: And this is the text mode installer.
  • Advanced options ...: Here are 6 more options available, such as advanced installation, recovery mode, and automated installation. You can start all this in both graphical interface and text mode.
  • Accessible dark contrast installer menu ...: This is a visually impaired installation mode where dark and contrasting colors appear, helping the visually impaired.
  • Install with speech syntheses: Speech synthesizer installation. It’s a text-mode installer where a speech synthesizer reads out the text that appears - also for the visually impaired.

Select the default graphics installer and start the installation.

Language and locale settings

First comes the language selection:

Installing Debian 11 (Bullseye) - Selecting a language

Let's set our language. It then says that the translation in the selected language is incomplete and that you still want to continue installing in the selected language:

Installing Debian 11 (Bullseye) - Continue the installer with the selected language

Select yes here and move on.

Installing Debian 11 (Bullseye) - Selecting a Country

Then select the country.

Installing Debian 11 (Bullseye) - Selecting a Keyboard Layout

Installing additional components

After the language settings, some components will be installed. We don't have to do anything here, just wait for the progress bars to go through:

Installing Debian 11 (Bullseye) - Installing Additional Components

Set up a network

The system automatically sets up the network:

Installing Debian 11 (Bullseye) - Automatic detection and configuration of IPv6

First, try to configure the IPv6 address, if available in our online service (most newer networks already provide IPv6 addresses).

 

 

Sets the DHCPif they are distributed in this way IP addresses in our network:

Installing Debian 11 (Bullseye) - Configuring DHCP

Then we need to enter the name of the machine:

Installing Debian 11 (Bullseye) - Setting the hostname

Enter your hostname here, which will be the (without switches) hosname will be the same as the command output. I'll enter "debian11" here.

Then comes the domain name, which is the part after the host name that completely identifies the machine:

Installing Debian 11 (Bullseye) - Setting up a domain name

Here is the usual linuxportal.vm I enter a name, continuing the virtual server serial naming logic that has already begun.

hostname and the -f command will return the two names together, i.e. the full name of the machine (FQDN), which in this example is debian11.linuxportal.vm. So with this logic, we give these two names so that the network dependent parts will work properly in the future.

For a live server, the server is the main one domain name that is, what will be the name of the primary web page or other web service.

Users and passwords

This is where user access comes from. First we need to enter the root password:

Installing Debian 11 (Bullseye) - Setting the Root Password

Please enter a valid password. Here, too, I use the linuxportal_root password for these servers.

The installer then creates the first plain user, who must now enter his full name:

Installing Debian 11 (Bullseye) - Enter the full name of a new user

and your username:

Installing Debian 11 (Bullseye) - Entering a new user username

This user will also need to enter their password:

Installing Debian 11 (Bullseye) - Entering a new user password

I will publish this password on the download page for this server.

Partitioning disks

There are several ways to partition your system. For live use or a physical machine, consider the type and amount of physical hard drives available and partition them accordingly (eg, using SSDs, RAID, or logical (LVM) volumes, etc.).

For previous minimum server installations, I installed it with a simple, automatic solution - where everything is on one partition - so we already know this, so for the sake of variety, we will now create a custom partitioning scheme in this example to create a web server deployment. So here they are placed on separate partitions / Home, /Castle, a / Tmp directory structures as well as swaps. The installer also includes such a built-in partitioning scheme, but this automatic solution does not divide the available disk space between the created partitions in the right proportion for us. For example, it gives quite a bit of space / var structure in which the websites will need to fit and create too large a partition / Home which is not so much used for web servers. So this scheme focuses more on home desktop uses, so we’re setting them up now now.

Of course, there are also solutions where your websites are / home / * / public_html stored in a directory structure, so in this case the / home directory would need more storage, but the ISPConfigweb servers a / Var / www The web pages are stored here, so here too we will follow this direction so that future server installations based on this base system can work properly.

Of course, nothing is set in stone here, but for the sake of example, we will create an optimal division that will be suitable for running a web server. Furthermore, we need to consider our own hardware resources, where there may be hard drives of different sizes. Here we are going to work with a 40 GB storage, we will be splitting this properly.

If you are familiar with the partitioning process, you can of course proceed with your own custom method, or if the Debian 10 automated solution (all on one partition) linked above is right for you, you can follow that example. Here, for the sake of variety, I'm just making a different partitioning than usual.

 

 

Manual partitioning

As a first step, the installer offers several partitioning methods:

Installing Debian 11 (Bullseye) - Partitioning - Selecting a Partitioning Method

Here, select Hand option and move on.

Then we get some options again:

Installing Debian 11 (Bullseye) - Partitioning - Selecting a Disk

Here, in the upper part, it also offers partitioning assisted by the installer, but as I mentioned above, this automatic division will not be good for web server design, so select the unit you want to partition from the list of hard drives that appears in the middle. In the present example, it is only a 42GB one VirtualBox hard drive is available, so I'll choose that here and move on.

Then comes a confirmation window:

Installing Debian 11 (Bullseye) - Partitioning - Creating a Partition Table

Here you will be asked if you want to create the partition table on the selected hard disk. Choose yes here.

Nothing is changed here on the hard drive, only at the end when we write the changes. So everything can still be undone here.

Creating partitions

In the next window, in the upper part, the installer again offers the partitioning solution helped by some additional installers, but these are not used here either, but under the hard disk displayed in the middle part. FREE PLACE select the line to start creating your partitions manually:

Installing Debian 11 (Bullseye) - Partitioning - Creating the First Partition

So here we now select our free space to create our first partition. Let's move on.

Create an EFI partition

There are several options here as well:

Installing Debian 11 (Bullseye) - Partitioning - Creating a New Partition

If we chose the middle option here, the system would create the automatic division mentioned above, so we don't choose this, but the first one, Create a new partition select an option.

First we will need an EFI partition from which the EFI / UEFI system will boot:

Installing Debian 11 (Bullseye) - Partitioning - Creating a New Partition - Setting Up a 512MB EFI Partition

Let's say this 512 MB size, that's what the EFI partition needs, and then move on.

Installing Debian 11 (Bullseye) - Partitioning - New Partition Location

Then configure it to put this partition at the beginning of the empty space and then on.

Installing Debian 11 (Bullseye) - Partitioning - EFI System Partition Settings

Set the Usage section here EFI system partitionand then set the start flag and click Partition setup complete option and then on.

This will take you back to the previous partition table page:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

So we already have our EFI partition up here and the remaining free space. Now the next partition can come. Click Next to place the selection at the bottom.

Create a root file system partition

The next will be the root (/) file system partition. After clicking on the free space, the options reappear:

Installing Debian 11 (Bullseye) - Partitioning - Creating a New Partition

Select Create New Partition now. Then you also need to set the size:

Installing Debian 11 (Bullseye) - Partitioning - Setting the size of a new partition

So based on the above reflection, if you are installing a web server, the size of the root partition may be smaller, but if you want the machine to be used for normal desktop use - with a graphical desktop environment - it must be larger. Since we are now installing a web server, here I am setting up 15GB, taking into account the meager 40GB hard drive capacity. If you have a larger storage device, the size of the root file system partition can be more than, say, 20-25 GB. Since there will be no graphical desktop environment installed and many additions added, this partition will not be used as much.

 

 

Once you have set the right size for us, move on.

Installing Debian 11 (Bullseye) - Partitioning - New Partition Location

Set the location of the partition here as well, then move on.

Installing Debian 11 (Bullseye) - Partitioning - Root File System Partition Settings

Here are more things to configure than for the EFI partition:

  • Use: Ext4 logging file system
  • Attachment point: /
  • Coupling options: defaults
  • Label: you can enter this or leave it blank, I set the name "system".
  • Reserved blocks: 5%
  • Typical usage: usual
  • Starting flag: ki

If set, select Partition setup is complete option and then Next or enter.

This will take you back to the partition table page:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

We already have two partitions here. With the selection in the lower free space, click Next to create the next partition.

Create a swap partition

The next will be the swap partition. After clicking on the free space, the options reappear:

Installing Debian 11 (Bullseye) - Partitioning - Creating a New Partition

Create a new partition and then continue. Then you also need to set the size:

Installing Debian 11 (Bullseye) - Partitioning - Setting the size of a new partition

And let's set this to the beginning of the free space as well:

Installing Debian 11 (Bullseye) - Partitioning - New Partition Location

Then come the partition settings:

Installing Debian 11 (Bullseye) - Partitioning - Swap Partition Settings

  • Name: We can leave this blank
  • Use: exchange place
  • Starting flag: ki

Then select Partition Configuration Done.

This will take you back to the partition table page:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

We have three partitions ready here. With the selection in the lower free space, click Next to create the next partition.

Create a home file structure partition

Here I will no longer go through all the windows, but create and configure the / home directory structure partition by analogy to the above.

To summarize, this partition stores the / home directory structure, which requires more space than a desktop or office desktop with little or no graphical user interface. So since we’re doing a basic installation for a web server right now, I’m setting up 2GB here, that’s enough to fit in my 40GB frame. Of course, if we have more storage space, we can raise this as well. I will only create this here for demonstration purposes.

So the partition creation parameters are:

  • Size: 2GB (with me, but can be more than that)
  • Location: Start

And your settings:

  • Name: we can give it a name if we want
  • Use: Ext4 logging file system
  • Attachment point: / Home
  • Coupling options: defaults
  • Label: we can give it a label if we want
  • Reserved blocks: 5%
  • Typical usage: usual
  • Starting flag: ki

Once saved, the partition table now looks like this:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

The next partition may come ...

Create a Tmp file structure partition

The next partition will be the partition of the / tmp file structure. Here again I only write the parameters, let's create and set them based on them:

Creation parameters:

  • Size: 1 GB here with me now. For the most part, that’s pretty much used to be.
  • Location: Start

And your settings:

  • Name: we can give it a name if we want
  • Use: Ext4 logging file system
  • Attachment point: / Tmp
  • Coupling options: defaults
  • Label: we can give it a label if we want
  • Reserved blocks: 5%
  • Typical usage: usual
  • Starting flag: ki

Once saved, the partition table now looks like this:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

The next and last partition can come ...

 

 

Create a var file structure partition

The last partition will be the partition of the / var file structure. I intentionally left this partition to the end, because if you use it as a web server, you will need the storage space here, where the web pages will also be located in the / var / www / * in directories. So I set the size of this partition to the size of the remaining space, so that it fills the remaining space.

Creation parameters:

  • Size: 16.4 GB here with me now. Here we set it according to our possibilities and needs. If I had now created the virtual machine with a larger virtual hard drive, it could have been a higher value here as well, but in the beginning I set 40GB, which will be enough for the tutorials on this page.
  • Location: Start

And your settings:

  • Name: we can give it a name if we want
  • Use: Ext4 logging file system
  • Attachment point: / var
  • Coupling options: defaults
  • Label: we can give it a label if we want
  • Reserved blocks: 5%
  • Typical usage: usual
  • Starting flag: ki

Once saved, the partition table now looks like this:

Installing Debian 11 (Bullseye) - Partitioning - Viewing the Partition Table

 

Close partitioning and save changes

Once we have created all the partitions we need, now is the time to back it up. So far, nothing has changed on the hard drive, but the next save here will write the physical changes to the disk. So anything up to this point can be undone or modified.

Installing Debian 11 (Bullseye) - Partitioning - Saving Partitions

So, once you've made sure everything is set up as planned, select "Finish Partitioning and Save Changes" and click Next.

It still lists the changes here and asks for a confirmation.

Installing Debian 11 (Bullseye) - Partitioning - Saving and Writing Partitions

Select yes here and then continue.

Later, we can still resize the partitions at any time if it turns out later that we made the wrong decision. A perfect example for this purpose is the GParted Live use of the system.

 

Installing a base system

The system will then proceed with the installation, this time copying the files to the physical hard disks ...

Installing Debian 11 (Bullseye) - Installing a base system

We have nothing to do here, we just wait until the progress bar reaches.

Configuring the package manager

The installer asks if you want to scan other CDs / DVDs for the package manager:

Installing Debian 11 (Bullseye) - Configuring the Package Manager - Reviewing Additional Installation Media

We use this option if, due to the offline installation, we have written out the complete installation set of several DVDs that we could use here now. However, if you are working with a small netinst installation kit, select the no option.

Then select the appropriate Debian mirror:

Installing Debian 11 (Bullseye) - Configuring the Package Manager - Selecting a Debian Mirror

Mirrors are used to access all the contents of Linux distributions in a decentralized manner, so that the entire world is not burdened by a central server. Hungarian Debian mirrors are generally stable, so you can choose.

Furthermore, it is not final because it is APT we will even expand our repositories to include add-ons for later server installations that are not included in the basic repositories.

In the following window you can choose from the mirrors available in the configured country:

Installing Debian 11 (Bullseye) - Configuring the Package Manager - Selecting a Debian Mirror

You can choose any one here, but it is advisable to choose deb.debian.org, which, as part of a global CDN network, provides a Debian mirror for home requests in Hungary. Particularly useful, for example, is installing a desktop Debian on a laptop that you travel around the world. So wherever you are, this mirror will always download updates from the nearest Debian mirror server. More about Debian mirrors read here.

 

 

In the following window you can configure your proxy settings:

Installing Debian 11 (Bullseye) - Configuring the Package Manager - Configuring a Proxy

If you do not use a proxy or do not know what it is, leave it blank.

The installer then configures the APT package manager:

Installing Debian 11 (Bullseye) - Configuring the Package Manager - Configuring APT

and installs additional software:

Installing Debian 11 (Bullseye) - Software Selection and Installation

Configure Popularity-contest

The installer will ask you if you would like to participate in anonymous statistics into which the package information is used:

Installing Debian 11 (Bullseye) - Configuring the Popularity contest

Here we choose at our discretion.

Software choice

Here's where you decide which software and services you want to install on your system by default:

Installing Debian 11 (Bullseye) - Software Selection

We will not install a graphical interface here, and we will install the web server parts ourselves later. So we leave only the two lower ones checked.

The installer then loads the packages of the selected components ...

Installing Debian 11 (Bullseye) - Software Selection and Installation

Installing the GRUB Boot Loader

Then install the GRUB-five...

Installing Debian 11 (Bullseye) - Installing the GRUB Boot Loader

Previous Debian minimal server installations were still in BIOS mode, so you were asked here where to install the boot loader, as the MBR partitioning scheme worked differently than the GPT partitioning scheme used by UEFI. So here you are not asking, but will automatically install the GRUB boot loader on the 512MB EFI partition created for this purpose.

Finish installation

Finally still working a little,

Installing Debian 11 (Bullseye) - Completing the Installation

And when done, it will ask us to remove the installation media and restart the machine.

Installing Debian 11 (Bullseye) - Completing the Installation - Rebooting

 

 

We have installed the base system, but there are still some basic and comfort settings that we will need during future server installations. With these we continue the next page.

 

 

Navigation

This description consists of several pages: