Builds a minimal Rocky Linux image to run on Apple silicon systems
Make sure to update your macOS to version 13.5 or later, then just pull up a Terminal in macOS and paste in this command:
curl https://leifliddy.com/rocky.sh | sh
This image was built on a Fedora system
dnf install arch-install-scripts bubblewrap mkosi systemd-container zip
qemu-user-static
package is needed if building the image on a non-aarch64
system mkosi v20
which matches the current version of mkosi
in the F39
repomkosi
is updated so quickly that it's difficult to keep up at times (I have several projects based on mkosi
)python3 -m pip install --user git+https://github.com/systemd/mkosi.git@v20
asahi-firstboot.service
will run, selinux will be set to enforcing and the system will reboot.Asahi Fedora Remix
projectNetworkManager
is enabled by default.
To connect to a wireless network, use the following sytanx:
nmcli dev wifi connect network-ssid
An actual example:
nmcli dev wifi connect blacknet-ac password supersecretpassword
Bring up a Terminal in macOS and run the following Asahi Linux script:
sudo curl -L https://alx.sh/wipe-linux | sh
You should definitely understand what this script does before running it. You can find more info here:
https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet
Once Linux is installed, you can then boot a compatible usb drive via u-boot
This project will create a bootable Rocky Linux USB drive for Apple silicon systems:
https://github.com/leifliddy/asahi-rocky-usb
echo 'SUBSYSTEM=="power_supply", KERNEL=="macsmc-battery", ATTR{charge_control_end_threshold}="80"' | sudo tee /etc/udev/rules.d/10-battery.rules
The light
command can be used to adjust the screen and keyboard backlight.
light -s sysfs/leds/kbd_backlight -S 10
light -s sysfs/backlight/apple-panel-bl -S 50
On high-DPI displays, the terminal fonts (on the console) appear extremely small
To increase the size, edit /etc/vconsole.conf
and specify a larger font size, such as:
FONT="latarcyrheb-sun32"
Then update grub for the change to take effect
grub2-mkconfig -o /boot/grub2/grub.cfg