The hostname of your Red Hat Enterprise 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. If you have not bothered to change the hostname yet, your system probably bears the default localhost.localdomain
name, which is not very helpful.
Luke Reynolds
There are no enabled repositories RHEL solution
You may receive a There are no enabled repos
error message when trying to install system updates on a fresh Red Hat Linux install. This occurs when you have not enabled your RHEL subscription. In this tutorial, we will take you through the step by step instructions to register your RHEL subscription, enable the package manager, and finally install updates and remedy the error message for good.
Check IP Address CentOS/RHEL
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.
Linux command line presentation
There is no need to install tons of software in order to create a nice and informative presentation. tpp, which stands for Text Presentation Program is a simple to use command line presentation tool which allows you to create a fancy text based slide show presentation and share it with your colleagues or students as an ordinary ASCII text file. tpp utilizes ncurses, and it supports colors, slide-in, source code output, animated command line execution and a real time command executions all available from within your terminal.
Mysql server has gone away – Fix
The MySQL server has gone away
error can occur when you have an established connection to the MySQL server and for one reason or another, the connection times out or otherwise goes down. In the context of a Linux system, the error can sometimes be seen from the MySQL client. In this tutorial, we will show several solutions for dealing with and troubleshooting the MySQL error.
How to make sleep or suspend Fedora
Disregarding GUI, you can always put your Linux system to sleep from command line. Here is a Fedora suspend procedure step by step.
KDE Desktop lock screen configuration
The KDE desktop environment is highly customizable, including the GUI’s lock screen. The lock screen can be configured and customized via the GUI’s settings menu or from a configuration file via the command line. In this tutorial, you will learn various ways to customize the desktop lock screen in the KDE desktop environment on a Linux system.
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.
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.
Linux: Create virtual network interface
On Linux, virtual network interface configuration isn’t something most people need to do very often, but it can come in handy sometimes. The system will recognize a virtual interface as a real, physical interface. linux create virtual network interface
Count lines of code with cloc
It can be difficult to count the number of lines of code that comprises a certain program, since simply viewing the source code will include comments, whitespace, etc. On Linux systems, the cloc command can be used to count lines of code in one or multiple files, and even sort results by programming language.
How to setup and use FTP Server in Ubuntu Linux
FTP stands for “File Transfer Protocol” and is a great protocol for downloading files from a remote or local server, or uploading files onto the server. Using FTP proves to be a pretty basic task after it has been setup properly. It works by having a server that is listening for connections (on port 21 by default) from clients. The clients can access a remote directory with their user account, and then download or upload files there, depending on the permissions that have been granted to them. It’s also possible to configure anonymous authorization, which means that users will not need their own account in order to connect to the FTP server.
On Ubuntu Linux, there are a multitude of different FTP server and client software packages available. You can even use default GUI and command line tools as an FTP client. A very popular and highly configurable FTP server package is vsftpd, available for many Linux systems, including Ubuntu.
In this guide, we will go over the step by step instructions to install vsftpd on Ubuntu. We’ll also see how to to configure the FTP server through various settings, then how to use command line, GNOME GUI, or FTP client software to connect to the FTP server.
FTP will suffice for some situations, but for connections over the internet, SFTP is recommended. This is because FTP is not secure to use over an internet connection, since your credentials and data are transmitted without encryption. The ‘S’ in SFTP stands for ‘Secure’ and tunnels the FTP protocol through SSH, providing the encryption needed to establish a secure connection. To learn more about SFTP, see our guide on How to Securely Transfer Files With SFTP.
In this tutorial you will learn:
- How to install and configure vsftpd on Ubuntu
- How to setup an FTP user account
- How to connect to FTP server via command line
- How to connect to FTP server via GUI
- How to configure anonymous FTP login
- How to change the default FTP listening port
- Troubleshooting “connection refused” FTP connection error