Skip to content

Instantly share code, notes, and snippets.

@sakshatshinde
Last active October 21, 2024 19:52
Show Gist options
  • Save sakshatshinde/112f02eda1d442f061df00b42c35a34f to your computer and use it in GitHub Desktop.
Save sakshatshinde/112f02eda1d442f061df00b42c35a34f to your computer and use it in GitHub Desktop.
A guide to install linux-zen kernel on Arch Linux for systemd-boot

A simple guide to install linux-zen (The "Zen" kernel) on Arch Linux for Systemd-boot

Firstly run the following command with the appropriate privilege:

sudo pacman -S linux-zen linux-zen-headers

When asked for confirmation, type 'y', press ENTER

Now the kernel is installed on your system. We need to tell systemd-boot to boot with the newly kernel installed. Open up a terminal and type these commands:

su [Enter password]

cd / ls

At these stage there should be a folder named "boot" Run the following command:

cd boot/loader/entries

There should be a ".conf" file. This could be named anything. In my case it is "arch.conf" NOTE : You can use any text editor / CLI editor you like. Here I am using nano.

nano arch.conf

After opening the file edit these entries to the new one ( '->' = to)

  • linux /vmlinuz-linux -> linux /vmlinuz-linux-zen
  • initrd /initramfs-linux.img -> initrd /initramfs-linux-zen.img

SAVE the file and exit Now we are done. Simply reboot and enjoy! :)

@fluffyloopy
Copy link

i cant find cd boot/loader/entries i can only find the boot folder. is there some new update or something?

same problem

It's just cd '/boot/loader/entries'
The step before he went to his root directory was the command "cd /" and then moved along with "cd boot/loader/entries"
that might solve your issue

Still none, is it because i use "grub" as a loader or such thing (?) there is only [ efi and grub directories, 3 images and a vmlinuz-linux file my first week with linux so yeah...

yeah for grub all you need to do is grub-mkconfig -o /boot/grub/grub.cfg after you finished installing and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment