Hey Homelabsers,
Here is the guide for Rocky Setup.
# Rocky Linux Setup Guide: Desktop + Cockpit + ZFS
Requirements:
- Fresh Rocky Linux 8 or 9 installation
- User must have root privileges
- Internet connection
Step 1: Prepare the Scripts
Save the following two scripts to your Rocky system:
1. install-desktop-environment.sh
Save the full contents of the desktop install script into this file.
2. ZFS-setup.sh
Save the full contents of the ZFS install script into this file.
Tip: Use nano or vim to create the files, or transfer them via scp from another system.
Step 2: Make the Scripts Executable
Run the following in a terminal:
chmod +x install-desktop-environment.sh ZFS-setup.sh
Step 3: Run the Desktop and Cockpit Setup
Run:
sudo ./install-desktop-environment.sh
What it does:
- Detects and verifies the OS
- Installs XFCE desktop environment
- Configures SELinux to permissive
- Installs and configures Cockpit with useful modules
- Adds 45Drives repo
- Enables firewall rules for Cockpit
- Backs up any existing 45Drives repo configs
- Finishes by prompting for a reboot
After execution:
- Your system will reboot
- A graphical desktop (XFCE) will be available
- Cockpit is available at: https://:9090
Step 4: Install ZFS and Cockpit-ZFS
After rebooting, run:
sudo ./ZFS-setup.sh
What it does:
- Installs ZFS using the appropriate repo
- Loads ZFS kernel modules
- Sets SELinux to permissive
- Reinstalls 45Drives repo if needed
- Installs cockpit-zfs
- Ensures cockpit.socket is active
- Prompts for another reboot
Final Result:
- XFCE desktop is running
- Cockpit is accessible at https://:9090
- ZFS and cockpit-zfs are installed and ready to use
- SELinux is set to permissive
- ZFS modules are loaded and enabled at boot
Optional (Post-Setup):
- Consider re-enabling SELinux and testing ZFS
- Create and import ZFS pools via Cockpit or CLI
- Update firewall rules or install additional Cockpit modules
Let me know if this needs further details.