The hostname of a Linux system is important because it's used to identify the device on a network. The hostname is also shown in other prominent places, such as in the terminal prompt. This gives you a constant reminder of which system you're working with. It's a real life saver when you're managing multiple systems through SSH and those command line terminals start to blend together in your mind.

Of course, IP addresses are used when devices need to communicate with each other, but those can change frequently. Hostnames give us a way to know which device we're interacting with either on the network or physically, without remembering a bunch of numbers that are subject to change. Thus, it's important that your system bears a hostname which helps you to identify it quickly. For example, "backup-server" is much more informative than "server2." If you can't easily identify a system's purpose from the hostname, it's time to change it.

In this guide, we'll show you how to change the hostname on AlmaLinux. This can be especially useful if you've recently migrated from CentOS to AlmaLinux and need to update the hostname accordingly. Changing the hostname can be done either by command line or GUI, and we'll show you the steps for both methods below.

In this tutorial you will learn:
  • How to change the AlmaLinux hostname from command line
  • How to change the AlmaLinux hostname from GNOME GUI
Changing the hostname in AlmaLinux
Changing the hostname in AlmaLinux

The release of AlmaLinux in 2021 was spurred by the change of CentOS Linux from an enterprise-stable operating system to an upstream development branch of RHEL.

With AlmaLinux being branded as a replacement for CentOS, and giving users the option to migrate to AlmaLinux from CentOS, you may be wondering what the differences are between these operating systems.

In this guide, we'll look at what makes AlmaLinux and CentOS so similar, and why new differences between the distributions are causing many to distro hop.

The objective of this guide is to show how to check what version of AlmaLinux a system is running. Whether you've migrated from CentOS to AlmaLinux or performed a fresh install, it's important to keep tabs on the state of your system. This includes information such as the version number of the operating system, kernel version, and other release information.

AlmaLinux is a fork of Red Hat Enterprise Linux, which releases a new major version every few years. Finding your system's version will inform you whether or not you've fallen behind on the latest updates. It's always recommended to update AlmaLinux for the latest security patches and features.

In this tutorial you will learn:
  • How to check AlmaLinux version from command line and GUI
  • How to check Linux kernel version
How to check AlmaLinux version
How to check AlmaLinux version

These days, most systems are configured to connect to a network automatically through DHCP by obtaining an IP address assigned through your ISP or your home router. But there may come a time when you wish to opt for a static IP address and you will want to change it. It may be that you are configuring a home LAN and you don't want to use DHCP or simply want a static IP address that you can access from outside your home.

In this tutorial, we will learn how we can change the IP address on an AlmaLinux system. You can follow this guide whether you've migrated from CentOS to AlmaLinux or have performed a normal AlmaLinux installation.

In this tutorial you will learn:
  • How to change the IP address in AlmaLinux using GNOME GUI
  • How to change the IP address by editing configuration files
  • How to manually change your DNS server
  • How to restart networking in AlmaLinux
Change IP address in AlmaLinux
Change IP address in AlmaLinux

Restarting the network of your AlmaLinux system can be a useful troubleshooting step, for example if you're having problems connecting to the internet.

In this guide, we'll show several methods for restarting the network on AlmaLinux, both from command line and GUI. You can apply these steps if you've recently migrated from CentOS to AlmaLinux or have performed a fresh AlmaLinux installation.

In this tutorial you will learn:
  • How to restart the network in AlmaLinux via command line, through both NetworkManager and networkd
  • How to restart the network in AlmaLinux through GNOME GUI
Restarting network in AlmaLinux
Restarting network in AlmaLinux

When it comes to IP addresses on AlmaLinux, you have two main options for how you configure your network interfaces. You can either obtain an IP address automatically with DHCP, or configure the system to use a static IP address, which never changes.

In this guide, we'll show how to configure a static IP address on AlmaLinux. This can be done either through GUI or command line, and we'll be going over both methods. Once a static IP address is configured, it won't change again unless you manually change the IP address later, or turn DHCP on. You can follow this guide whether you've migrated from CentOS to AlmaLinux or have performed a normal AlmaLinux installation.

DID YOU KNOW?
You can also configure your DHCP server (or router) to assign your AlmaLinux system a static IP address. This means that your system would still use DHCP, but the server or router will reserve the same IP for the MAC address of your computer's network interface. Instructions for this will vary, depending on your network environment and DHCP server.
In this tutorial you will learn:
  • How to configure a static IP address via GNOME GUI
  • How to set a static IP address by directly editing an interface file
  • How to set a static IP address using the nmcli utility
  • How to set a static IP address using nmtui
Configuring a static IP address on AlmaLinux
Configuring a static IP address on AlmaLinux

Like all Linux distros, it's important to keep your AlmaLinux system up to date in order to make sure that you have the latest security updates and newest features. Updating the system usually involves simply upgrading all installed packages to their latest versions.

Since AlmaLinux is a fork of Red Hat Enterprise Linux, there are also system upgrades to a new version every few years, coinciding with the new RHEL releases. This type of update is a full system upgrade, and it's different than simply keeping AlmaLinux up to date.

In this article, we'll cover updating a AlmaLinux system on a per package basis and upgrading the entire operating system. This can be done via command line and GUI. Both methods will be shown in this guide, so you can pick whichever is easier for you.

In this tutorial you will learn:
  • How to update AlmaLinux packages via command line
  • How to update AlmaLinux packages via GNOME GUI
Updating AlmaLinux system packages
Updating AlmaLinux system packages

Most Linux distributions, especially the user friendly ones, connect to your network and internet right away, when they first boot up.

This is thanks to DHCP, a protocol that the system uses to lease a local IP address from your router. However, some RHEL based distros, including AlmaLinux, don't have this feature enabled out of the box.

In this guide, we'll show you the step by step instructions for a couple different methods of connecting to a network automatically in AlmaLinux. Specifically, this will enable DHCP on a network interface, either temporarily or persistently.

In this tutorial you will learn:
  • How to connect to network via DHCP temporarily
  • How to configure persistent DHCP network configuration via command line and GUI
Configuring automatic connection to a network on AlmaLinux
Configuring automatic connection to a network on AlmaLinux

AlmaLinux is an enterprise-ready Linux distribution forked from Red Hat Enterprise Linux. It's a very stable operating system that's meant especially for production envrionments (servers), but you can also install a GUI on AlmaLinux and use it as a desktop operating system.

In this guide, we'll be going through the step by step instructions of installing AlmaLinux. You can follow along with our steps whether you're installing AlmaLinux on a desktop or server. If you already have CentOS installed and want to switch to AlmaLinux, please see our guide on migrating from CentOS to AlmaLinux.

In this tutorial you will learn:
  • Which edition of AlmaLinux to download
  • How to install AlmaLinux
AlmaLinux installation
AlmaLinux installation

With the change of CentOS Linux from an enterprise-stable operating system to an upstream development branch of RHEL, new projects have rushed to fill the gap left in its wake.

The distros you've probably already heard of are AlmaLinux and Rocky Linux, the two top contenders to act as a viable replacement for CentOS.

For the CentOS users that have decided to switch to another RHEL fork, rather than distro hop entirely, they'll face the question of, "Which distro should I use? AlmaLinux or Rocky?"

In this guide, we'll compare AlmaLinux and Rocky Linux across a few key areas. We'll weigh their pros and cons, see how they stack up against each other, and ultimately give you enough information to help you decide which one you should use.

The main motivation behind the creation of AlmaLinux was to be a viable replacement for CentOS Linux at the time of its shift from an enterprise-stable operating system to an upstream development branch of RHEL.

Now that AlmaLinux is released, it still leaves CentOS users wondering how to switch operating systems. Ideally, this should be done as seamlessly as possible, to prevent downtime, loss of data, etc. In this guide, we'll show you the step by step instructions to migrate from CentOS to AlmaLinux with just a few commands.

In this tutorial you will learn:
  • How to migrate from CentOS to AlmaLinux
Completing the merge from CentOS to AlmaLinux
Completing the merge from CentOS to AlmaLinux

GNOME is the default desktop environment on AlmaLinux, but only if you opt for the full installation of the operating system. Other installations don't include any GUI by default. If you've chosen a minimal install but don't want to be limited to just the command line, you can install the GNOME desktop environment in a few simple commands.

In this guide, we'll show you the step by step instructions to install the GNOME GUI on AlmaLinux. Follow along with us on your own system to get it setup.

In this tutorial you will learn:
  • How to install GNOME desktop environment on AlmaLinux
  • How to make GNOME launch by default upon system boot
Running GNOME desktop environment on AlmaLinux
Running GNOME desktop environment on AlmaLinux

AlmaLinux is a Linux distribution based on Red Hat Enterprise Linux and maintained by CloudLinux, a company that provides server hosting and Linux software. For other most popular Linux distributions, please visit our dedicated Linux download page.

MIGRATE YOUR CENTOS TO ALMALINUX
Follow our guide to learn how to migrate CentOS to AlmaLinux, if you prefer convert your existing operating system instead of starting with a new AlmaLinux installation.

The motivation behind Alma's release is to serve as a viable replacement for CentOS at the time of its shift from an enterprise-stable operating system to an upstream development branch of RHEL. Users can even switch from CentOS to AlmaLinux with just one command that will swap repositories and keys.

AlmaLinux functions very similarly to RHEL, but it's completely free. It's marketed to users and companies that need enterprise-level stability in a Fedora-like operating system. In other words, companies that want to use Red Hat but don't want to pay the subscription fee and/or don't need tech support can use AlmaLinux to fill the gap.

Being based on RHEL naturally makes AlmaLinux more geared towards servers and workstations, though it can still work well as a desktop operating system for some people. The full installation comes with the GNOME desktop environment and proves easy enough to use, but Linux newcomers will find a more welcoming experience in a user friendly distro like Ubuntu.

SSL encryption for your website is extremely important. It prevents man in the middle attacks, helps your page's SEO, and browsers like Firefox won't warn users that your site is insecure.

Best of all, you can get all these advantages for just a few minutes of your time. In this guide, we'll show you how to install Let's Encrypt on Centos 8, and how to use it to configure SSL encryption for your website. In a few steps, your site will become accessible via HTTPS, with HTTP links (optionally) redirecting to the secure protocol as well.

In this tutorial you will learn:
  • How to install Let's Encrypt
  • How to configure Let's Encrypt SSL

GNU/Linux filesystem permissions and rights are the basis of the system's security, and one of it's principles is the clear separation of rights to files and folders. In a heavily multiuser environment, such as a school's server, file rights prevent a user by default to accidentally delete or overwrite another's documents. However, there are use cases where multiple users need to access (read, write, and even delete) other user's files - such may be the case in the above mentioned school server, where students work on the same project. In this section of RHCSA exam preparation we will learn how to create an environment for such collaboration, using the setgid (set groupID) technique. Note that while we perform these steps on a recent operating system, the setgid isn't a new thing, and you will find it in any and all distributions.

In this tutorial you will learn:
  • How to add users to a supplementary group
  • How to use set-GID on a directory
  • How to check proper ownership within the set-GID directory
  • How to use the special directory as a member of the group

FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: