imagebuilder
imagebuilder copied to clipboard
misc: A guide on different init systems. (working: runit, sysvinit)
Well, you might be bored of systemd, or you hate it because its too bloated, or you have a different reason, this is your special guide on how to install different init systems
This only works on Debian Bullseye, I will update the guide when new versions are released.
- Info about init
You may ask, "What is init?".
The answer is that init is a very crucial process that has to be run as PID 1 or it will not start. It is the master process that starts all of the child processes and sets up the system for normal use, this usually happens with no user input. Usually init hands over its process to another init system, runit, sysvinit, systemd, s6, etc, which usually has more features, but init can also run on its own with initscripts, but sometimes a pain to maintain sometimes, pretty cool right?
Working display managers
SDDM, installed by running the command sudo apt install sddm
| Tested & recommended
SLIM, installed by running the command sudo apt install slim
| Not tested but another option & default in Devuan
GDM, installed by running the command sudo apt install gdm3
| Tested & another recommended option
Unusable display managers LightDM, (Can somebody can help me on this? Seems to work on devuan out-of-the-box but still not working?)
- Enough info, lets start installing
NOTE: IF YOU DON'T FOLLOW INSTRUCTIONS CORRECTLY, IT COULD RUIN YOUR INSTALL.
Install git, nano, ucf and wget by running the command sudo apt install git nano wget ucf
Make sure you cd to your home directory, cd ~
Now, run the command wget http://ftp.us.debian.org/debian/pool/main/o/orphan-sysvinit-scripts/orphan-sysvinit-scripts_0.07_all.deb
Now, clone the repository, git clone https://git.devuan.org/farmatito/migration
Now, run cd migration
Now run sudo bash migration.sh
Now it is going to output "Warning use at your own risk. BACKUP YOUR DATA FIRST!!!", on this prompt type "y" to continue.
Now, it is going to ask "Do you want contrib repos to be included in your apt sources? [y|n]", on this question type "y."
Now, it is going to ask "Do you want non-free repos to be included in your apt sources? [y|n]", on this question type "y."
After some time, it is going to ask "Do you want to edit /etc/network/interfaces now? [y|n]", on this question type "n".
Now reboot by running the command sudo reboot
Now, when your back in the system, login, and run the command sudo nano /etc/apt/sources.list
Now, remove any other entries that are not pointing to "devuan.org".
Now, you are not going to have network, don't worry, run the command cd ~ && sudo dpkg -i orphan-sysvinit-scripts_0.07_all.deb
Now run, cd /etc/init.d
Then, run sudo bash network-manager start && sudo bash networking start
Once you are connected to the internet, run sudo apt update
Then, run sudo apt reinstall base-files && sudo apt upgrade
Now, run sudo apt clean
Then, run sudo apt autoremove
You can stop here if you want sysvinit, but if you want runit, then continue.
For runit, run sudo apt install runit-init init
, if it tells you to input "Yes, do as I say!", then do it, it is safe.
Then, run sudo reboot
- Cleanup
First run
cd ~
Then runrm -rf migration
After that, runrm -rf orphan-sysvinit-scripts_0.07_all.deb
Well, this is the end of the guide, I hope you have a good journey on your new init system, comments are open for suggestions, comments or questions.