If you happen to be an MX Linux user and really want to change their init system from SysVinit to Systemd and vice versa, then this guide is for you. Although, you should not try something like this.
I wrote it for an It's FOSS reader and performed the steps in a virtual machine.
This guide will walk you through the following:
- Switch from SysVinit to Systemd
- Switch from Systemd to SysVinit
Switch from SysVinit to Systemd MX Linux
MX Linux uses the SysVinit, making it one of the best systemd-free Linux distros but there are times when you would want to switch to Systemd, the most popular init system out there.
There are two ways you can change your init system to the Systemd in MX Linux:
- Booting directly into the system with Systemd through GRUB
- Installing Systemd and removing SysVinit (easy for permanent effect)
Using bootloader (GUI method)
This is the easiest way you can switch to Systemd where all you have to do is select the Systemd option from the GRUB bootloader and it will boot into system using the Systemd.
First, reboot your system and choose the Advanced options for MX Linux
and then you will find the option to boot with the Systemd:
Yep, that's all it takes to use the Systemd.
But wait ✋.
This is a temporary solution. Want a permanent solution? Here you have it.
Boot into Systemd-enabled system by default
To use the Systemd by default, open the utility called MX boot options
and choose the Systemd boot option in the Boot to
menu:
Finally hit the Apply
button and from now on, you'll boot into the Systemd-enabled environment.
Using the command line (permanent)
If you want to switch to the Systemd permanently, then this is the perfect solution where you install the Systemd which will remove the SysVnit as it conflicts with the other init system.
So you are left with the system that purely uses Systemd.
To install Systemd, use the following command:
sudo apt install systemd-sysv
Once done, reboot your system and you'll boot to a Systemd-enabled MX Linux environment.
Switch from Systemd to SysVnit in MX Linux
If you used the previous section to switch to Systemd and want to switch back to SysVnit then here I will be sharing two ways to do so:
- Using MX boot options
- Removing Systemd (will install SysVnit automatically)
Using the MX boot options
If you previously used the MX boot options to configure Systemd as a default init system to boot into that it can easily be reverted.
All you have to do is open the MX boot options and choose the default boot option (the first one):
Finally, hit the Apply
button and you get access to the default init system (SysVnit).
By removing Systemd
Previously, I explained that installing Systemd will remove the SysVnit and you will access to the Systemd-enabled MX Linux,
In that case, all you need to do is remove the Systemd, and MX Linux will automatically install SysVnit.
To remove Systemd, execute the following command:
sudo apt remove systemd-sysv
Once done, reboot your system and you will boot into a SysVnit-powered environment.
My take on changing the init system
If you want to use a different init system then use a distro that comes pre-configured with your desired init system but I don't recommend changing the init system.
Why? Because there might be some parts of the system that'd only work with its default init system such as in MX Linux, changing to Systemd won't let you use the persistence features of the MX live USB.
But if you want to experiment, then use a VM and test things thoroughly before making changes to the main system.
Feel free to ask such questions (I love solving your queries and feels refreshing too).
from It's FOSS https://ift.tt/Aprz6XK
via IFTTT
Tidak ada komentar:
Posting Komentar