How to install the NVIDIA drivers on CentOS

Installing CentOS NVIDIA drivers is essential for your NVIDIA Graphics GPU to operate with optimal performance. The NVIDIA Driver serves as a communication bridge between your Linux operating system and your graphics hardware.

The NVIDIA drivers can be installed by executing the bash command after disabling the nouveau driver through GRUB boot menu modifications. This guide covers manual installation of CentOS NVIDIA drivers using the official package.

To install Nvidia driver on other Linux distributions, follow our Nvidia Linux Driver guide.

Read more

How to add route on AlmaLinux

By default, when a Linux system tries to communicate with a network address, the computer will send the request to the default gateway. The default gateway is usually a router, which can take the system’s request and forward it to the next hop, wherever that may be.

This behavior can be overridden by adding one or more static routes to the Linux machine. Such a configuration can be desirable if the network has multiple networks and routers, and a user needs to instruct the computer which way to route certain traffic.

Red Hat based distributions, such as almalinux, can use the nmcli command line utility to configure static routes, along with the ip route command and manual configuration of ifcfg files. Alternatively, you can use your installed desktop environment to apply the configuration. In this guide, we’ll go over the step by step instructions to add static routes on AlmaLinux through both command line and GUI methods. These instructions are applicable whether you’ve freshly installed AlmaLinux or have migrated from CentOS to AlmaLinux.

In this tutorial you will learn:

  • How to add a route via nmcli command
  • How to add a route via ip route command
  • How to add a route via ifcfg files
  • How to add a route via GNOME GUI
Adding a new static route in AlmaLinux

Adding a new static route in AlmaLinux

Read more

Install ssh server on CentOS 8 / RHEL 8

The SSH server might already be installed on your RHEL 8 / CentOS 8 system. If you need to install ssh, you can check the status of your SSH server using the systemctl status sshd command. We will then install the openssh-server package below by using the dnf command.

In this tutorial you will learn:

  • How to install SSH server onRHEL 8 / CentOS 8.
  • How to open SSH firewall port 22 on RHEL 8 / CentOS 8.
  • How to enable SSH to start after reboot on RHEL 8 / CentOS 8.

Read more

How to increase swap size on RHEL 8 / CentOS 8

On a system with memory-intense workload with common peak loads, a large swap memory can be useful to store large memory contents not needed at the moment. While using swap instead of memory will certainly have great impact on performance, sometimes this is preferable over adding more memory to the machine, as disk space is much cheaper. Sometimes there is simply no more memory, maybe a physical machine that is out of free slots, and there isn’t any larger memory modules on the market. At other times the slower performance on peak loads may be preferable over the application crashing with out of memory error.

In some cases swap memory needs to be increased, a live example could be expanding the memory in the machine, and so also expanding the swap space to match the double of the new memory size.

In this tutorial you will learn:

  • How to check swap space.
  • How to identify swap volume.
  • How to extend swap volume.
  • How to add another swap volume.

Read more

How to install ActiveMQ on RHEL 8

Apache ActiveMQ is a widely used messaging server written in Java. As messaging services commonly do, it creates a bridge between heterogeneous systems for reliable data exchange in the form of messages pushed into queues by producer clients, where they wait to be “read”, or consumed by consumer clients.

Naturally a system that is client to ActiveMQ can be both producer and consumer, and more than one systems can subscribe to a queue or topic, thus enabling flexible communication between these client systems. Many different platforms and protocols can be used to connect to ActiveMQ, increasing it’s usefulness even more.

In this tutorial we will install Apache ActiveMQ on Red Hat Enterprise Linux 8 from tarball, add the systemd unit files for ease of use, and access the admin page of our new service to create a queue.

In this tutorial you will learn:

  • How to install ActiveMQ from tarball
  • How to set up environment from the command line
  • How to add systemd unit files for ActiveMQ
  • How to access the admin page

Read more

How to install packages on RHEL 8 / CentOS 8 Linux System

All modern linux distributions organize software in packages which contain applications binaries, files, metadata and information about the package dependencies, possible conflicts with other packages etc. The core Rhel package manager is called rpm itself, and it is the tool used also by dnf, the higher level package manager, which is capable to manage dependencies. A relatively recent technology , flatpak, let us install also sandboxed applications together with their runtimes.

In this tutorial you will learn:

  • The three main ways to install a package using rpm
  • How to install packages using dnf
  • How to install applications graphically from the gnome-software utility
  • How to install sandboxed applications with flatpak

rpm-manpage

The rpm package manager manual

Read more

How to install apache tomcat on Linux RHEL 8 / CentOS 8

In this tutorial we will learn how to install Apache Tomcat 8 application container to RHEL 8 / CentOS 8. We will be using the zip package available to download from the Apache Tomcat website. As this package will not handle setting up the environment, we will create it from the command line.

In this tutorial you will learn:

  • How to install Apache Tomcat from zip file
  • How to create the environment for the Tomcat server from command line
  • How to add basic service file to systemd
  • How to enable autostart, start and stop the Tomcat server
  • How to verify Tomcat is reachable

Read more

How to enable SSH on Almalinux

SSH is the primary method of remote access and administration on Linux systems. SSH is a client-server service providing secure, encrypted connections over a network connection. After installing AlmaLinux or migrating from CentOS to AlmaLinux, it will probably be one of the first things you want to configure.

In this guide, we’ll go over the step by step instructions to install and configure SSH on AlmaLinux. This will help you whether you just want to connect to remote systems via SSH or you want your own system to accept incoming connections as well.

In this tutorial you will learn:

  • How to install SSH
  • How to start and stop the SSH service
  • How to allow SSH through system firewall
SSH server enabled and running on AlmaLinux

SSH server enabled and running on AlmaLinux

Read more

Install Let’s Encrypt on Centos 8

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

Read more

RHEL 8 / CentOS 8 change hostname

A hostname is the label or name linked to a device on a network. Its main purpose is to recognize a device on a specific network or over the internet. To change hostname on your system, you should understand the three different hostname types:

  • Static – Most of the time you will be interested in this type of hostname which is defined by user and the /etc/hostname configuration file.
  • Transient – This type of hostname is defined within kernel space and by default it is set to be the same as the static hostname. Transient hostnames can be set/updated by DHCP or mDNS at runtime.
  • Pretty – Pretty hostname allows for additional characters as per UTF8 character set hence serving rather only for presentation purposes. The pretty hostname also allows to include spaces.

This article will explain how to change or set hostname on RHEL 8 / CentOS 8 Linux server or workstation. To change hostname you will use the hostnamectl command.

In this tutorial you will learn:

  • How to change the static hostname.
  • How to change the transient hostname.
  • How to change the pretty hostname.
  • How to check the current hostname.

Read more

Install firewalld on CentOS Linux system

firewalld is a front-end for the built in netfilter firewall on Linux systems. The main advantage of firewalld over using raw nftables/iptables commands is that it’s easier to use, especially for more complex firewall features like timed rules. In this regard, it’s similar to the uncomplicated firewall (ufw) that comes installed by default on Ubuntu systems.

On CentOS, firewalld is the default firewall interface and should already be installed on your system. In this guide, we’ll take you through the installation of firewalld on CentOS, which includes some basic usage commands so you can get started managing the firewall.

In this tutorial you will learn:

  • How to install and update firewalld
  • firewalld basic usage commands

Read more

How to configure NTP server on RHEL 8 / CentOS 8 Linux

Chrony is a default NTP client as well as an NTP server on RHEL 8 / CentOS 8. This article will provide you with an information on how to install ntp and perform basic configuration of an NTP server or client on RHEL 8.

In this tutorial you will learn:

  • How to install NTP server on RHEL 8 / CentOS 8.
  • How to install NTP client on RHEL 8 / CentOS 8.
  • How to open firewall to incoming NTP requests.
  • How to configure Chrony as NTP server.
  • How to configure Chrony as NTP client.

Read more