Debian Codegraph @

contrib/debian/README.md

raw symbols SCIP
1 HowTo: Finit on Debian GNU/Linux
2 ================================
3
4 HowTo use Finit to boot a Debian GNU/Linux system. It is assumed that
5 the user has already installed a compiler, C library header files, and
6 other tools needed to build a GNU configure based project. I.e., at
7 the very least:
8
9 root@debian:~# apt install build-essential
10
11 Like the [Alpine HowTo](../alpine/), you need to install [libuEv][] and
12 [libite][], but since this is Debian — which takes infinite care of its
13 users ♥ ♥ ♥ we don't need to worry about `pkg-config`, except for having
14 it installed so it can locate the uEv and lite libraries.
15
16 > With Debian everything just works!™
17
18 ... just make sure to install the following, so `ifup` and other basic
19 tools pre-systemd work as intended.
20
21 root@debian:~# apt install initscripts console-setup
22
23 > [!TIP]
24 > As of Debian 11 (Bullseye), libuev and libite are part of the main
25 > section of Debian. So just install the -dev packages :)
26
27 The following script can then be used to configure, build, install and
28 set up your system to run Finit:
29
30 user@debian:~/finit$ contrib/debian/build.sh
31
32 However, since `/sbin/init` already exists on your system, the script
33 creates another entry in your GRUB config by updating `$SUPPORTED_INITS`
34 in `/etc/grub.d/10_inux` and run `update-grub`. On reboot you will find
35 a (finit) entry in the "Advanced options for Debian GNU/Linux" section.
36 It is of course also possible to change the default init to Finit:
37
38 user@debian:~/finit# cd /sbin
39 user@debian:/sbin# sudo mv init oldinit
40 user@debian:/sbin# sudo ln -s finit init
41
42 Before rebooting, check the default [/etc/finit.conf](finit.conf) and
43 `/etc/finit.d/*.conf` files. The build + install script above provides
44 a few sample `.conf` files. See `initctl ls` after boot for a list of
45 enabled and available services, you can then use `enable` and `disable`
46 comands to `initctl`, followed by `reload` to activate your changes.
47
48 You can also use a standard [/etc/rc.local](rc.local) for one-shot tasks
49 and initialization like keyboard language etc.
50
51 > [!NOTE]
52 > For the X Window system, you may need to `sudo apt install elogind`
53 > (Bullseye and later), followed by `initctl reload` to activate it (it
54 > is enabled by default), and logout/login again. The elogind daemon
55 > ensures a regular non-root user can start and interact with an X
56 > session, otherwise keyboard and mouse won't work. When you're happy,
57 > you can enable the lightdm.conf, change the default runlevel to 3, and
58 > presto! you have a desktop again.
59
60
61 Have fun!
62 /Joachim ツ
63
64 [libuEv]: https://github.com/troglobit/libuev
65 [libite]: https://github.com/troglobit/libite