In this week’s feature highlight, we look at How to use a GUI on your AlmaLinux server
AlmaLinux is new a CentOS alternative and is often used as an operating system without GUI, but just like CentOS, AlmaLinux supports installing a desktop environment/GUI which you can connect to via VNC or similar software.
This blog article looks into how to install a GNOME desktop environment / GUI on your AlmaLinux server.
To use AlmaLinux in graphical mode, you will need to install the GNOME package on the system to enable GUI. We will go through the steps required to install GNOME GUI.
Check the available package groups for AlmaLinux.
yum group list
[root@vps ~]# yum group list
Last metadata expiration check: 0:21:54 ago on Tue 23 Mar 2021 01:27:06 PM EDT.
Available Environment Groups:
Custom Operating System
Installed Environment Groups:
Server with GUI
Legacy UNIX Compatibility
.NET Core Development
Graphical Administration Tools
RPM Development Tools
Smart Card Support
Installing Gnome GUI
Install Gnome GUI and in between it will prompt for download permission, enter “y” key and hit enter to proceed with installation.
yum groupinstall "Server with GUI"
To enable the GUI as default and boot into graphical mode.
In this week’s feature highlight, we look at How to Install LEMP Stack on AlmaLinux 8
LEMP is a combination of free, open source software. The acronym LEMP refers to the first letters of Linux (Operating system), Nginx Server, MySQL (database software), and PHP, PERL or Python, principal components to build a viable general purpose web server.
Install Nginx Web Server
First, we will start by installing the Nginx web server. To complete the installation, use the following command:
yum install nginx -y
[root@vps ~]# yum install nginx -y
Last metadata expiration check: 1:11:49 ago on Thu 25 Feb 2021 07:02:17 AM EST.
Package Arch Version Repo Size
nginx x86_64 1:1.14.1-9.module_el8.0.0+6007+fd7c418b
appstream 570 k
dejavu-fonts-common noarch 2.35-6.el8 baseos 74 k
dejavu-sans-fonts noarch 2.35-6.el8 baseos 1.5 M
Once the installation is complete, enable Nginx (to start automatically upon system boot), start the web server and verify the status using the commands below.
systemctl start nginx
systemctl enable nginx
systemctl status nginx
[root@vps ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor prese>
Active: active (running) since Thu 2021-02-25 08:15:12 EST; 16s ago
Main PID: 6968 (nginx)
Tasks: 3 (limit: 11438)
├─6968 nginx: master process /usr/sbin/nginx
├─6969 nginx: worker process
└─6970 nginx: worker process
Verify that the web server is running and accessible by accessing your server’s IP address.
From your browser,
We need to make user nginx as the owner of web directory. By default it’s owned by the root user.
chown nginx:nginx /usr/share/nginx/html -R
Install MariaDB Server
MariaDB is a popular database server. The installation is simple and requires just a few steps as shown.
yum install mariadb-server mariadb -y
[root@vps ~]# yum install mariadb-server mariadb -y
Last metadata expiration check: 1:15:23 ago on Thu 25 Feb 2021 07:02:17 AM EST.
Package Arch Version Repo Size
mariadb x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9
appstream 6.0 M
mariadb-server x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9
appstream 16 M
libaio x86_64 0.3.112-1.el8 baseos 32 k
mariadb-common x86_64 3:10.3.27-3.module_el8.3.0+2028+5e3224e9
Once the installation is complete, enable MariaDB (to start automatically upon system boot), start the MariaDB and verify the status using the commands below.
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb
[root@vps ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.3 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor pre>
Active: active (running) since Thu 2021-02-25 08:18:42 EST; 13s ago
Main PID: 8411 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 30 (limit: 11438)
└─8411 /usr/libexec/mysqld --basedir=/usr
Finally, you will want to secure your MariaDB installation by issuing the following command.
[root@vps ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
Once secured, you can connect to MySQL and review the existing databases on your database server by using the following command.
mysql -e "SHOW DATABASES;" -p
[root@server ~]# mysql -e "SHOW DATABASES;" -p
| Database |
| information_schema |
| mysql |
| performance_schema |
To Install PHP-FPM by running the following command.
In this week’s feature highlight, we look at How to Convert CentOS 8 to AlmaLinux 8
In this Article we will learn how to convert an existing CentOS 8 system to AlmaLinux 8. This guide includes the link to the conversion script maintained by the official GitHub repo for AlmaLinux.
AlmaLinux is a binary fork of RedHat Linux Enterprise Linux (RHEL) which is created as an alternative to CentOS. The current AlmaLinux version is based on RHEL 8.3. Almalinux is aimed to fill the gap left by the demise of CentOS stable Linux.
Before we begin
Please note that this is still in development phase and it is not recommended on Production environments yet.
Make sure you have a backup of your data if anything goes wrong.