Rocky Linux already works great on the ARM 64-bit (aarch64) platform, so it makes sense we’d want to get it running on the ever-popular Raspberry Pi devices.
We now have images for Rocky 8 that work very well on both a Raspberry Pi 3 and 4. The Rpi 1 and 2 are just not possible, as they are 32-bit only.
Here are some links to get started:
AltArch Chat Channel on Mattermost: https://chat.rockylinux.org/rocky-linux/channels/altarch (come join us!)
Skip Grube’s Raspberry Pi images and repo: http://skiprocky.linuxdn.org/RockyRpi/
(Creation script + kickstart source for image creation: https://git.rockylinux.org/skip/RockyRpi )
MarkVNL’s Raspberry Pi images and repo: https://vps01.havak.nl/rocky/
(includes packages, kickstart, script, images)
The easiest GUI tool to write the image is probably BalenaEtcher ( https://www.balena.io/etcher/ ), a cross-platform graphical disk writing program. Simply download the compressed
.xz image, insert your SD card or USB-connected hard drive for writing, and launch the program. You can select the compressed image file and which drive you want to flash. No need to decompress, it does it for you!
xzcat RockyRpi_8.4_20210829.img.xz > /dev/sdX
IMPORTANT: This command MUST be run from a root shell! Simply placing
sudo in front of it WILL NOT WORK. The redirect operator ( > ) does not have root permissions. If you wanted to do it in one command, it would look like this:
sudo bash -c "xzcat RockyRpi_8.4_20210829.img.xz > /dev/sdX"
Remember to replace the sdX with the device you want to write the image to (like sdb or sdc), and the .xz file in the command should be the exact name of the compressed image you downloaded.
The image is minimal and console-only, but can be easily extended via package installs to get a GUI (see section below), programming environment, or whatever else is needed. Login can be accomplished via attached keyboard and HDMI screen, or headless over ethernet + SSH (assuming you can find the DHCP-issued IP address)
Default Username: rocky
Default Password: rockylinux
Default user “rocky” has sudo permissions.
You should change these ASAP! Either create a new user and delete the default one, or pick a much stronger password! This is only to allow easy initial login to the system.
On initial login, the root partition ( / ) is only about 3 GB large. You can easily extend this by running the included script:
This will grow the partition size to cover the entire SD card or hard drive (64 GB, 128 GB, etc.).
(researched and written up by @MrSkribbs)
It is advised to enter the following commands with superuser privileges.
To prepare for installation, enter the following commands:
# dnf update # dnf install epel-release # dnf --enablerepo=epel group
Verify that Xfce is available to install using the following command:
# dnf group list
To install Xfce, use the following command: (This may take some time)
# dnf groupinstall "Xfce" "base-x"
Once the install has finished, use the following commands to set the graphical system to start automatically:
# echo "exec /usr/bin/xfce4-session" >> ~/.xinitrc # systemctl set-default graphical # reboot
NOTE: If you would like to use Xfce instead of Gnome, you must change the setting at the login screen by clicking on the setting wheel once the user has been selected and click ‘Xfce Session’.
(Special thanks to @pgreco , CentOS ARM master, for his assistance and guidance in getting this started!)