Install
The following is a walk-through of the desired settings.
Download the desired version or the latest version of Rocky Linux from: https://rockylinux.org/download
When it comes to a version of Rocky to use, I am a real minimalist as in, I want a bare bones system and I will install what I want thank you. So I normally opt for the x86_64 Minimal version.
If you are currently running Windows, you can use Rufus to create a bootable USB device. Rufus can be downloaded from: https://rufus.ie/en
Users
The following are the settings that I generally use:
root
localadmin
Rocky 9.1 Specific Note
During the Rocky 9.1 install, you could only setup the root account. Creating a secondary user account was not an option. In version 9.2, the option came back.
So we need to:
- Add the localadmin user.
- Change the password for localadmin.
- Add the localadmin to the wheel group (for ssh and sudo).
Networking
Onboard Ethernet
bond0
This network card has (2) 10G SFP+ connections. Each leg connects to two seperate Cisco Nexus 5k Switchs. They are setup in a LAG using LACP.
Create a new "net bond" connection using these setttings:
bond0-2
Use the following settings:
Install Location
Select the main OS drive. There is checkbox to assume all of the data, check this. There may be a prompt to delete all, if so, do it.
Package Selection
Make sure to change "SOFTWARE SELECTION" from "server" to "minimal install" or that nothing is checked.
NTP Settings
America/Detroit
tock.domain.local
Post Install Basics
Change Hostname
Rocky 8
Verify and/or Update the IP.
Rocky 9
Verify and/or Update the IP.
The sysconfig path does not exist anymore and everyone is being forced into using newer versions of nmcli. Fortunately, nmcli has tab/auto-complete to move your way around.
During testing, I found that the LACP bond0 kept flapping. I think it is because I only had one core switch on at the time and DHCP was taking forever (if at all to negotiate). So I used this to force it up. sudo nmcli device connect bond0.
Verify DNS is setup correctly.
The output should look something like:
Verify NTP is setup correctly.
The output should look something like:
LVM Expansion
For whatever reason, during the Fedora OS install, the partition manager did not use the the entire disk. This should not be required for Rocky 8, but it is good to verify.
Various commands to show the size of drives.
Display the size of the volume group.
Note: This may not be required based on the disk commands above.
Extend the logical volume to use all of the remaining disk space.
Note: This may not be required based on the disk commands above.
For xfs, force the OS to see the extended space:
It is probably wise to do a good ol' reboot.
Verifty Firewall Settings
Setup FirewallD to start during startup and run now.
Check the service status.
List zones.
List the default zones.
Disable default firewall ports.
Apply the firewall changes.
Show the current config.
Install basic system Packages
Update the system.
Rocky 9
Rocky 8 and 9
Install RPM Fusion
Install Extra Packages for Enterprise Linux (EPEL).
Rocky 8
Install RPM Fusion
To get a list of configured repos:
Sounds silly, check for updates since install EPEL.
Install common pre-reqs.
Acording to RPM Fusion, you have to reboot for the new repos to show up.