Site icon DesignLinux

How to Install Rocky Linux 8.4 Step by Step

CentOS 8 is reaching EOL (End Of Life) by the end of this year, 2021, and a few Linux distributions have been floated as formidable CentOS alternatives.

Among them is Rocky Linux, which is a fork of CentOS and 100% binary compatible with RHEL. In a previous guide, we introduced Rocky Linux 8.4 and how to download it. We have also touched on how you can migrate from CentOS 8 to Rocky Linux 8.4.

In this guide, we walk you through a step-by-step procedure of how you can install Rocky Linux 8.4. Since Rocky Linux is a fork of CentOS 8, the installation procedure remains more or less the same.

Prerequisites

Before you get started, ensure you have the following:

Installation of Rocky Linux

With your bootable USB drive at hand, plug it in and boot your PC. Keep in mind that you need to set the BIOS to boot from your installation medium.

Booting the PC

Upon booting, the first screen you get is a dark screen with a list of options. Select the first option “Install Rocky Linux 8” and press the ENTER key on your keyboard.

Install Rocky Linux 8

Thereafter, some boot messages will be splashed on the screen as shown.

Booting Rocky Linux 8

The Anaconda installer for Rocky Linux will then be started.

Rocky Linux Anaconda Installer

Choose Installation Language

On the Welcome page displayed, select your preferred installation language and click ‘Continue’.

Rocky Linux Language

Installation Summary – Configure Key Parameters

Before the installation gets underway, some crucial parameters need to be properly set or configured. These are grouped into 4 main sections:

Rocky Linux Installation Summary

We will configure the key parameters in each of these categories.

Configure the Keyboard

To configure the keyboard, click on the ‘Keyboard’ option.

Rocky Linux Keyboard

The keyboard configuration is set to English (US) by default. If you need to change to something else, click on the plus sign ( + ) at the bottom and select your preferred layout.

In addition, you can type a few words in the textbox at the right to test the layout. Once you are satisfied, click on ‘Done’ to save the changes. For now, we will go with the default selection.

Rocky Linux Keyboard Layout

Configure Language Support

To choose the OS language, click on ‘Language Support’.

Rocky Linux Language Support

Once again, select the language that you prefer to use to administer Rocky Linux with and click on ‘Done’.

Choose Rocky Linux Language

Configure Time and Date

Next up are the ‘Time and Date’ settings. Click on the option. By default, this is set to Americas/New York.

Rocky Linux Time and Date

Click on the map to specify your geographical location. At the very bottom, feel free to configure the time and date settings, and hit ‘Done’ to save the changes.

Rocky Linux Timezone

Configure Software

The next category is the ‘SOFTWARE’ which comprises ‘Installation Source’ and ‘Software Selection’.

Rocky Linux Installation Source

Nothing much is required in the first option, but you can take a peek.

Choose Rocky Linux Installation Source

Just accept the default settings and click ‘Done’. Next up is the ‘Software Selection’ option.

Rocky Linux Software Selection

The ‘Software Selection’ section provides a couple of Base environments that you can choose from. On the right pane is a list of additional software utilities and tools that you can select to install in addition to the base environment.

Select your preferred base environment and Additional packaged and click on ‘Done’.

Choose Rocky Linux Software Selection

Installation Destination – Configure Partitioning

This is the most pertinent section in customization and it defines how the hard drive is to be partitioned before the installation of Rocky Linux. By default, automatic partitioning is selected.

Rocky Linux Installation Destination

Automatic partitioning, as the name implies, automatically partitions your hard drive without requiring your intervention. This is mostly recommended for new Linux users who are not familiar with manual partitioning or users who don’t mind about the partition sizes. The downside to automatic partitioning is that you do not get the benefit of defining your preferred mount points and their sizes.

For this reason, we will try something more ambitious and manually partition the hard drive. Therefore. Select the ‘Custom’ option and click on ‘Done’.

Rocky Linux Custom Partition

This brings you to the ‘Manual partitioning’ window as shown. We are going to create the following mount points:

/boot		-	2GB
/		-	35GB
Swap		- 	8GB

To start creating the partitions, click on the plus ( + ) sign.

Rocky Linux Manual Partition

Specify the /boot partition and its desired capacity.

Rocky Linux Boot Partition

The newly created /boot partition appears on the partition table as indicated.

Rocky Linux Boot Partition Created

Repeat the same step and create the / (root) partition.

Rocky Linux Root Partition

And do likewise to create the Swap mount point.

Rocky Linux Swap Partition

This is how the partition table looks like with all the partitions created. To save the changes made on the hard drive, click on ‘Done’.

Rocky Linux Partition Table

On the pop-up alert that appears, click on the ‘Accept Changes’ button to write the partitions on the disk.

Rocky Linux Partition Changes

Configure Network and Hostname

Another important parameter that requires your attention is the ‘Network and Hostname’ setting.

Rocky Linux Network and Hostname

At the far right, turn on the toggle adjacent to the network adapter- Ethernet, in our case. This ensures that your system picks an IP address dynamically using the DHCP protocol from the router. At the very bottom, specify the hostname and click ‘Apply’.

To save the changes, click on ‘Done’.

Rocky Linux Network Configuration

Configure User Settings

The last parameter to configure is the ‘User settings’ beginning with the root password.

Rocky Linux User Settings

Provide a robust root password and save the changes.

Rocky Linux Root Password

Next, proceed and create a new regular user by clicking on the ‘User creation’ option.

Rocky Linux User Creation

Provide the username and password and click on ‘Done’.

Rocky Linux User Password

Begin the Installation of Rocky Linux 8

At this point, all the required settings have been configured. To kickstart the installation of Rocky Linux 8 on your system, click on ‘Begin Installation’.

Begin Rocky Linux Installation

The installer will begin by writing all the partitions on the hard drive and start installing all the required software packages depending on the base environment selected. This process takes roughly 40 minutes. At this point, you can take a much-deserved break and take a stroll.

Rocky Linux Installation Process

Once the installation is complete, you will be prompted to restart the system. At this point, remove your bootable USB drive and hit ‘Reboot system’.

Rocky Linux Installation Complete

On the GRUB menu, select the first option to boot into Rocky Linux.

Rocky Linux Boot Menu

You will be required to accept the End User License agreement. So, click on the License Information section.

Rocky Linux License

Accept the license agreement as shown.

Rocky Linux Agreement

And finally, click on ‘FINISH CONFIGURATION’.

Rocky Linux Finish Configuration

Finally, the login GUI will be displayed. Click on the login user icon and provide the password that you specified when creating a new user.

Rocky Linux Login

And this ushers you to the Rocky Linux desktop.

Rocky Linux Desktop

[ You might also like: How to Secure and Harden OpenSSH Server ]

Conclusion

As you have noted, the installation of Rocky Linux 8.4 mirrors that of CentOS 8 since Rocky Linux is a fork of the latter. You can now rest easy with the assurance that you have a stable and enterprise-grade system that will provide the same benefits as RHEL at absolutely no cost. In this tutorial, we have successfully installed Rocky Linux 8.4.

Exit mobile version