Installing AlmaLinux: A Step-by-Step Guide
AlmaLinux is an open-source, community-driven Linux distribution that serves as a stable alternative to CentOS. In this guide, I will provide a detailed, step-by-step approach to installing AlmaLinux on your machine. Whether you are looking to set up a server or a desktop environment, I will cover all the necessary steps.
What is AlmaLinux?
AlmaLinux is designed to be functionally compatible with Red Hat Enterprise Linux (RHEL), making it a great choice for enterprises and developers. It is a free and open-source operating system that provides a stable platform for various applications.
Prerequisites for Installation
Before I proceed with the installation, there are a few prerequisites I need to ensure:
- Hardware Requirements: AlmaLinux requires at least 1 GB of RAM and 20 GB of storage space for a minimal installation. For a full desktop environment, I recommend at least 2 GB of RAM and 25 GB of storage.
- Installation Media: I need to download the AlmaLinux ISO file from the official website. I can use tools like Rufus or Balena Etcher to create a bootable USB drive.
- Backup Data: If I am installing AlmaLinux on a machine that already has an operating system, I must back up any important data.
Downloading AlmaLinux
I can download the latest version of AlmaLinux from the official website. The process is straightforward:
- Visit the AlmaLinux Download Page.
- Choose the appropriate version based on my architecture (x86_64 is common for most users).
- Select a mirror site to download the ISO file.
Creating Bootable Installation Media
After downloading the ISO file, I need to create a bootable USB drive. Here’s how I can do this using Rufus:
- Insert a USB drive into my computer.
- Open Rufus and select the USB drive from the device dropdown.
- Click on the “Select” button and choose the downloaded AlmaLinux ISO file.
- Make sure the partition scheme is set to MBR or GPT based on my system.
- Click on “Start” and wait for the process to complete.
Booting from USB Drive
Once the USB drive is ready, I need to boot from it:
- Restart my computer and enter the BIOS/UEFI settings (usually by pressing F2, F10, or Delete during boot).
- Change the boot order to prioritize the USB drive.
- Save changes and exit BIOS.
Starting the Installation Process
Upon booting from the USB drive, I will see the AlmaLinux installation menu. I will follow these steps:
- Select “Install AlmaLinux” from the menu.
- Choose my preferred language and click “Continue.”
Configuring Installation Settings
Now, I will configure the installation settings:
Installation Destination
- In the installation summary, select “Installation Destination.”
- Choose the hard drive where I want to install AlmaLinux.
- Select “Automatic partitioning” for a quick setup or “Custom” if I want to create specific partitions.
Network Configuration
- Click on “Network & Hostname.”
- Toggle the network interface to “On” to enable it.
- Set the hostname for my machine.
Software Selection
- Click on “Software Selection.”
- I can choose a minimal installation or a server with GUI. For most users, I recommend the Server with GUI option.
Time Zone Configuration
- Click on “Time Zone.”
- Select my geographical location to set the correct time zone.
Starting the Installation
After configuring all settings, I will return to the main installation summary page:
- Click on “Begin Installation.”
- During installation, I will set the root password and create a user account.
Completing the Installation
Once the installation completes, I will see a message indicating the success. I can then reboot my system:
- Remove the USB drive when prompted.
- Press Enter to reboot.
Post-Installation Steps
After I log into my new AlmaLinux installation, there are several steps I can take to optimize my environment:
Update the System
First, I should update the system to ensure all packages are current:
sudo dnf update -y
Install Additional Software
Depending on my needs, I might want to install additional software. For example, I could install development tools:
sudo dnf groupinstall "Development Tools" -y
Configure Firewall
To enhance security, I should configure the firewall. AlmaLinux uses firewalld
by default:
sudo systemctl start firewalld
sudo systemctl enable firewalld
I can then allow or deny services as needed:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Setting Up SSH (Optional)
If I plan to access my machine remotely, I need to install and configure SSH:
sudo dnf install openssh-server -y
sudo systemctl start sshd
sudo systemctl enable sshd
Conclusion
In this guide, I have walked through the process of installing AlmaLinux step-by-step. From downloading the ISO to configuring essential post-installation settings, I have aimed to provide a comprehensive resource for those interested in this robust operating system.
Remember to explore the official documentation and community forums for additional support and resources. AlmaLinux offers a stable and reliable environment for both servers and desktop applications. I hope this guide serves as a helpful starting point for your journey with AlmaLinux.