From 9e8d99eade910aba0140eecc1df3719c73028f80 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Sat, 14 Oct 2017 13:19:25 +0100 Subject: [PATCH] General update to sync. --- 010_eudev.sh | 9 ++ 010_initramfs_resume.sh | 21 +++ 010_openrc.sh | 7 + 010_sysctl.sh | 38 ++++- 010_vdev.sh | 19 +++ 020_amprolla.sh | 71 +++++++++ 020_auditd.sh | 4 + 020_chrome-browser.sh | 5 +- 020_djmount.sh | 1 + 020_firmware.sh | 5 + 020_hexchat.sh | 1 + 020_iridiumbrowser.sh | 9 ++ 020_palemoon.sh | 2 +- 020_refracta-tools.sh | 42 +++--- 020_rox-system.sh | 9 ++ 020_smartmon.sh | 17 ++- 020_speechd-alsa.sh | 26 ++++ 020_swapspace.sh | 2 - 020_tmux.sh | 20 +++ 020_vim-system.sh | 6 + 020_vim.sh | 30 ++-- 020_zsh-system.sh | 19 +++ 020_zsh.sh | 16 +- 025_firefox-extensions.sh | 39 ++++- 025_remove-fossamail.sh | 2 + 050_set-reboot_policykit-1.sh | 87 +++++++++++ 050_wicd.sh | 5 +- sbuild-devuan.sh | 6 + systemd-references.sh | 1 + systemd-references.txt | 276 ++++++++++++++++++++++++++++++++++ 30 files changed, 743 insertions(+), 52 deletions(-) create mode 100644 010_eudev.sh create mode 100644 010_initramfs_resume.sh create mode 100644 010_openrc.sh create mode 100644 010_vdev.sh create mode 100644 020_amprolla.sh create mode 100644 020_auditd.sh create mode 100644 020_firmware.sh create mode 100644 020_iridiumbrowser.sh create mode 100644 020_rox-system.sh create mode 100644 020_speechd-alsa.sh create mode 100644 020_vim-system.sh create mode 100644 020_zsh-system.sh create mode 100644 025_remove-fossamail.sh create mode 100644 050_set-reboot_policykit-1.sh create mode 100644 sbuild-devuan.sh create mode 100644 systemd-references.sh create mode 100644 systemd-references.txt diff --git a/010_eudev.sh b/010_eudev.sh new file mode 100644 index 0000000..815581b --- /dev/null +++ b/010_eudev.sh @@ -0,0 +1,9 @@ +# to remove you need to specify the version of libudev1 to downgrade +# apt-cache policy libudev1 +# apt-get install udev libudev1=232-25+deb9u1 +ln -s /etc/apt/sources.list-available/devuan-experimental.list /etc/apt/sources.list.d/devuan-experimental.list +apt-get update +apt-get -t experimental install eudev + +rm /etc/apt/sources.list.d/devuan-experimental.list +apt-get update diff --git a/010_initramfs_resume.sh b/010_initramfs_resume.sh new file mode 100644 index 0000000..47c026a --- /dev/null +++ b/010_initramfs_resume.sh @@ -0,0 +1,21 @@ +# From version 0.128, the boot code waits for a suspend/resume device +# to appear, rather than checking just once. If the configured or +# automatically selected resume device is not available at boot time, +# this results in a roughly 30 second delay. + +# I: The initramfs will attempt to resume from /dev/sda2 +# I: (UUID=f4d19cc8-2c3e-4061-a618-7974cb88bfec) + + +# You should set the RESUME variable in +INITRAMFS_HOME=/etc/initramfs-tools/conf.d/ + +DEVICE=/dev/sda2 +UUID=f4d19cc8-2c3e-4061-a618-7974cb88bfec +RESUME="RESUME=none" +RESUME="RESUME=UUID=${UUID}" +RESUME="RESUME=/dev/${DEVICE}" +RESUME="RESUME=auto" + + +echo "${RESUME}" > ${INITRAMFS_HOME}/resume diff --git a/010_openrc.sh b/010_openrc.sh new file mode 100644 index 0000000..8de9742 --- /dev/null +++ b/010_openrc.sh @@ -0,0 +1,7 @@ +# cgroups uses sysvinit but from 0.2.5 can replace it. ascii version currently 0.2.3 +apt-get install sysvinit-core +apt-get install util-linux sysvinit-utils +apt-get install initscripts openrc + +# Reboot when done +for file in /etc/rc0.d/K*; do s=`basename $(readlink "$file")` ; /etc/init.d/$s stop; done diff --git a/010_sysctl.sh b/010_sysctl.sh index 18197ae..6491a5d 100644 --- a/010_sysctl.sh +++ b/010_sysctl.sh @@ -1,8 +1,40 @@ -# vm.swappiness (tendency to use swap, -# vm.vfs_cache_pressure (tendency to reclaim swap space back to memory -# vfs_cache_pressure value larger than 100 may negative performance impact: https://www.kernel.org/doc/Documentation/sysctl/vm.txt +# Considerations for zfs +# http://warpmech.com/?news=zfs-tuning-arc +# https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/ +# vm.overcommit_memory - with this set to “2”, the system should never promise more RAM+swap +# vm.swappiness - tendency to use swap, +# vm.vfs_cache_pressure - tendency to reclaim swap space back to memory +# vfs_cache_pressure - value larger than 100 may negative performance impact: +# https://www.kernel.org/doc/Documentation/sysctl/vm.txt + +#sudo sysctl -a | grep dirty +# vm.dirty_background_bytes = 0 +# vm.dirty_background_ratio = 10 +# vm.dirty_bytes = 0 +# vm.dirty_expire_centisecs = 3000 +# vm.dirty_ratio = 20 +# vm.dirty_writeback_centisecs = 500 +# vm.dirtytime_expire_seconds = 43200 + +#sudo sysctl -a | grep ... +# vm.swappiness = 60 +# vm.vfs_cache_pressure = 100 +# vm.max_map_count = 65530 + +#sudo sysctl -a | grep overcommit +# vm.overcommit_kbytes = 0 +# vm.overcommit_memory = 0 +# vm.overcommit_ratio = 50 + cat > /etc/sysctl.d/01-local.conf << 'EOF' vm.max_map_count=262144 vm.swappiness=1 vm.vfs_cache_pressure=50 + +vm.dirty_background_ratio=5 +vm.dirty_expire_centisecs=2000 +vm.dirty_ratio=15 + +vm.overcommit_memory=2 +vm.overcommit_ratio=25 EOF diff --git a/010_vdev.sh b/010_vdev.sh new file mode 100644 index 0000000..8b1a940 --- /dev/null +++ b/010_vdev.sh @@ -0,0 +1,19 @@ +# safest to always shift to udev before installing other things. +# You can swap between udev and vdev +## /usr/share/vdev/vdev-install.sh udev | vdev + +# The components are: +# libudev1-compat, which is the library ABI-compatible with libudev 219. +# vdevd, which is the hotplug daemon, including helpers, actions and configuration; +# vdev-initramfs, which provides an initramfs-tools intergration. +# This package includes a script (/usr/share/vdev/vdev-install.sh) for +# making a manual choice between using vdev or udev as /dev manager. +# You can swap between udev and vdev +## /usr/share/vdev/vdev-install.sh udev | vdev + +ln -s /etc/apt/sources.list-available/devuan-experimental.list /etc/apt/sources.list.d/devuan-experimental.list +apt-get update +apt-get -t experimental install libudev1-compat vdevd vdev-initramfs + +rm /etc/apt/sources.list.d/devuan-experimental.list +apt-get update diff --git a/020_amprolla.sh b/020_amprolla.sh new file mode 100644 index 0000000..9d7f3f2 --- /dev/null +++ b/020_amprolla.sh @@ -0,0 +1,71 @@ +# Merges upstream debian repos with devuan. Amprolla3 should include filters to spot systemd deps +# Since other upstream repos can be included we should be able to use amprolla to report on other +# systemd distro repos when wishing to import to devuan. Other packages such as pulseaudio could +# also be included in the filters (config.py:banpkgs = {'systemd', 'systemd-sysv', 'pulseaudio'}) + +# Edit /usr/src/amprolla/lib/config.py before running amprolla_init.py + + +# other distros: +# ubuntu / ppa +# http://kxstudio.linuxaudio.org/Repositories +## http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu lucid main +## http://ppa.launchpad.net/kxstudio-debian/music/ubuntu lucid main +## http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu lucid main +## http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu lucid main +## http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu lucid main +## http://kxstudio.linuxaudio.org/repo/ stable free +## http://kxstudio.linuxaudio.org/repo/ stable non-free + + +# config.py: +#repos = { +# 'kxstudio': { +# 'name': 'KXSTUDIO', +# 'host': 'http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu', +# 'dists': 'dists', +# 'pool': 'pool', +# 'aliases': False, +# 'skipmissing': False, +# }, +# 'kxstudio-apps': { +# 'name': 'KXSTUDIO-APPS', +# 'host': 'http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu', +# 'dists': 'dists', +# 'pool': 'pool', +# 'aliases': False, +# 'skipmissing': False, +# }, +# 'kxstudio-plugins': { +# 'name': 'KXSTUDIO-PLUGINS', +# 'host': 'http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu', +# 'dists': 'dists', +# 'pool': 'pool', +# 'aliases': False, +# 'skipmissing': False, +# }, +# 'kxstudio-music': { +# 'name': 'KXSTUDIO-PLUGINS', +# 'host': 'http://ppa.launchpad.net/kxstudio-debian/music/ubuntu', +# 'dists': 'dists', +# 'pool': 'pool', +# 'aliases': False, +# 'skipmissing': False, +# }, +# 'kxstudio-libs': { +# 'name': 'KXSTUDIO-LIBS', +# 'host': 'http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu', +# 'dists': 'dists', +# 'pool': 'pool', +# 'aliases': False, +# 'skipmissing': False, +# }, +#} + +apt-get install gnupg2 python3-requests rsync + +cd /usr/src/ +git clone https://github.com/parazyd/amprolla + +cd /usr/src/amprolla +cp lib/config.def.py lib/config.py diff --git a/020_auditd.sh b/020_auditd.sh new file mode 100644 index 0000000..53a3df5 --- /dev/null +++ b/020_auditd.sh @@ -0,0 +1,4 @@ +# To enable audit/rules.d + +sed -i 's,^\(USE_AUGENRULES=\).*,\1'\"yes\"',' /etc/default/auditd + diff --git a/020_chrome-browser.sh b/020_chrome-browser.sh index 458d832..2f48d84 100644 --- a/020_chrome-browser.sh +++ b/020_chrome-browser.sh @@ -53,12 +53,13 @@ update-alternatives --install /usr/bin/google-chrome google-chrome \ # user disabled it. rm -rf /etc/apt/sources.list.d/google-chrome.list -cat > /etc/apt/sources.list.d-available/google-chrome-stable.list << EOF +mkdir -p /etc/apt/sources.list-available +cat > /etc/apt/sources.list-available/google-chrome-stable.list << EOF # wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main EOF -ln -sf /etc/apt/sources.list.d-available/google-chrome-stable.list /etc/apt/sources.list.d/google-chrome-stable.list +ln -sf /etc/apt/sources.list-available/google-chrome-stable.list /etc/apt/sources.list.d/google-chrome-stable.list #---- diff --git a/020_djmount.sh b/020_djmount.sh index ea5b0ed..a3e7b9b 100644 --- a/020_djmount.sh +++ b/020_djmount.sh @@ -3,6 +3,7 @@ apt-get install djmount DJMOUNT_DIR=~/dlna mkdir -p ${DJMOUNT_DIR} +mkdir -p ~/.config/autostart bash -c "cat > ~/.config/autostart/djmount.desktop" < ~/.zshrc.d/006_tmuxinator.zsh + + + +cat > ~/.config/tmux/tmux.conf << 'EOF' + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Other examples: +# set -g @plugin 'github_username/plugin_name' +# set -g @plugin 'git@github.com/user/plugin' +# set -g @plugin 'git@bitbucket.com/user/plugin' + + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '/usr/share/tmux-plugin-manager/tpm' +EOF diff --git a/020_vim-system.sh b/020_vim-system.sh new file mode 100644 index 0000000..2b7859f --- /dev/null +++ b/020_vim-system.sh @@ -0,0 +1,6 @@ +# Run 020_vim.sh to populate the dotfiles +VIM_USER=default + +cp -a /home/${VIM_USER}/.vimrc /etc/skel +cp -a /home/${VIM_USER}/.vim /etc/skel +cp -a /home/${VIM_USER}/.Xresources /etc/skel diff --git a/020_vim.sh b/020_vim.sh index 1e21715..e9a856a 100644 --- a/020_vim.sh +++ b/020_vim.sh @@ -1,9 +1,17 @@ -set -x +set +x #sudo apt-get install vim-gtk sudo sed -i -e 's/"syntax on/syntax on/' /etc/vim/vimrc sudo sed -i -e 's/"set background=dark/set background=dark/' /etc/vim/vimrc +# Macros +# Format json +cat > ~/.vimrc << 'EOF' + +" Format json +nmap =j :%!python -m json.tool +EOF + # vimrc additions cat > ~/.vimrc << 'EOF' @@ -91,6 +99,7 @@ cat > ~/.Xresources << 'EOF' EOF cd ~ +apt-get install -y git git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim # Prepend to the .vimrc @@ -218,8 +227,8 @@ let NERDTreeIgnore=['\.pyc$', '\~$'] " YouCompleteMe customizations " close autocomplete window -let g:ycm_autoclose_preview_window_after_completion=1 -map g :YcmCompleter GoToDefinitionElseDeclaration +"let g:ycm_autoclose_preview_window_after_completion=1 +"map g :YcmCompleter GoToDefinitionElseDeclaration " Python docstrings for folded code. @@ -232,16 +241,19 @@ au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/lib EOF cat ~/.vimrc_pending +# append the existing vimrc to the plugin additions cat ~/.vimrc >> ~/.vimrc_pending + +# copy it back to the vimrc cp ~/.vimrc_pending ~/.vimrc #mv ~/.vimrc_pending ~/.vimrc cat ~/.vimrc -#vim +PluginInstall +qall +vim +PluginInstall +qall # Install YouCompleteMe support -apt-get install build-essential cmake exuberant-ctags -apt-get install python-dev python3-dev +apt-get install -y build-essential cmake exuberant-ctags +apt-get install -y python-dev python3-dev # semantic support for C-family #cd ~/.vim/bundle/YouCompleteMe/ && ./install.py --clang-completer @@ -257,6 +269,6 @@ apt-get install python-dev python3-dev #./build.py --all # jedi-vim (since youcompleteme seems to just crash) -apt-get install python-pip -pip install jedi - +#apt-get install -y python-pip +#pip install jedi +apt-get install -y vim-python-jedi diff --git a/020_zsh-system.sh b/020_zsh-system.sh new file mode 100644 index 0000000..a155de6 --- /dev/null +++ b/020_zsh-system.sh @@ -0,0 +1,19 @@ +# Run 020_zsh.sh to populate the files needed for /etc/skel +# assuming default user +ZSH_USER=default + +sed -i 's,^\(DSHELL=\).*,\1'/bin/zsh',' /etc/adduser.conf +#sed -i 's,^\(SHELL=\).*,\1'/bin/zsh',' /etc/default/useradd + +# Copy zsh files from clean install to /etc/skel +cp -a /home/${ZSH_USER}/zgen /etc/skel +cp -a /home/${ZSH_USER}/zsh-quickstart-kit /etc/skel +cp -a /home/${ZSH_USER}/.zshrc /etc/skel +cp -a /home/${ZSH_USER}/.zshrc.d /etc/skel +cp -a /home/${ZSH_USER}/.zsh_functions /etc/skel +cp -a /home/${ZSH_USER}/.zsh_aliases /etc/skel +cp -a /home/${ZSH_USER}/.zsh_aliases.d /etc/skel +#cp -a /home/${ZSH_USER}/.zsh-completitions /etc/skel +cp -a /home/${ZSH_USER}/.zgen /etc/skel +cp -a /home/${ZSH_USER}/.zgen-setup /etc/skel +cp -a /home/${ZSH_USER}/.zgen-local-plugins /etc/skel diff --git a/020_zsh.sh b/020_zsh.sh index 9c3ad2a..830f0d4 100644 --- a/020_zsh.sh +++ b/020_zsh.sh @@ -9,7 +9,7 @@ sudo mkdir -p /usr/local/share/zsh/site-functions sudo chmod g-w /usr/local/share/zsh/site-functions cd ~ -chsh -s $(which zsh) +sudo chsh -s $(which zsh) ${USER} sudo apt-get install -y git # Install zgen plugin manager and zsh quicktart to get a default setup for zsh @@ -132,8 +132,9 @@ cat > ~/.zgen-local-plugins << 'EOF' # Docker completion # zgen load srijanshetty/docker-zsh - zgen load robbyrussell/oh-my-zsh plugins/docker - zgen load robbyrussell/oh-my-zsh plugins/docker-compose + zgen load akarzim/zsh-docker-aliases + #zgen load robbyrussell/oh-my-zsh plugins/docker + #zgen load robbyrussell/oh-my-zsh plugins/docker-compose # Load me last GENCOMPL_FPATH=$HOME/.zsh/complete @@ -179,7 +180,9 @@ cat > ~/.zgen-local-plugins << 'EOF' EOF # example .d file use unset to prevent update -echo 'QUICKSTART_KIT_REFRESH_IN_DAYS=7' > ~/.zshrc.d/001-qs_refresh.zsh +echo '# Use unset 'QUICKSTART_KIT_REFRESH_IN_DAYS' to disable.' > ~/.zshrc.d/001-quickstart_refresh.zsh +echo 'QUICKSTART_KIT_REFRESH_IN_DAYS=30' >> ~/.zshrc.d/001-quickstart_refresh.zsh +echo 'ZGEN_PLUGIN_UPDATE_DAYS=30' > ~/.zshrc.d/001-zgen_refresh.zsh sudo apt-get install -y fonts-powerline powerline # sed -i 's,^\(export LOCATE_PATH=\).*,\1'/var/lib/mlocate/mlocate.db',' ~/.zshrc @@ -217,6 +220,11 @@ EOF # alias python version mkdir -p ~/.zsh_aliases.d + +# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value. +echo "# tell bash to check the next word after the alias (i.e sudo) by adding a space to the end of the alias value." > ~/.zsh_aliases.d/002_sudo.zsh +echo 'alias sudo="sudo "' >> ~/.zsh_aliases.d/002_sudo.zsh + cat > ~/.zsh_aliases.d/003-py_aliases.zsh << 'EOF' _py_version() { PY_VERSIONS=(2 3) diff --git a/025_firefox-extensions.sh b/025_firefox-extensions.sh index 0b7af94..c849171 100644 --- a/025_firefox-extensions.sh +++ b/025_firefox-extensions.sh @@ -113,7 +113,7 @@ sudo bash -c "cat > /etc/iceweasel/profile/xulstore.json" <<'EOF' EOF # FIXME -# Change firfox/iceweasel preferences in /home and /etc prefs.js +# Change firefox/iceweasel preferences in /home and /etc prefs.js ## firefox pref value - sets the value of the given user_pref to value variable #value=2 #sudo for i in "browser.startup.page" @@ -296,3 +296,40 @@ done # FIXME installing extensions from the commandline - http://askubuntu.com/questions/73474/how-to-install-firefox-addon-from-command-line-in-scripts +# xulstore.json has layout settings. But exists in a autogenerated profile at first run. +# FIXME xulstore.json location needs fixing. +# toolbar-menubar +# PersonalToolbar +sudo bash -c "cat > xulstore.json" <<'EOF' +{ + "chrome://browser/content/browser.xul": { + "PersonalToolbar": { + "collapsed": "false" + }, + "main-window": { + "height": "1040", + "screenX": "640", + "screenY": "92", + "sizemode": "normal", + "width": "1280" + }, + "navigator-toolbox": { + "iconsize": "small" + }, + "sidebar-title": { + "value": "" + }, + "toolbar-menubar": { + "autohide": "false" + } + } +} +EOF + +OPT[0]='.["toolbar-menubar"] = {"autohide" : "false"}' +OPT[1]='.["PersonalToolbar"] = {"collapsed" : "false"}' +for ((i = 0; i < ${#OPT[@]}; ++i)); do + OPTION="${OPT[$i]}" + jq "${OPTION}" xulstore.json > xulstore.json.new && \ + mv -b xulstore.json.new xulstore.json +done diff --git a/025_remove-fossamail.sh b/025_remove-fossamail.sh new file mode 100644 index 0000000..5e356f8 --- /dev/null +++ b/025_remove-fossamail.sh @@ -0,0 +1,2 @@ +sudo rm -rf /usr/share/applications/fossamail.desktop +sudo rm -rf /opt/FossaMail* diff --git a/050_set-reboot_policykit-1.sh b/050_set-reboot_policykit-1.sh new file mode 100644 index 0000000..a1d226a --- /dev/null +++ b/050_set-reboot_policykit-1.sh @@ -0,0 +1,87 @@ +#/usr/share/polkit-1/ +# +#actions +# +# +# +# +# +# +# +# Stop the system when multiple users are logged in +# System policy prevents stopping the system when other users are logged in +# +# no +# auth_admin_keep +# +# +# +# +# Restart the system when multiple users are logged in +# System policy prevents restarting the system when other users are logged in +# +# no +# auth_admin_keep +# +# +# +# +# +# to: +# +# +# +# +# +# +# +# Stop the system when multiple users are logged in +# System policy prevents stopping the system when other users are logged in +# +# no +# yes +# +# +# +# +# Restart the system when multiple users are logged in +# System policy prevents restarting the system when other users are logged in +# +# no +# yes +# +# +# +# + + +apt-get install xmlstarlet +POLKIT_HOME=/usr/share/polkit-1 + +# org.freedesktop.consolekit.system.stop yes +# org.freedesktop.consolekit.system.stop-multiple-users auth_admin_keep +# org.freedesktop.consolekit.system.restart yes +# org.freedesktop.consolekit.system.restart-multiple-users auth_admin_keep + +# Default +SYSTEM_STOP='yes' +SYSTEM_STOP_MULTI='auth_admin_keep' +SYSTEM_RESTART='yes' +SYSTEM_RESTART_MULTI='auth_admin_keep' + +# Single +SYSTEM_STOP='yes' +SYSTEM_STOP_MULTI='yes' +SYSTEM_RESTART='yes' +SYSTEM_RESTART_MULTI='yes' + +xmlstarlet edit -L -u "/policyconfig/action[@id='org.freedesktop.consolekit.system.stop']"/defaults/allow_active -v ${SYSTEM_STOP} ${POLKIT_HOME}/actions/org.freedesktop.consolekit.policy + +xmlstarlet edit -L -u "/policyconfig/action[@id='org.freedesktop.consolekit.system.stop-multiple-users']"/defaults/allow_active -v ${SYSTEM_STOP_MULTI} ${POLKIT_HOME}/actions/org.freedesktop.consolekit.policy + +xmlstarlet edit -L -u "/policyconfig/action[@id='org.freedesktop.consolekit.system.restart']/defaults/allow_active -v ${SYSTEM_RESTART} ${POLKIT_HOME}/actions/org.freedesktop.consolekit.policy + +xmlstarlet edit -L -u "/policyconfig/action[@id='org.freedesktop.consolekit.system.restart-multiple-users']"/defaults/allow_active -v ${SYSTEM_RESTART_MULTI} ${POLKIT_HOME}/actions/org.freedesktop.consolekit.policy + diff --git a/050_wicd.sh b/050_wicd.sh index 494b0f5..7f8b31c 100644 --- a/050_wicd.sh +++ b/050_wicd.sh @@ -5,8 +5,9 @@ sudo apt-get -y remove --purge libnm-gtk sudo rm /home/user/.config/autostart/nm-applet.destop - -sudo apt-get -y --force=yes install wicd wicd-gtk wicd-curses +# At some point we will move from ifconfig and iwconfig to ip and iw but wicd seems to only be partially their so: +sudo apt-get -y install iw net-tools iproute2 +sudo apt-get -y install wicd wicd-gtk wicd-curses # Stop the gtk wicd client, it doesn't like files being changes under it. Even if you delette the file, when it exits it writes out its settings. PID=`ps aux | grep python | grep wicd-client| awk {'print $2'}` diff --git a/sbuild-devuan.sh b/sbuild-devuan.sh new file mode 100644 index 0000000..2f76928 --- /dev/null +++ b/sbuild-devuan.sh @@ -0,0 +1,6 @@ +RELEASE=unstable +KEYRING=/usr/share/keyrings/devuan-archive-keyring.gpg +INCLUDE="eatmydata,ccache,gnupg" +MIRROR=http://auto.mirror.devuan.org/merged + +sudo sbuild-createchroot --keyring=${KEYRING} --include=${INCLUDE} ${RELEASE} /srv/chroot/${RELEASE}-amd64-sbuild ${MIRROR} diff --git a/systemd-references.sh b/systemd-references.sh new file mode 100644 index 0000000..527c9d1 --- /dev/null +++ b/systemd-references.sh @@ -0,0 +1 @@ +dpkg -l | awk '$1=="ii" {print $2}' | xargs -rn1 -I+ sh -c "dpkg -L + | grep --label=+ -Hw systemd" > systemd-references.txt diff --git a/systemd-references.txt b/systemd-references.txt new file mode 100644 index 0000000..7edaae2 --- /dev/null +++ b/systemd-references.txt @@ -0,0 +1,276 @@ +acpid:/lib/systemd +acpid:/lib/systemd/system +acpid:/lib/systemd/system/acpid.path +acpid:/lib/systemd/system/acpid.service +acpid:/lib/systemd/system/acpid.socket +alsa-utils:/lib/systemd +alsa-utils:/lib/systemd/system +alsa-utils:/lib/systemd/system/alsa-restore.service +alsa-utils:/lib/systemd/system/alsa-state.service +alsa-utils:/lib/systemd/system/basic.target.wants +alsa-utils:/lib/systemd/system/alsa-utils.service +alsa-utils:/lib/systemd/system/basic.target.wants/alsa-restore.service +alsa-utils:/lib/systemd/system/basic.target.wants/alsa-state.service +anacron:/lib/systemd +anacron:/lib/systemd/system +anacron:/lib/systemd/system/anacron.service +anacron:/lib/systemd/system/anacron.timer +apt:/lib/systemd +apt:/lib/systemd/system +apt:/lib/systemd/system/apt-daily-upgrade.service +apt:/lib/systemd/system/apt-daily-upgrade.timer +apt:/lib/systemd/system/apt-daily.service +apt:/lib/systemd/system/apt-daily.timer +apt:/usr/lib/apt/apt.systemd.daily +at:/lib/systemd +at:/lib/systemd/system +at:/lib/systemd/system/atd.service +at-spi2-core:/usr/lib/systemd +at-spi2-core:/usr/lib/systemd/user +at-spi2-core:/usr/lib/systemd/user/at-spi-dbus-bus.service +auditd:/lib/systemd +auditd:/lib/systemd/system +auditd:/lib/systemd/system/auditd.service +bluez:/lib/systemd +bluez:/lib/systemd/system +bluez:/lib/systemd/system/bluetooth.service +bootchart2:/lib/systemd +bootchart2:/lib/systemd/system +bootchart2:/lib/systemd/system/bootchart-done.service +bootchart2:/lib/systemd/system/bootchart-done.timer +bootchart2:/lib/systemd/system/bootchart.service +cgroupfs-mount:/lib/systemd +cgroupfs-mount:/lib/systemd/system +cgroupfs-mount:/lib/systemd/system/cgroupfs-mount.service +console-setup-linux:/lib/systemd +console-setup-linux:/lib/systemd/system +console-setup-linux:/lib/systemd/system/console-setup.service +console-setup-linux:/lib/systemd/system/keyboard-setup.service +consolekit:/lib/systemd +consolekit:/lib/systemd/system +consolekit:/lib/systemd/system/basic.target.wants +consolekit:/lib/systemd/system/console-kit-daemon.service +consolekit:/lib/systemd/system/console-kit-log-system-restart.service +consolekit:/lib/systemd/system/console-kit-log-system-start.service +consolekit:/lib/systemd/system/console-kit-log-system-stop.service +consolekit:/lib/systemd/system/halt.target.wants +consolekit:/lib/systemd/system/poweroff.target.wants +consolekit:/lib/systemd/system/reboot.target.wants +consolekit:/lib/systemd/system/basic.target.wants/console-kit-log-system-start.service +consolekit:/lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service +consolekit:/lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service +consolekit:/lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service +cron:/lib/systemd +cron:/lib/systemd/system +cron:/lib/systemd/system/cron.service +cups-daemon:/lib/systemd +cups-daemon:/lib/systemd/system +cups-daemon:/lib/systemd/system/cups.path +cups-daemon:/lib/systemd/system/cups.service +cups-daemon:/lib/systemd/system/cups.socket +debhelper:/usr/share/debhelper/autoscripts/postinst-systemd-dont-enable +debhelper:/usr/share/debhelper/autoscripts/postinst-systemd-enable +debhelper:/usr/share/debhelper/autoscripts/postinst-systemd-restart +debhelper:/usr/share/debhelper/autoscripts/postinst-systemd-restartnostart +debhelper:/usr/share/debhelper/autoscripts/postinst-systemd-start +debhelper:/usr/share/debhelper/autoscripts/postrm-systemd +debhelper:/usr/share/debhelper/autoscripts/postrm-systemd-reload-only +debhelper:/usr/share/debhelper/autoscripts/prerm-systemd +debhelper:/usr/share/debhelper/autoscripts/prerm-systemd-restart +debhelper:/usr/share/perl5/Debian/Debhelper/Sequence/systemd.pm +devuan-baseconf:/etc/apt/preferences.d/avoid-systemd +dirmngr:/usr/lib/systemd +dirmngr:/usr/lib/systemd/user +dirmngr:/usr/lib/systemd/user/dirmngr.service +dirmngr:/usr/lib/systemd/user/dirmngr.socket +dirmngr:/usr/lib/systemd/user/sockets.target.wants +dirmngr:/usr/lib/systemd/user/sockets.target.wants/dirmngr.socket +dmeventd:/lib/systemd +dmeventd:/lib/systemd/system +dmeventd:/lib/systemd/system/dm-event.service +dmeventd:/lib/systemd/system/dm-event.socket +dnsmasq:/lib/systemd +dnsmasq:/lib/systemd/system +dnsmasq:/lib/systemd/system/dnsmasq.service +docker-engine:/lib/systemd +docker-engine:/lib/systemd/system +docker-engine:/lib/systemd/system/docker.service +docker-engine:/lib/systemd/system/docker.socket +glib-networking-services:/usr/lib/systemd +glib-networking-services:/usr/lib/systemd/user +glib-networking-services:/usr/lib/systemd/user/glib-pacrunner.service +gnupg-agent:/usr/lib/systemd +gnupg-agent:/usr/lib/systemd/user +gnupg-agent:/usr/lib/systemd/user/gpg-agent-browser.socket +gnupg-agent:/usr/lib/systemd/user/gpg-agent-extra.socket +gnupg-agent:/usr/lib/systemd/user/gpg-agent-ssh.socket +gnupg-agent:/usr/lib/systemd/user/gpg-agent.service +gnupg-agent:/usr/lib/systemd/user/gpg-agent.socket +gnupg-agent:/usr/lib/systemd/user/sockets.target.wants +gnupg-agent:/usr/lib/systemd/user/sockets.target.wants/gpg-agent-browser.socket +gnupg-agent:/usr/lib/systemd/user/sockets.target.wants/gpg-agent-extra.socket +gnupg-agent:/usr/lib/systemd/user/sockets.target.wants/gpg-agent-ssh.socket +gnupg-agent:/usr/lib/systemd/user/sockets.target.wants/gpg-agent.socket +hdparm:/lib/systemd +hdparm:/lib/systemd/system-sleep +hdparm:/lib/systemd/system-sleep/hdparm +ifupdown:/lib/systemd +ifupdown:/lib/systemd/system +ifupdown:/lib/systemd/system/ifup@.service +ifupdown:/lib/systemd/system/networking.service +init-system-helpers:/etc/systemd +init-system-helpers:/etc/systemd/system +init-system-helpers:/usr/bin/deb-systemd-helper +init-system-helpers:/usr/bin/deb-systemd-invoke +init-system-helpers:/usr/share/man/man1/deb-systemd-helper.1p.gz +init-system-helpers:/usr/share/man/man1/deb-systemd-invoke.1p.gz +init-system-helpers:/var/lib/systemd +lintian:/usr/share/lintian/checks/systemd.desc +lintian:/usr/share/lintian/checks/systemd.pm +lintian:/usr/share/lintian/data/systemd +lintian:/usr/share/lintian/data/systemd/init-whitelist +lm-sensors:/lib/systemd +lm-sensors:/lib/systemd/system +lm-sensors:/lib/systemd/system/lm-sensors.service +lvm2:/lib/systemd +lvm2:/lib/systemd/system +lvm2:/lib/systemd/system/lvm2-lvmetad.service +lvm2:/lib/systemd/system/lvm2-lvmetad.socket +lvm2:/lib/systemd/system/lvm2-lvmpolld.service +lvm2:/lib/systemd/system/lvm2-lvmpolld.socket +lvm2:/lib/systemd/system/lvm2-monitor.service +lvm2:/lib/systemd/system/lvm2-pvscan@.service +lvm2:/lib/systemd/system-generators +lvm2:/lib/systemd/system-generators/lvm2-activation-generator +lvm2:/lib/systemd/system/lvm2.service +lxc:/lib/systemd +lxc:/lib/systemd/system +lxc:/lib/systemd/system/lxc-net.service +lxc:/lib/systemd/system/lxc.service +lxc:/lib/systemd/system/lxc@.service +lxcfs:/lib/systemd +lxcfs:/lib/systemd/system +lxcfs:/lib/systemd/system/lxcfs.service +lxdm:/lib/systemd +lxdm:/lib/systemd/system +lxdm:/lib/systemd/system/lxdm.service +neovim-runtime:/usr/share/nvim/runtime/ftplugin/systemd.vim +neovim-runtime:/usr/share/nvim/runtime/indent/systemd.vim +neovim-runtime:/usr/share/nvim/runtime/syntax/systemd.vim +nfs-common:/lib/systemd +nfs-common:/lib/systemd/system +nfs-common:/lib/systemd/system/auth-rpcgss-module.service +nfs-common:/lib/systemd/system/nfs-client.target +nfs-common:/lib/systemd/system/nfs-config.service +nfs-common:/lib/systemd/system/nfs-idmapd.service +nfs-common:/lib/systemd/system/nfs-utils.service +nfs-common:/lib/systemd/system/proc-fs-nfsd.mount +nfs-common:/lib/systemd/system/rpc-gssd.service +nfs-common:/lib/systemd/system/rpc-statd-notify.service +nfs-common:/lib/systemd/system/rpc-statd.service +nfs-common:/lib/systemd/system/rpc-svcgssd.service +nfs-common:/lib/systemd/system/run-rpc_pipefs.mount +nfs-common:/usr/lib/systemd +nfs-common:/usr/lib/systemd/scripts +nfs-common:/usr/lib/systemd/scripts/nfs-utils_env.sh +nfs-common:/lib/systemd/system/nfs-common.service +powerline:/usr/lib/systemd +powerline:/usr/lib/systemd/user +powerline:/usr/lib/systemd/user/powerline-daemon.service +python-powerline:/usr/lib/python2.7/dist-packages/powerline/dist/systemd +python-powerline:/usr/lib/python2.7/dist-packages/powerline/dist/systemd/powerline-daemon.service +redshift:/usr/lib/systemd +redshift:/usr/lib/systemd/user +redshift:/usr/lib/systemd/user/redshift.service +redshift-gtk:/usr/lib/systemd +redshift-gtk:/usr/lib/systemd/user +redshift-gtk:/usr/lib/systemd/user/redshift-gtk.service +resolvconf:/lib/systemd +resolvconf:/lib/systemd/system +resolvconf:/lib/systemd/system/resolvconf.service +rpcbind:/lib/systemd +rpcbind:/lib/systemd/system +rpcbind:/lib/systemd/system/rpcbind.service +rpcbind:/lib/systemd/system/rpcbind.socket +rpcbind:/lib/systemd/system/portmap.service +rsync:/lib/systemd +rsync:/lib/systemd/system +rsync:/lib/systemd/system/rsync.service +rsyslog:/lib/systemd +rsyslog:/lib/systemd/system +rsyslog:/lib/systemd/system/rsyslog.service +rtkit:/lib/systemd +rtkit:/lib/systemd/system +rtkit:/lib/systemd/system/rtkit-daemon.service +sanoid:/lib/systemd +sanoid:/lib/systemd/system +sanoid:/lib/systemd/system/sanoid.service +slim:/lib/systemd +slim:/lib/systemd/system +slim:/lib/systemd/system/slim.service +smartmontools:/lib/systemd +smartmontools:/lib/systemd/system +smartmontools:/lib/systemd/system/smartd.service +smartmontools:/lib/systemd/system/smartmontools.service +sudo:/lib/systemd +sudo:/lib/systemd/system +sudo:/lib/systemd/system/sudo.service +tlp:/lib/systemd +tlp:/lib/systemd/system +tlp:/lib/systemd/system/tlp-sleep.service +tlp:/lib/systemd/system/tlp.service +udev:/bin/systemd-hwdb +udev:/lib/systemd +udev:/lib/systemd/network +udev:/lib/systemd/network/99-default.link +udev:/lib/systemd/system +udev:/lib/systemd/system/sockets.target.wants +udev:/lib/systemd/system/sysinit.target.wants +udev:/lib/systemd/system/systemd-hwdb-update.service +udev:/lib/systemd/system/systemd-udev-settle.service +udev:/lib/systemd/system/systemd-udev-trigger.service +udev:/lib/systemd/system/systemd-udevd-control.socket +udev:/lib/systemd/system/systemd-udevd-kernel.socket +udev:/lib/systemd/system/systemd-udevd.service +udev:/lib/systemd/systemd-udevd +udev:/usr/share/man/man5/systemd.link.5.gz +udev:/usr/share/man/man8/systemd-hwdb.8.gz +udev:/usr/share/man/man8/systemd-udevd.service.8.gz +udev:/lib/systemd/system/sockets.target.wants/systemd-udevd-control.socket +udev:/lib/systemd/system/sockets.target.wants/systemd-udevd-kernel.socket +udev:/lib/systemd/system/sysinit.target.wants/systemd-hwdb-update.service +udev:/lib/systemd/system/sysinit.target.wants/systemd-udev-trigger.service +udev:/lib/systemd/system/sysinit.target.wants/systemd-udevd.service +udev:/lib/systemd/system/udev.service +udev:/usr/share/man/man8/systemd-udevd-control.socket.8.gz +udev:/usr/share/man/man8/systemd-udevd-kernel.socket.8.gz +udev:/usr/share/man/man8/systemd-udevd.8.gz +unattended-upgrades:/lib/systemd +unattended-upgrades:/lib/systemd/system +unattended-upgrades:/lib/systemd/system/unattended-upgrades.service +usb-modeswitch:/lib/systemd +usb-modeswitch:/lib/systemd/system +usb-modeswitch:/lib/systemd/system/usb_modeswitch@.service +usbmuxd:/lib/systemd +usbmuxd:/lib/systemd/system +usbmuxd:/lib/systemd/system/usbmuxd.service +vim-runtime:/usr/share/vim/vim80/ftplugin/systemd.vim +vim-runtime:/usr/share/vim/vim80/indent/systemd.vim +vim-runtime:/usr/share/vim/vim80/syntax/systemd.vim +wpasupplicant:/lib/systemd +wpasupplicant:/lib/systemd/system +wpasupplicant:/lib/systemd/system/wpa_supplicant.service +wpasupplicant:/lib/systemd/system/wpa_supplicant@.service +xserver-xorg-input-wacom:/lib/systemd +xserver-xorg-input-wacom:/lib/systemd/system +xserver-xorg-input-wacom:/lib/systemd/system/wacom-inputattach@.service +zfs-dkms:/usr/src/zfs-0.6.5.9/config/user-systemd.m4 +zfsutils-linux:/lib/systemd +zfsutils-linux:/lib/systemd/system +zfsutils-linux:/lib/systemd/system/zfs-import-cache.service +zfsutils-linux:/lib/systemd/system/zfs-import-scan.service +zfsutils-linux:/lib/systemd/system/zfs-mount.service +zfsutils-linux:/lib/systemd/system/zfs-share.service +zfsutils-linux:/lib/systemd/system/zfs.target +zfsutils-linux:/lib/systemd/system-preset +zfsutils-linux:/lib/systemd/system-preset/50-zfs.preset