From 14dfef2dfba31c1ab753dd33bc928f9e3d544742 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Mon, 19 Feb 2018 13:01:59 +0000 Subject: [PATCH] Initial commit. --- 010_nosh.sh | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 010_nosh.sh diff --git a/010_nosh.sh b/010_nosh.sh new file mode 100644 index 0000000..4e70886 --- /dev/null +++ b/010_nosh.sh @@ -0,0 +1,171 @@ +## https://jdebp.eu/Softwares/nosh/debian-binary-packages.html +# Documentation +apt-get install -y nosh-guide_1.37_amd64.deb + +## Toolsets + +# (exec, nosh, and the chain-loading utilities) +apt-get install -y nosh-exec_1.37_amd64.deb +# (system-manager, service-manager, system-control, service-control and related utilities) +apt-get install -y nosh-service-management_1.37_amd64.deb +# (console-terminal-emulator, vc-get-tty, pty-get-tty, ttylogin-starter and related utilities) +apt-get install -y nosh-terminal-management_1.37_amd64.deb +# (ptybandage, ptyrun and related utilities) +apt-get install -y nosh-terminal-extras_1.37_amd64.deb +# (tcpserver shim) +apt-get install -y nosh-ucspi-tcp-shims_1.37_amd64.deb +# (Z Shell completions for the toolsets) +apt-get install -y nosh-zsh-completion_1.37_amd64.deb +# (systemd and servicectl shims for systemd compatibility) +apt-get install -y nosh-systemd-shims_1.37_amd64.deb +# (halt, reboot, poweroff, telinit, chkconfig, and related shims for old-style System 5/BSD compatibility) +apt-get install -y nosh-systemv-shims_1.37_amd64.deb +# (start, stop, initctl, and related shims for upstart compatibility) +apt-get install -y nosh-upstart-shims_1.37_amd64.deb +# (service shim for old-style System 5/BSD compatibility) +apt-get install -y nosh-service-command-shim_1.37_amd64.deb +# (invoke-rc.d and update-rc.d shims for Debian compatibility) +apt-get install -y nosh-debian-shims_1.37_amd64.deb +# (fasthalt, fastboot, and fastpoweroff shims for BSD compatibility) +apt-get install -y nosh-bsd-shims_1.37_amd64.deb +# (rcctl and and related shims for OpenBSD compatibility) +apt-get install -y nosh-openbsd-shims_1.37_amd64.deb +# (utx and and related shims for FreeBSD compatibility) +apt-get install -y nosh-freebsd-shims_1.37_amd64.deb +# (resizecons, clear_console, and chvt shims for compatibility with the old kbd package) +apt-get install -y nosh-kbd-shims_1.37_amd64.deb + +## Service bundles +apt-get install -y nosh-bundles_1.37_amd64.deb + +## system-manager as process #1 +apt-get install -y nosh-run-system-manager_1.37_amd64.deb + + +## Base services +# includes virecover and Debian cron. +apt-get install -y nosh-run-debian-server-base_1.37_amd64.deb +# CUPS, anacron, and Sun RPC. +#apt-get install -y nosh-run-debian-desktop-base_1.37_amd64.deb + +## Change the Desktop Bus helper program +## Fix udev behaviour on non-systemd +# The nosh toolset comes with one such replacement helper program, dbus-daemon-launch-helper, that can use system-control to speak to nosh service management, initctl to speak to upstart service management, or systemctl to speak to systemd service management. + +## Edit /etc/dbus-1/system.conf +## replace: +# +# /usr/lib/dbus-1.0/dbus-daemon-launch-helper +## with: +# +# /usr/local/bin/dbus-daemon-launch-helper + +DBUS_HOME=/usr/share/polkit-1 +# xmlstarlet will parse then output valid xml but removes whitespace lines people should either use +# xml or a user readable format. +#SERVICE_HELPER=/usr/local/bin/dbus-daemon-launch-helper +#xmlstarlet edit -L -u "/busconfig/servicehelper" -v ${SERVICE_HELPER} ${DBUS_HOME}/system.conf + +# sed to edit xml is bad but works and preserves layout but does not guarantee valid xml. +COMMENT_OLD="<\!-- This is a setuid helper that is used to launch system services -->" +COMMENT_NEW="<\!-- This is a non-setuid helper that is used to tell service management to launch system services -->" +sed -i -e s"|${COMMENT_OLD}|${COMMENT_NEW}|" ${DBUS_HOME}/system.conf + +SERVICE_HELPER_OLD="/usr/lib/dbus-1.0/dbus-daemon-launch-helper" +SERVICE_HELPER_NEW="/usr/local/bin/dbus-daemon-launch-helper" +sed -i -e s"|${SERVICE_HELPER_OLD}|${SERVICE_HELPER_NEW}|" ${DBUS_HOME}/system.conf + +## Plug and play device managers + +# (vdev) +#apt-get install nosh-run-vdev_1.37_amd64.deb (vdev) +# (systemd's udev) +apt-get install -y nosh-run-udev_1.37_amd64.deb +# (busybox mdev) +#apt-get install nosh-run-busybox-mdev_1.37_amd64.deb +# (suckless mdev) +#apt-get install nosh-run-suckless-mdev_1.37_amd64.deb + +## Virtual terminal services + +# (old-style kernel virtual terminals) +#apt-get install -y nosh-run-kernel-vt_1.37_amd64.deb +# (a new-style application-mode virtual terminal) +apt-get install -y nosh-run-user-vt_1.37_amd64.deb + +## Freedesktop.org "kit" services +# (Freedesktop.org "kit" services — packagekit, consolekit, policykit, NetworkManager, ModemManager et al.) +#apt-get install -y nosh-run-freedesktop-kits_1.37_amd64.deb + +## VirtualBox Guest Additions +apt-get install -y nosh-run-virtualbox-guest_1.37_amd64.deb + +## kernel log service + +apt-get install -y nosh-run-klog_1.37_amd64.deb + +## local syslog() service +# old-style logging service to programs that still use /dev/log. +apt-get install -y nosh-run-local-syslog_1.37_amd64.deb + +# Index of ftp://repository.jdebp.info./debian/dists/stable/main/binary-amd64/ +# +# Packages +# Packages.bz2 +# clockspeed_7_amd64.deb +# daemontools_7_amd64.deb +# djbdns-host_7_amd64.deb +# djbdns_7_amd64.deb +# leapsecs_7_amd64.deb +# libtai_7_amd64.deb +# multilog_7_amd64.deb +# +# nosh-bsd-services_1.13_amd64.deb +# nosh-bsd-shims_1.37_amd64.deb +# nosh-bsd-sockets_1.13_amd64.deb +# nosh-bundles_1.37_amd64.deb +# nosh-core-shims_1.37_amd64.deb +# nosh-debian-shims_1.37_amd64.deb +# nosh-exec_1.37_amd64.deb +# nosh-execline-shims_1.37_amd64.deb +# nosh-freebsd-shims_1.37_amd64.deb +# nosh-guide_1.37_amd64.deb +# nosh-kbd-shims_1.37_amd64.deb +# nosh-logrotate-shims_1.37_amd64.deb +# nosh-openbsd-shims_1.37_amd64.deb +# nosh-regular-services_1.13_amd64.deb +# nosh-regular-sockets_1.13_amd64.deb +# +# nosh-run-appletalk_1.37_amd64.deb +# nosh-run-busybox-mdev_1.37_amd64.deb +# nosh-run-debian-desktop-base_1.37_amd64.deb +# nosh-run-debian-server-base_1.37_amd64.deb +# nosh-run-freedesktop-kits_1.37_amd64.deb +# nosh-run-freedesktop-system-bus_1.37_amd64.deb +# nosh-run-kernel-vt_1.37_amd64.deb +# nosh-run-klog_1.37_amd64.deb +# nosh-run-local-syslog_1.37_amd64.deb +# nosh-run-openssh-server_1.37_amd64.deb +# nosh-run-suckless-mdev_1.37_amd64.deb +# nosh-run-system-manager_1.37_amd64.deb +# nosh-run-systemd-udev_1.37_amd64.deb +# nosh-run-udev_1.37_amd64.deb +# nosh-run-user-vt_1.37_amd64.deb +# nosh-run-vdev_1.37_amd64.deb +# nosh-run-via-systemd_1.37_amd64.deb +# +# nosh-service-command-shim_1.37_amd64.deb +# nosh-service-management_1.37_amd64.deb +# nosh-systemd-services_1.14_amd64.deb +# nosh-systemv-shims_1.37_amd64.deb +# nosh-terminal-extras_1.37_amd64.deb +# nosh-terminal-management_1.37_amd64.deb +# nosh-ucspi-tcp-shims_1.37_amd64.deb +# nosh-upstart-shims_1.37_amd64.deb +# nosh-zsh-completion_1.37_amd64.deb +# nosh_1.28_amd64.changes +# +# ptyget_7_amd64.deb +# publicfile_7_amd64.deb +# redo_1.4_amd64.deb +# taiclockd_7_amd64.deb