Skip to content

AlmaLinux

Setup AlmaLinux

Download AlmaLinux

Download the AlmaLinux 10.0 ISO image from the official AlmaLinux website: AlmaLinux Download Page.

Create Bootable USB with Balena Etcher

Use Balena Etcher to flash the downloaded AlmaLinux ISO file onto a USB drive. This will create your bootable installation medium.

Boot the Installer

Connect the bootable USB drive to your system. Power on and repeatedly press F7 (for the boot menu) or Del (for BIOS/UEFI settings) to access the relevant menu (GEEKOM Mini PC Air 12). From there, select your USB drive as the boot device.

Install AlmaLinux 10.0

Language and Keyboard

  1. Select English as the installation language.
  2. Set the keyboard layout to German.

Time Zone

Set the time zone to Europe/Berlin.

Software Selection

Under Software Selection, choose Server with GUI to install a graphical desktop environment.

Network & Wi-Fi

Configure your Wi-Fi connection during setup to ensure network access.

Installation Destination

  1. Open Installation Destination.
  2. Select the storage device.
  3. Delete any existing partitions if you want a clean install.

User and Root Setup

  1. Enable the root account and allow root login over SSH.
  2. Create a new user, for example: alma.
  3. Add this user to the wheel group to grant administrator privileges.

Begin Installation

Click Begin Installation to start the AlmaLinux setup.
Once completed, reboot the system and remove the USB drive.

First Boot

After rebooting, log in with either the root account or the newly created user with admin privileges. You now have a fresh AlmaLinux 10.0 installation ready for configuration.

SMB Configuration

Install Samba

sudo dnf update -y
sudo dnf install samba samba-client -y

Create Secure Samba User

sudo useradd -r -s /sbin/nologin -M -G users alma_samba
sudo smbpasswd -a alma_samba
sudo smbpasswd -e alma_samba

Secure Share Directory

sudo setfacl -R -m u:alma_samba:rwx /home/alma/Documents
sudo setfacl -R -m d:u:alma_samba:rwx /home/alma/Documents
sudo setfacl -m g:users:rwx /home/alma/Documents
sudo chmod -R g+s /home/alma/Documents

Configure Firewall

sudo firewall-cmd --add-service=samba --permanent
sudo firewall-cmd --reload

Secure smb.conf Configuration

# Edit /etc/samba/smb.conf and add at the end:
   
[alma_samba]
   path = /home/alma/Documents
   browseable = yes
   writable = yes
   valid users = alma_samba
   force user = alma_samba
   force group = users
   create mask = 0660
   directory mask = 0770
   inherit acls = yes

SELinux Security

sudo setsebool -P samba_enable_home_dirs 1
sudo chcon -R -t samba_share_t /home/alma/Documents
sudo restorecon -R /home/alma/Documents

Validate and Enable

sudo systemctl enable --now smb nmb
sudo systemctl restart smb nmb

Windows Access

Windows Explorer: \\YOUR_IP\alma_samba (username: alma_samba)

Last updated on