AlbiWiki

fait par moi pour moi (et accessoirement vous aussi)

Outils pour utilisateurs

Outils du site


debian_without_shitstemd

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
debian_without_shitstemd [2019/09/12 19:14] – créée albirewdebian_without_shitstemd [2023/05/06 16:58] (Version actuelle) – removed html tags albirew
Ligne 1: Ligne 1:
-====== To change Debian buster from systemd to sysvinit ====== +====== Change Debian from systemd to sysvinit ====== 
-<wrap lo>Saved from [[http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_Buster_installation|without-systemd.org]]</wrap>+<wrap lo>Saved from [[http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_Buster_installation|without-systemd.org]] and it's [[https://web.archive.org/web/20170724073944/http://without-systemd.org/wiki/index.php/Debian_Stretch|Stretch update]] (updated and simplified for bullseye by myself)</wrap>
  
  
Ligne 6: Ligne 6:
 ===== About these instructions ===== ===== About these instructions =====
  
-These instructions are for installing the <html>sysvinit</html> init program on Debian "buster" 10 systems.  This is done by installing the <html>sysvinit-core</html> package for an init system that's not systemd, and a set of <html>elogind</html> packages to provide backwards compatibility with the <html>systemd</html> library packages+These instructions are for installing the sysvinit init program on Debian systems.  This is done by installing the sysvinit-core package for an init system that's not systemd, and a set of elogind packages to provide backwards compatibility with the systemd library packages.
- +
-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.+
  
 <note> <note>
 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.
 </note> </note>
- 
- 
-===== Boot with your Debian install media, or your rescue disc of choice =====  
- 
-Boot with your Debian install disc or USB mass storage device.  Choose rescue mode.  Answer all of the questions. 
- 
-===== Mount your harddrive and chroot into the filesystem =====  
- 
-Choose your root filesystem, for example the <html>/dev/sda2</html> device. (It'll probably be the only one that works, unless you have more than one UNIX or Linux system installed on your computer.) Choose to execute 
-a shell in that device, your root filesystem. 
- 
-===== Add sources for experimental and unstable to the APT sources.list =====  
- 
-Edit your <html>/etc/apt/sources.list</html> file, for example with the <html>nano</html> command.  You can use your mirror or the CDN source in the examples. 
- 
-Add a line for unstable, like this one, for example. 
-<html>deb http://deb.debian.org/debian unstable main</html> 
- 
-Add another line for experimental, like this one: 
-<html>deb http://deb.debian.org/debian experimental main</html> 
- 
-You can add <html>deb-src</html> lines in addition to the above two lines, too, if you 
-want to. 
- 
-===== Create an APT preferences pin for the unstable branch of Debian =====  
- 
-This is so your system doesn't download and upgrade everything to the <html>unstable</html> 
-branch of Debian. 
- 
-Create a file called something like <html>/etc/apt/preferences.d/unstable-pin</html> and edit 
-it, and put this in the file: 
-<code> 
- Package: * 
- Pin: release a=unstable 
- Pin-Priority: -1 
-</code> 
- 
-===== 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 <html>sysvinit-core</html> package and remove the systemd packages, run:+To install the sysvinit-core package and remove the systemd packages, run:
  
-<html>apt install sysvinit-core elogind/unstable libpam-elogind-compat libpam-elogind/unstable libelogind0/unstable</html> +<code>apt install sysvinit-core</code>
- +
-If you have a multi-arch <html>i386</html> and <html>amd64</html> Debian system, and you want +
-<html>i386</html> support for Wine or Steam, for example, you will need to install the +
-<html>libelogind0:i386/unstable</html> package, too.  Either add that package to the line +
-above or run the following line: +
- +
-<html>apt install libelogind0:i386/unstable</html>+
  
 ===== Reboot your system =====  ===== Reboot your system ===== 
  
-Exit the shell and choose the "reboot the system" option from the Debian rescue +<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't work =====  +
- +
-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://pkgmaster.devuan.org/bannedpackages.txt|assorted different packages]] can trigger a reinstall of the <html>systemd</html> package. +
- +
-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.  Run: +
- <html>echo systemd hold | dpkg --set-selections</html> +
- +
-You may have to be watchful whenever installing new packages, to see if the held <html>systemd</html> +
-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</htmlpackage is for +<code>echo -e 'Package: systemd-sysv\nPin: release *\nPin-Priority: -1\n' > /etc/apt/preferences.d/nosystemd</code>
-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 <html>unstable</html> pin so that the +  * Install udisks2 and/or policykit if needed for graphical desktops 
-related packages would upgrade automatically once they were in Debian buster (or <html>stable</html>.)+  * Remove the systemd packages, including libpam-systemd: <code>apt remove --purge --auto-remove systemd</code>
  
debian_without_shitstemd.1568308470.txt.gz · Dernière modification : 2019/09/12 19:14 de albirew