How To Install Red Hat Linux : Red Hat Enterprise Linux Setup

Red Hat Linux installation guides you through partitioning and package selection during setup. If you’re looking for a reliable enterprise-grade operating system, learning how to install Red Hat Linux is a smart move. This step-by-step walkthrough will help you get it done without confusion.

Red Hat Enterprise Linux (RHEL) powers many servers and data centers worldwide. Installing it might seem daunting at first, but with clear instructions, you can handle it. Let’s break down the entire process from start to finish.

Prerequisites For Red Hat Linux Installation

Before you begin, you need a few things ready. First, download the Red Hat Enterprise Linux ISO file from the official Red Hat website. You’ll need a valid subscription or a free developer subscription to access it.

Second, make sure your hardware meets the minimum requirements. Red Hat recommends at least 1 GB of RAM for a basic server install, but 2 GB or more is better. You’ll also need at least 10 GB of free disk space, though 20 GB is safer for a typical setup.

Third, have a bootable USB drive or DVD ready. You can create a bootable USB using tools like Rufus on Windows or the dd command on Linux. Finally, back up any important data on the target machine, as the installation will erase existing partitions.

Downloading The Red Hat Enterprise Linux ISO

Go to the Red Hat customer portal at access.redhat.com. Log in with your account, or create one if you don’t have it. Navigate to the downloads section and select Red Hat Enterprise Linux Server.

Choose the latest version available. The ISO file is typically around 4-5 GB in size, so ensure you have a stable internet connection. Once downloaded, verify the checksum to confirm the file integrity.

Creating A Bootable Installation Media

Insert your USB drive (at least 8 GB) into your computer. Use a tool like Balena Etcher or Rufus to write the ISO to the USB. On Linux, you can use the dd command: sudo dd if=/path/to/rhel.iso of=/dev/sdX bs=4M. Replace /dev/sdX with your USB device name.

After writing, safely eject the USB. Now you’re ready to boot from it. Restart your computer and enter the BIOS or UEFI settings (usually by pressing F2, F12, Del, or Esc during startup). Set the USB drive as the first boot device.

How To Install Red Hat Linux

Now let’s walk through the actual installation. Boot from your USB drive, and you’ll see the Red Hat installation menu. Select “Install Red Hat Enterprise Linux” and press Enter.

The installer will load. You’ll be asked to choose your language and keyboard layout. Pick the options that match your region. Click Continue to proceed.

Installation Summary Screen

This screen shows all the major settings you need to configure. Don’t skip any section. You’ll see options for Date & Time, Keyboard, Language Support, Installation Source, Software Selection, Installation Destination, KDUMP, Network & Host Name, and Security Policy.

Let’s go through each one step by step.

Date And Time Settings

Select your time zone from the map or the drop-down list. You can also enable Network Time Protocol (NTP) to keep the clock accurate automatically. This is important for server logs and scheduled tasks.

Keyboard And Language Support

Your keyboard layout should already be set from the earlier step. If you need additional languages, you can add them here. This is useful if multiple users will access the system.

Installation Source

By default, the installer uses the local media (your USB or DVD). If you have a network installation source, you can specify it here. For most users, the default setting is fine.

Software Selection

This is where you choose what kind of system you want. Red Hat offers several base environments like Server with GUI, Minimal Install, Workstation, and more. For a typical server, select “Server” or “Minimal Install” if you prefer a command-line only setup.

You can also add additional software packages on the right side. For example, if you need a web server, check “Web Server” under Add-Ons. Be careful not to bloat your system with unnecessary packages.

Installation Destination

This is the most critical part. Click on “Installation Destination” to configure your disk partitioning. You have two main options: Automatic or Manual partitioning.

Automatic partitioning is simpler. The installer will create default partitions for you. Manual partitioning gives you full control. If you’re new to Linux, automatic is a safe choice. However, for advanced setups, manual is better.

If you choose manual, you’ll see a list of available disks. Select your target disk and click “Done”. Then you can create partitions like /boot, / (root), swap, and /home. A typical layout includes:

  • /boot: 500 MB to 1 GB
  • swap: Equal to RAM size or 2 GB for systems with lots of RAM
  • /: At least 10 GB, but 20 GB or more is recommended
  • /home: Remaining space for user files

Make sure to set the file system type to ext4 or xfs. Red Hat recommends xfs for root and home partitions. After setting up partitions, click “Done” to accept the changes.

KDUMP Configuration

KDUMP is a kernel crash dump mechanism. It’s useful for debugging system crashes. You can leave it enabled by default. If you have limited memory, you might disable it, but it’s generally safe to keep.

Network And Host Name

Click on “Network & Host Name”. Enable your network interface by toggling the switch. You can set a host name for your system, like “server1.example.com”. If you’re on a network with DHCP, the IP address will be assigned automatically. For static IP, click “Configure” and enter the details manually.

Security Policy

Red Hat offers security profiles based on industry standards. You can apply a profile like “Standard System Security Profile” or skip this step. For most installations, the default settings are adequate.

Begin Installation

After configuring all settings, click “Begin Installation” at the bottom right. The installer will start copying files to your disk. This process can take 10 to 30 minutes depending on your hardware.

During installation, you’ll be prompted to set the root password. Choose a strong password and remember it. You can also create a user account here. It’s good practice to create a regular user for daily tasks instead of using root.

Wait for the progress bar to complete. Once done, click “Reboot” to restart your system. Remove the installation media when prompted.

Post-Installation Steps

After rebooting, you’ll see the Red Hat login screen. Log in with the user account you created. If you installed a GUI, you’ll get a graphical desktop. For a minimal install, you’ll see a command prompt.

First, update your system. Open a terminal and run sudo yum update or sudo dnf update (depending on your version). This ensures you have the latest security patches and software.

Next, configure any additional services you need. For example, if you want a web server, install Apache with sudo dnf install httpd. Enable it to start on boot with sudo systemctl enable httpd.

You might also want to set up a firewall. Red Hat uses firewalld by default. Check its status with sudo systemctl status firewalld. Add rules to allow services like SSH or HTTP.

Registering Your System

To receive updates and support, you need to register your system with Red Hat. Use the command sudo subscription-manager register. Enter your Red Hat account credentials. Then attach a subscription with sudo subscription-manager attach --auto.

If you have a specific subscription pool, use sudo subscription-manager list --available to find the pool ID, then attach it manually.

Installing Additional Software

Red Hat repositories offer thousands of packages. Use dnf or yum to install what you need. For example, to install the Vim text editor, run sudo dnf install vim. To install development tools, use sudo dnf groupinstall "Development Tools".

You can also enable extra repositories like EPEL (Extra Packages for Enterprise Linux) for more software options. But be cautious, as not all packages are officially supported.

Common Issues And Troubleshooting

Sometimes things don’t go smoothly. Here are a few common problems and how to fix them.

Boot Loop After Installation

If your system keeps rebooting or gets stuck, check your boot order in BIOS. Make sure the hard disk is set as the first boot device, not the USB. Also, verify that the installation completed without errors.

Partitioning Errors

If you get errors during partitioning, your disk might have existing partitions. Use the “I don’t need support” option in the installer to reclaim space. Alternatively, boot from a live Linux USB and use GParted to clean the disk.

Network Not Working

After installation, if your network isn’t working, check the network configuration. Run ip addr to see your interfaces. If the interface is down, bring it up with sudo ifup eth0 (replace eth0 with your interface name).

You might also need to configure a static IP if DHCP isn’t available. Edit the configuration file in /etc/sysconfig/network-scripts/ and restart the network service.

Root Password Forgotten

If you forget the root password, you can reset it by booting into single-user mode. At the GRUB menu, press ‘e’ to edit the boot entry. Add rd.break to the kernel line, then boot. You’ll get a shell where you can remount the filesystem and change the password.

Frequently Asked Questions

Is Red Hat Linux Free To Install?

Red Hat Enterprise Linux requires a subscription for full support and updates. However, you can get a free developer subscription for personal use. There’s also CentOS Stream, which is a free upstream version of RHEL.

Can I Install Red Hat Linux On A Virtual Machine?

Yes, absolutely. You can install RHEL on VMware, VirtualBox, or Hyper-V. The process is similar to a physical installation. Just mount the ISO file as a virtual CD/DVD drive.

What Is The Difference Between Red Hat And Fedora?

Fedora is a community-driven distribution that serves as a testing ground for new features. Red Hat Enterprise Linux is more stable and supported for production environments. Fedora gets updates faster, while RHEL focuses on long-term stability.

How Long Does The Installation Take?

Typically, the installation takes 15 to 30 minutes, depending on your hardware and the number of packages selected. Downloading the ISO and creating bootable media adds extra time.

Do I Need To Partition Manually?

Not necessarily. The automatic partitioning option works well for most users. Manual partitioning gives you more control, especially if you need separate partitions for specific purposes like /var or /opt.

Final Thoughts

Learning how to install Red Hat Linux is a valuable skill for anyone working with enterprise systems. The process is straightforward once you understand the steps. Take your time with the partitioning and software selection, as these choices affect performance and security.

After installation, explore the system and customize it to your needs. Red Hat’s documentation is excellent if you run into issues. With practice, you’ll be able to set up RHEL servers quickly and confidently.

Remember to keep your system updated and backed up. Regular maintenance ensures your Red Hat Linux installation runs smoothly for years to come. Good luck with your new system.