Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
debian_without_shitstemd [2019/09/12 19:15] – title albirew | debian_without_shitstemd [2023/05/06 16:58] (Version actuelle) – removed html tags albirew | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Change Debian | + | ====== Change Debian from systemd to sysvinit ====== |
- | <wrap lo>Saved from [[http:// | + | <wrap lo>Saved from [[http:// |
Ligne 6: | Ligne 6: | ||
===== About these instructions ===== | ===== About these instructions ===== | ||
- | These instructions are for installing the < | + | These instructions are for installing the sysvinit init program on Debian systems. |
- | + | ||
- | I have chosen to recommend using rescue media to change init programs because systemd does not allow its removal while it is running, and this seems to be the easiest and cleanest way. It also makes sure your reboot will be clean. | + | |
< | < | ||
These instructions work on buster systems, but also you can run these commands near the end of the Debian install procedure if you want to remove systemd before you even finish installing Debian. | These instructions work on buster systems, but also you can run these commands near the end of the Debian install procedure if you want to remove systemd before you even finish installing Debian. | ||
</ | </ | ||
- | |||
- | |||
- | ===== Boot with your Debian install media, or your rescue disc of choice ===== | ||
- | |||
- | Boot with your Debian install disc or USB mass storage device. | ||
- | |||
- | ===== Mount your harddrive and chroot into the filesystem ===== | ||
- | |||
- | Choose your root filesystem, for example the < | ||
- | a shell in that device, your root filesystem. | ||
- | |||
- | ===== Add sources for experimental and unstable to the APT sources.list ===== | ||
- | |||
- | Edit your < | ||
- | |||
- | Add a line for unstable, like this one, for example. | ||
- | < | ||
- | |||
- | Add another line for experimental, | ||
- | < | ||
- | |||
- | You can add < | ||
- | want to. | ||
- | |||
- | ===== Create an APT preferences pin for the unstable branch of Debian ===== | ||
- | |||
- | This is so your system doesn' | ||
- | branch of Debian. | ||
- | |||
- | Create a file called something like < | ||
- | it, and put this in the file: | ||
- | < | ||
- | | ||
- | Pin: release a=unstable | ||
- | | ||
- | </ | ||
- | |||
- | ===== Update APT package cache ===== | ||
- | |||
- | Make APT aware of the new packages, which we're going to install, by running the following line: | ||
- | apt update | ||
===== Install the relevant sysvinit and elogind compatibility packages ===== | ===== Install the relevant sysvinit and elogind compatibility packages ===== | ||
- | To install the < | + | To install the sysvinit-core package and remove the systemd packages, run: |
- | <html>apt install sysvinit-core | + | <code>apt install sysvinit-core</ |
- | + | ||
- | If you have a multi-arch < | + | |
- | < | + | |
- | < | + | |
- | above or run the following line: | + | |
- | + | ||
- | < | + | |
===== Reboot your system ===== | ===== Reboot your system ===== | ||
- | Exit the shell and choose the " | + | <code>reboot</code> |
- | menu. | + | |
- | + | ||
- | You may wish to remove the Debian install media before you reboot so your | + | |
- | computer does not automatically boot from the media. | + | |
- | + | ||
- | ===== What works ===== | + | |
- | + | ||
- | I installed all of the Debian graphical interfaces or desktop environments (DEs) in | + | |
- | a Qemu virtual machine, GNOME, Cinnamon, MATE, Xfce, LXQT, LXDE. They | + | |
- | all worked. | + | |
- | + | ||
- | Installing and removing packages in Synaptic worked in LXDE and probably would | + | |
- | work in all the other DEs since it's not DE-dependent. | + | |
- | + | ||
- | ===== What doesn' | + | |
- | + | ||
- | Ejecting the (virtual) DVD-ROM took around 3 minutes in MATE and Xfce. In LXQT and LXDE I got | + | |
- | messages saying the DVD-ROM was already mounted, although it was mounted or | + | |
- | possible to mount, which is the main point. | + | |
- | + | ||
- | ===== Setting a hold on the systemd package ===== | + | |
- | + | ||
- | Installing [[https:// | + | |
- | + | ||
- | In order to avoid reinstalling systemd you can at least get a warning from APT by setting | + | |
- | a hold on the systemd package after it is installed. | + | |
- | < | + | |
- | + | ||
- | You may have to be watchful whenever installing new packages, to see if the held < | + | |
- | package will be changed, or if systemd will be reinstalled. | + | |
- | ===== Support status | + | ===== Create an APT preferences pin to prevent reinstall of shitstemd |
- | The developers have stated that the <html>libpam-elogind-compat</html> package is for | + | <code>echo -e ' |
- | testing only, so these instructions may be completely unsupported in Debian. | + | |
- | I have only tested what I said above, that is, running all the desktop environments, | + | ===== Optional steps ===== |
- | testing mounting and ejecting the DVD-ROM, and installing and removing packages in Synaptic. | + | |
- | It would probably help if I made a better APT < | + | * Install udisks2 and/or policykit |
- | related | + | * Remove |