Beginner

Initial Server Setup On Debian 11 (Bullseye)

Initial Server Setup On Debian 11 (Bullseye)
2.5
(2)

Debian is a free operating system developed by thousands of volunteers from around the world who work online. The main strengths of the Debian project are its voluntary base, its dedication to the Debian social contract and free software, and its commitment to providing the best possible operating system. Debian version 11 is another important step in this direction. In this article, we are going to teach you Initial Server Setup On Debian 11 (Bullseye). You can see the packages available in Eldernode if you want to buy a Linux VPS server.

Initial Server Setup On Debian 11 (Bullseye) step by step

Recommended Article: Tutorial Install and Use Dpkg on Debian 10 & 9

All about Debian 11 (Bullseye)

After 2 years, the Debian project released its new stable version 11 (code name bullseye). This version will be supported for the next 5 years thanks to the combined work of the Debian security team. It is interesting to know that Debian 11 bullseye comes with several applications and desktop environments. These desktop environments include the following options:

_ Gnome 3.38

_ KDE Plasma 5.20

_ LXDE 11

_ LXQt 0.16

_ MATE 1.24

_ Xfce 4.16

Bullseye is the first version to provide a Linux kernel with support for the exFAT file system and use it by default to install exFAT file systems. Therefore, there is no need to use the file system implementation in users in the space provided through the exfat-fuse package. ExFAT file system creation and review tools are provided in the exfatprogs package.

Chinese, Japanese, Korean, and many other languages now have a new Fcitx 5 input method, which is the successor of the popular Fcitx4 in buster; this new version has a much better Wayland (default display manager) addon support.

Debian 11 bullseye includes several updated software packages including:

– Apache 2.4.48

– BIND DNS Server 9.16

– Calligra 3.2

– Cryptsetup 2.3

– Emacs 27.1

– GIMP 2.10.22

– GNU Compiler Collection 10.2

– GnuPG 2.2.20

– Inkscape 1.0.2

– LibreOffice 7.0

– Linux kernel 5.10 series

– MariaDB 10.5

– OpenSSH 8.4p1

– Perl 5.32

– PHP 7.4

– PostgreSQL 13

– Python 3, 3.9.1

– Rustc 1.48

– Samba 4.13

– Vim 8.2

Debian 11 is suitable for use with the following:

1. Desktop systems and netbooks

2. Development servers and cluster systems

3. Database

4. Web and storage servers

At the same time, additional quality assurance efforts, such as automatic installation and upgrading tests for all packages in the Debian archive, ensure that bullseye meets the high expectations of users of the stable version of Debian.

How to Upgrade Debian

After you have successfully logged in to the Debian server, the first step is to upgrade the current Debian system packages. To do this, you must first update your Apt cache using the following command:

sudo apt update

In the next step, you must use the following command to upgrade the packages:

sudo apt upgrade

To upgrade dist in the new system, run the following command:

sudo apt dist-upgrade

Note: After executing the above commands, you must press “Y” to confirm the request to complete the installation of the packages.

If you want to delete packages that are no longer needed, you can use the following command:

sudo apt autoremove

How to Create a Sudo User on Debian 11

In this tutorial, we recommend that you create a new user with Sudo privileges and use it to access your Debian instance. Assume you are already logged in with a root account. So you have to run the following command to create a new user in Debian:

sudo adduser eldernode

Note that the newly created account is a regular user.

It should be noted that you will need administrative privileges to perform several tasks. You can use the following command to add a user to the Sudo group:

sudo usermod -a -G sudo eldernode

For more instructions, you can switch to a new account using the following command:

sudo su - eldernode
Recommended Article: How to Install Opencart with Nginx and SSL on Debian 10

How to Configure System’s Hostname

The hostname of a system helps users and the network device to easily identify a device on a network in a human-readable format.

To specify a suitable hostname for your instance, you can type the following command in the system terminal and press enter:

hostnamectl

After executing the above command, in the next step you have to change the name of the system host to the following command:

sudo hostnamectl set-hostname debian11

Now that you have successfully updated the Systems hostname, you must now switch to a new shell to activate the current session. After doing the above, the shell notification will be renamed to the new host.

hostname

How to secure SSH on Debian

In this section, we are going to teach you How to secure SSH on Debian. Open the OpenSSH/etc/ssh/sshd_config configuration file for editing and modification.

You can use the following command to change the default port:

 Port 2232

You can also use the following command to disable Root SSH login:

 PermitRootLogin no

After making the above changes, save the configuration file and restart the OpenSSH service:

sudo systemctl restart ssh

How to Configure Firewall (Firewalld) on Debian 11

In this section, we will talk about How to Configure Firewall (Firewalld) on Debian 11. Since the default version of the Debian Firewall server is not installed on it, you can simply install the required packages from the default repositories. To do this, just run the following command:

sudo apt install firewalld -y

Importantly, the default SSH firewall allows remote users. But if the SSH port changes, you need to allow SSH access to another port. To do this, run the following command:

sudo firewall-cmd --permanent --add-port=2232/tcp

As you can see in the following commands, you can directly provide service names such as “HTTP” or “HTTPS” for permission:

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https

You should now upload the changes you made:

sudo firewall-cmd --reload
Recommended Article: Enable Root Login Via SSH In Debian 10

Conclusion

At the beginning of this article, we will introduce you to the new version of Debian distribution, Debian 11 (Bullseye). Then we showed you how to update and create a Sudo user. We then taught you how to configure the system hostname and SSH security. Finally, we told you how to configure the firewall. The steps described in this article were how to Initial Server Setup On Debian 11. You can refer to the article Initial Server Setup On Ubuntu 21.04 and CentOS 8 if you wish.

How useful was this post?

Click on a star to rate it!

Average rating 2.5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

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

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day