26 lines
1.1 KiB
Bash
Executable file
26 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
echo "enter the name of the user you may want to enable services for"
|
|
echo "$(id -un 1000) will be used if you do not enter a username"
|
|
read uname
|
|
uname=$(id -nu 1000)
|
|
: "${uname:=$(id -nu 1000)}"
|
|
sudo 66-tree -R net
|
|
sudo 66-tree -R root
|
|
sudo 66-tree -R boot
|
|
sudo 66-tree -R boot-user
|
|
sudo -u $uname -R base
|
|
sudo 66-tree -n boot
|
|
sudo 66-tree -nE net
|
|
sudo 66-tree -ncE -S net root
|
|
sudo 66-tree -n boot-user
|
|
sudo 66-enable -t boot -F boot@sys
|
|
sudo 66-enable -t net -F dhclient@eth0
|
|
sudo 66-enable -t root -F ntpd
|
|
sudo 66-enable -t boot-user -F dbus consolekit scandir@$uname mount-run@$uname setenv@$uname console-tracker@consolekit
|
|
sudo -u $uname 66-tree -nE base
|
|
sudo -u $uname 66-enable -t base -F dbus-session@$uname xdg-user-dirs
|
|
sudo 66-intree -zg
|
|
sudo -u $uname 66-intree -zg
|
|
echo "use 66-user-up and 66-user-down to enable/start or disable/stop user level s6 supervision"
|
|
echo "other trees than (boot root net boot-user) and user's (base) will not be altered or affected by this procedure"
|
|
echo "we are simply trying to offer a common s6 and 66 setup to be used as a base for further experimentation and custom work"
|