The purpose of this tutorial is to show how to find the system IP address, public IP address, default gateway, and DNS servers on CentOS Linux and Red Hat Linux. This can be done from both command line and GUI. We will cover the step by step instructions for both methods below.
Redhat / CentOS / AlmaLinux
How to disable SElinux on CentOS 7
SELinux, which stands for Security Enhanced Linux, is an extra layer of security control built for Linux systems. The original version of SELinux was developed by the NSA. Other key contributors include Red Hat, which has enabled it by default in their own RHEL and its derivative Linux distributions, including CentOS 7.
How to auto login on CentOS
The purpose of this tutorial is to enable auto login on GNOME GUI and the KDE Plasma desktop environment on CentOS Linux system. If you are using CentOS and getting tired of needing to provide your password every time your computer boots up, or goes back to the lock screen, then enabling auto login will save you some time and frustration.
How to install Gnome and start GUI in Redhat Linux
This article will answer the following questions: How to start GUI in Redhat Linux. GNOME is the default desktop environment on Red Hat Enterprise Linux, 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.
How to open http port 80 in Redhat Linux using firewall-cmd
This article will provide you with an information on how to open port in Redhat Linux, and more specifically we will be talking about the HTTP port 80. firewalld is the default firewall program that comes pre-installed on Red Hat Enterprise Linux 7 and 8. By default, the firewall is turned on, meaning that a very limited number of services are able to receive incoming traffic.
How to start httpd service in RHEL Linux
The purpose of this guide is to show the steps to install Apache web server on Red Hat Enterprise Linux versions 7 and 8. Then, we will show how to start httpd service in RHEL.
RHEL default gateway configuration
The default gateway is an essential part of computer networking. When a computer attempts to communicate with another device, it will send packets to the default gateway. The default gateway, which is usually a router, will then direct the packets where they need to go.
Configure logrotate on Redhat Linux
Logrotate is a utility designed for administrators who manage servers that produce a high volume of log files. It helps them save some disk space, as well as to avoid a potential risk of making a system unresponsive due to the lack of disk space.
How to query packages information with the rpm package manager
RPM is the recursive acronym for RPM Package Manager: it is the default low level package manager in some of the most famous and most used Linux distributions, such as Fedora, Red Hat Enterprise Linux, CentOS, OpenSUSE and their derivatives. The software, as you can expect, is free and open source; when invoked with the -q
option it can be used to query packages to retrieve specific information, such as dependencies, recommendations, files etc. In this tutorial we learn how to perform such queries.
In this tutorial you will learn:
- How to run rpm in “query” mode
- How to obtain general information about a package
- How to read a package changelog
- How to list the files provided by a package
- How to list the scripts used by a package
- How to list a package dependencies and recommendations
- How to list packages rendered obsolete by an rpm
How to work with dnf package groups
Dnf is the default high-level package manager in the Red Hat family of distributions, which includes Fedora, Red Hat Enterprise Linux and all its clones. It is the successor of Yum, and indeed using the yum command in recent versions of the distributions mentioned above, is just another way to call dnf. Dnf has a lot of nice features
and plugins which help us install, update and remove software packaged in the “.rpm” format. In this tutorial we explore dnf package groups and learn how to handle them.
In this tutorial you will learn:
- What is a package group
- How to get information about a package group
- How to list all available package groups
- How to install, upgrade and remove a package group
Creating a Redhat package repository
If your Red Hat server is not connected to the official RHN repositories, you will need to configure your own private repository which you can later use to install packages. The procedure of creating a Red Hat Linux repository is quite a simple task. In this article, we will show you how to create a local file Red Hat repository as well as a remote HTTP repository.
In this tutorial you will learn:
- How to use official Red Hat DVD as repository
- How to create a local file Red Hat repository
- How to create a remote HTTP Red Hat repository