From 09b38627ed1cff9dd038e353dd66eab8e46db996 Mon Sep 17 00:00:00 2001 From: Cyteen May Date: Wed, 12 Feb 2020 14:11:18 +0000 Subject: [PATCH] Added hashbang and made executable. --- 001_apt-group.sh | 1 + 001_apt-preferences.sh | 2 +- 001_apt-proxy.sh | 1 + 001_apt-sources.sh | 5 +- 001_apt-verbose-versions.sh | 1 + 001_apt_get-selections.sh | 1 + 001_apt_suggests-recommends.sh | 1 + 001_docker_grub-commandline.sh | 1 + 001_enable-binfmt-misc.sh | 1 + 001_locales.sh | 1 + 001_prevent_udev_net-rename.sh | 1 + 001_resolvconf.sh | 12 +++-- 001_ssh.sh | 1 + 001_swap-caps.sh | 1 + 001_system_bell.sh | 1 + 001_udev-rules.sh | 1 + 001_virtual-mem.sh | 1 + 010_alsa.sh | 1 + 010_apt-get.sh | 3 +- 010_broadcom-sta_wl.sh | 1 + 010_eudev.sh | 1 + 010_git-aliases.sh | 1 + 010_hddtemp.sh | 1 + 010_initramfs_resume.sh | 1 + 010_nosh.sh | 1 + 010_openrc.sh | 1 + 010_python.sh | 1 + 010_saltstack.sh | 1 + 010_sysctl.sh | 1 + 010_vdev.sh | 1 + 010_zfs.sh | 1 + 010_zram.sh | 23 ++++++++- 020_amprolla.sh | 1 + 020_arduino.sh | 1 + 020_audacity.sh | 1 + 020_auditd.sh | 1 + 020_blender.sh | 1 + 020_bluez-alsa.sh | 1 + 020_bootchart.sh | 1 + 020_brave_browser-beta.sh | 1 + 020_brave_browser-dev.sh | 1 + 020_brave_browser-nightly.sh | 1 + 020_brave_browser.sh | 1 + 020_bunsenlabs.sh | 1 + 020_chrome-browser.sh | 1 + 020_conky.sh | 1 + 020_console.sh | 1 + 020_deprecated-sysv-utils.sh | 1 + 020_devuan_arm-sdk.sh | 1 + 020_djmount.sh | 4 +- 020_dmesg.sh | 1 + 020_docker-compose.sh | 3 +- 020_docker.sh | 88 +++++++++++++++++++++++++++----- 020_drupal-compose.sh | 1 + 020_drush.phar.sh | 1 + 020_epson-driver.sh | 1 + 020_etcher.sh | 10 +++- 020_etckeeper.sh | 1 + 020_firmware.sh | 1 + 020_fish.sh | 1 + 020_fmui.sh | 1 + 020_fonts.sh | 20 ++++++-- 020_fossamail.sh | 1 + 020_free42.sh | 1 + 020_freecad.sh | 1 + 020_ghack_userjs.sh | 1 + 020_git-cola.sh | 1 + 020_git-lfs.sh | 1 + 020_git-mergetool.sh | 1 + 020_grc.sh | 1 + 020_hexchat.sh | 1 + 020_iridiumbrowser.sh | 1 + 020_jack.sh | 1 + 020_jitsi.sh | 1 + 020_keepass.sh | 1 + 020_kodi_nightly_ppa.sh | 1 + 020_kodi_ppa.sh | 1 + 020_kxstudio.sh | 1 + 020_lsd.sh | 1 + 020_lxc.sh | 1 + 020_lxd.sh | 1 + 020_lxdm-xfce4.sh | 1 + 020_meld.sh | 1 + 020_meshroom.sh | 1 + 020_mps-youtube.sh | 1 + 020_nanorc.sh | 1 + 020_neofetch_motd.sh | 1 + 020_neovim.sh | 1 + 020_nethogs.sh | 1 + 020_nodejs.sh | 1 + 020_nvidia_cuda.sh | 1 + 020_obsproject.sh | 1 + 020_onivim.sh | 1 + 020_onivim2.sh | 1 + 020_palemoon.sh | 1 + 020_pbuilder.sh | 1 + 020_photogrametry.sh | 1 + 020_pidgin.sh | 1 + 020_platformio-core.sh | 1 + 020_podman.sh | 1 + 020_powerline-bash.sh | 1 + 020_pycharm-install.sh | 1 + 020_pyload.sh | 1 + 020_python-jf.sh | 1 + 020_python.sh | 1 + 020_qemu.sh | 1 + 020_redshift.sh | 1 + 020_refracta-tools.sh | 1 + 020_riot.sh | 1 + 020_rox-filer.sh | 1 + 020_rox-system.sh | 1 + 020_shellcheck.sh | 1 + 020_smartmon.sh | 1 + 020_speechd-alsa.sh | 1 + 020_surf.sh | 1 + 020_swapspace.sh | 1 + 020_themes.sh | 1 + 020_tilda.sh | 1 + 020_tmux.sh | 1 + 020_torbrowser.sh | 5 +- 020_tvheadend.sh | 1 + 020_unetbootin.sh | 1 + 020_vcsh.sh | 1 + 020_vifm.sh | 1 + 020_vim-system.sh | 1 + 020_vim.sh | 1 + 020_waterfox.sh | 1 + 020_wireguard.sh | 1 + 020_xmonad.sh | 1 + 020_xorg.sh | 1 + 020_youtube-dl.sh | 1 + 020_zfs-auto-snapshot.sh | 1 + 020_zfs-sanoid.sh | 1 + 020_zfs-znapzend.sh | 1 + 020_zfs-znapzend_checkinstall.sh | 1 + 020_zsh-system.sh | 1 + 020_zsh.sh | 3 +- 020_zsh_aliases.d.sh | 1 + 020_zsh_quickstart.sh | 13 ++--- 025_festival-voices.sh | 1 + 025_firefox-extensions.sh | 1 + 025_mimetypes.sh | 1 + 025_remove-fossamail.sh | 1 + 025_thunderbird-extensions.sh | 1 + 025_xfce4-keyboard-shortcuts.sh | 1 + 025_xfce4-settings.sh | 1 + 025_xfce4-theme-fix.sh | 1 + 050_remove_avahi.sh | 1 + 050_remove_flash.sh | 1 + 050_remove_gnome-keyring.sh | 1 + 050_remove_gvfs.sh | 1 + 050_remove_policykit-1.sh | 1 + 050_remove_xscreensaver.sh | 1 + 050_set-reboot_policykit-1.sh | 1 + 050_wicd.sh | 1 + 100_safe_autoremove.sh | 1 + 101_livecd-add-zfs.sh | 1 + extract_chroot_image.sh | 0 onivim2.sh | 0 sources.list.sh | 4 +- systemd-references.sh | 0 test_powerline.sh | 0 update-docker-daemon-json.sh | 0 163 files changed, 300 insertions(+), 39 deletions(-) mode change 100644 => 100755 001_apt-group.sh mode change 100644 => 100755 001_apt-preferences.sh mode change 100644 => 100755 001_apt-proxy.sh mode change 100644 => 100755 001_apt-sources.sh mode change 100644 => 100755 001_apt-verbose-versions.sh mode change 100644 => 100755 001_apt_get-selections.sh mode change 100644 => 100755 001_apt_suggests-recommends.sh mode change 100644 => 100755 001_docker_grub-commandline.sh mode change 100644 => 100755 001_enable-binfmt-misc.sh mode change 100644 => 100755 001_locales.sh mode change 100644 => 100755 001_prevent_udev_net-rename.sh mode change 100644 => 100755 001_resolvconf.sh mode change 100644 => 100755 001_ssh.sh mode change 100644 => 100755 001_swap-caps.sh mode change 100644 => 100755 001_system_bell.sh mode change 100644 => 100755 001_udev-rules.sh mode change 100644 => 100755 001_virtual-mem.sh mode change 100644 => 100755 010_alsa.sh mode change 100644 => 100755 010_apt-get.sh mode change 100644 => 100755 010_broadcom-sta_wl.sh mode change 100644 => 100755 010_eudev.sh mode change 100644 => 100755 010_git-aliases.sh mode change 100644 => 100755 010_hddtemp.sh mode change 100644 => 100755 010_initramfs_resume.sh mode change 100644 => 100755 010_nosh.sh mode change 100644 => 100755 010_openrc.sh mode change 100644 => 100755 010_python.sh mode change 100644 => 100755 010_saltstack.sh mode change 100644 => 100755 010_sysctl.sh mode change 100644 => 100755 010_vdev.sh mode change 100644 => 100755 010_zfs.sh mode change 100644 => 100755 010_zram.sh mode change 100644 => 100755 020_amprolla.sh mode change 100644 => 100755 020_arduino.sh mode change 100644 => 100755 020_audacity.sh mode change 100644 => 100755 020_auditd.sh mode change 100644 => 100755 020_blender.sh mode change 100644 => 100755 020_bluez-alsa.sh mode change 100644 => 100755 020_bootchart.sh mode change 100644 => 100755 020_brave_browser-beta.sh mode change 100644 => 100755 020_brave_browser-dev.sh mode change 100644 => 100755 020_brave_browser-nightly.sh mode change 100644 => 100755 020_brave_browser.sh mode change 100644 => 100755 020_bunsenlabs.sh mode change 100644 => 100755 020_chrome-browser.sh mode change 100644 => 100755 020_conky.sh mode change 100644 => 100755 020_console.sh mode change 100644 => 100755 020_deprecated-sysv-utils.sh mode change 100644 => 100755 020_devuan_arm-sdk.sh mode change 100644 => 100755 020_djmount.sh mode change 100644 => 100755 020_dmesg.sh mode change 100644 => 100755 020_docker-compose.sh mode change 100644 => 100755 020_docker.sh mode change 100644 => 100755 020_drupal-compose.sh mode change 100644 => 100755 020_drush.phar.sh mode change 100644 => 100755 020_epson-driver.sh mode change 100644 => 100755 020_etcher.sh mode change 100644 => 100755 020_etckeeper.sh mode change 100644 => 100755 020_firmware.sh mode change 100644 => 100755 020_fish.sh mode change 100644 => 100755 020_fmui.sh mode change 100644 => 100755 020_fonts.sh mode change 100644 => 100755 020_fossamail.sh mode change 100644 => 100755 020_free42.sh mode change 100644 => 100755 020_freecad.sh mode change 100644 => 100755 020_ghack_userjs.sh mode change 100644 => 100755 020_git-cola.sh mode change 100644 => 100755 020_git-lfs.sh mode change 100644 => 100755 020_git-mergetool.sh mode change 100644 => 100755 020_grc.sh mode change 100644 => 100755 020_hexchat.sh mode change 100644 => 100755 020_iridiumbrowser.sh mode change 100644 => 100755 020_jack.sh mode change 100644 => 100755 020_jitsi.sh mode change 100644 => 100755 020_keepass.sh mode change 100644 => 100755 020_kodi_nightly_ppa.sh mode change 100644 => 100755 020_kodi_ppa.sh mode change 100644 => 100755 020_kxstudio.sh mode change 100644 => 100755 020_lsd.sh mode change 100644 => 100755 020_lxc.sh mode change 100644 => 100755 020_lxd.sh mode change 100644 => 100755 020_lxdm-xfce4.sh mode change 100644 => 100755 020_meld.sh mode change 100644 => 100755 020_meshroom.sh mode change 100644 => 100755 020_mps-youtube.sh mode change 100644 => 100755 020_nanorc.sh mode change 100644 => 100755 020_neofetch_motd.sh mode change 100644 => 100755 020_neovim.sh mode change 100644 => 100755 020_nethogs.sh mode change 100644 => 100755 020_nodejs.sh mode change 100644 => 100755 020_nvidia_cuda.sh mode change 100644 => 100755 020_obsproject.sh mode change 100644 => 100755 020_onivim.sh mode change 100644 => 100755 020_onivim2.sh mode change 100644 => 100755 020_palemoon.sh mode change 100644 => 100755 020_pbuilder.sh mode change 100644 => 100755 020_photogrametry.sh mode change 100644 => 100755 020_pidgin.sh mode change 100644 => 100755 020_platformio-core.sh mode change 100644 => 100755 020_podman.sh mode change 100644 => 100755 020_powerline-bash.sh mode change 100644 => 100755 020_pycharm-install.sh mode change 100644 => 100755 020_pyload.sh mode change 100644 => 100755 020_python-jf.sh mode change 100644 => 100755 020_python.sh mode change 100644 => 100755 020_qemu.sh mode change 100644 => 100755 020_redshift.sh mode change 100644 => 100755 020_refracta-tools.sh mode change 100644 => 100755 020_riot.sh mode change 100644 => 100755 020_rox-filer.sh mode change 100644 => 100755 020_rox-system.sh mode change 100644 => 100755 020_shellcheck.sh mode change 100644 => 100755 020_smartmon.sh mode change 100644 => 100755 020_speechd-alsa.sh mode change 100644 => 100755 020_surf.sh mode change 100644 => 100755 020_swapspace.sh mode change 100644 => 100755 020_themes.sh mode change 100644 => 100755 020_tilda.sh mode change 100644 => 100755 020_tmux.sh mode change 100644 => 100755 020_torbrowser.sh mode change 100644 => 100755 020_tvheadend.sh mode change 100644 => 100755 020_unetbootin.sh mode change 100644 => 100755 020_vcsh.sh mode change 100644 => 100755 020_vifm.sh mode change 100644 => 100755 020_vim-system.sh mode change 100644 => 100755 020_vim.sh mode change 100644 => 100755 020_waterfox.sh mode change 100644 => 100755 020_wireguard.sh mode change 100644 => 100755 020_xmonad.sh mode change 100644 => 100755 020_xorg.sh mode change 100644 => 100755 020_youtube-dl.sh mode change 100644 => 100755 020_zfs-auto-snapshot.sh mode change 100644 => 100755 020_zfs-sanoid.sh mode change 100644 => 100755 020_zfs-znapzend.sh mode change 100644 => 100755 020_zfs-znapzend_checkinstall.sh mode change 100644 => 100755 020_zsh-system.sh mode change 100644 => 100755 020_zsh.sh mode change 100644 => 100755 020_zsh_aliases.d.sh mode change 100644 => 100755 020_zsh_quickstart.sh mode change 100644 => 100755 025_festival-voices.sh mode change 100644 => 100755 025_firefox-extensions.sh mode change 100644 => 100755 025_mimetypes.sh mode change 100644 => 100755 025_remove-fossamail.sh mode change 100644 => 100755 025_thunderbird-extensions.sh mode change 100644 => 100755 025_xfce4-keyboard-shortcuts.sh mode change 100644 => 100755 025_xfce4-settings.sh mode change 100644 => 100755 025_xfce4-theme-fix.sh mode change 100644 => 100755 050_remove_avahi.sh mode change 100644 => 100755 050_remove_flash.sh mode change 100644 => 100755 050_remove_gnome-keyring.sh mode change 100644 => 100755 050_remove_gvfs.sh mode change 100644 => 100755 050_remove_policykit-1.sh mode change 100644 => 100755 050_remove_xscreensaver.sh mode change 100644 => 100755 050_set-reboot_policykit-1.sh mode change 100644 => 100755 050_wicd.sh mode change 100644 => 100755 100_safe_autoremove.sh mode change 100644 => 100755 101_livecd-add-zfs.sh mode change 100644 => 100755 extract_chroot_image.sh mode change 100644 => 100755 onivim2.sh mode change 100644 => 100755 sources.list.sh mode change 100644 => 100755 systemd-references.sh mode change 100644 => 100755 test_powerline.sh mode change 100644 => 100755 update-docker-daemon-json.sh diff --git a/001_apt-group.sh b/001_apt-group.sh old mode 100644 new mode 100755 index cb804e8..bdfa904 --- a/001_apt-group.sh +++ b/001_apt-group.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash usermod -g 3003 _apt diff --git a/001_apt-preferences.sh b/001_apt-preferences.sh old mode 100644 new mode 100755 index fe083ee..fb65407 --- a/001_apt-preferences.sh +++ b/001_apt-preferences.sh @@ -1,4 +1,4 @@ - +#!/usr/bin/env bash bash -c "cat > /etc/apt/preferences.d/avoid-avahi.pref" << 'EOF' Package: avahi* Pin: origin "" diff --git a/001_apt-proxy.sh b/001_apt-proxy.sh old mode 100644 new mode 100755 index c06296e..c2d69a8 --- a/001_apt-proxy.sh +++ b/001_apt-proxy.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash bash -c 'cat > /etc/apt/apt.conf.d/02proxy' << 'EOF' Acquire::http { Proxy "http://192.168.1.50:3142"; }; #Acquire::http { Proxy "http://192.168.1.65:3142"; }; diff --git a/001_apt-sources.sh b/001_apt-sources.sh old mode 100644 new mode 100755 index d216dac..0aa6e18 --- a/001_apt-sources.sh +++ b/001_apt-sources.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # avoid duplicates set -x rm /etc/apt/sources.list @@ -39,8 +40,8 @@ echo ${#OTHER_LIST[@]} for RELEASE in "${OTHER_LIST[@]}"; do echo "${RELEASE}" bash -c "cat > ${AVAILABLE}/devuan_${RELEASE}.list" < /etc/apt/apt.conf.d/verbose diff --git a/001_apt_get-selections.sh b/001_apt_get-selections.sh old mode 100644 new mode 100755 index c3ea4d6..122262f --- a/001_apt_get-selections.sh +++ b/001_apt_get-selections.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # copy a get-selections from the livecd (install your prefered programs beforehand) ## Backup: dpkg --get-selections > /var/tmp/packages.list diff --git a/001_apt_suggests-recommends.sh b/001_apt_suggests-recommends.sh old mode 100644 new mode 100755 index 2a4d7b5..7d56f6a --- a/001_apt_suggests-recommends.sh +++ b/001_apt_suggests-recommends.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash bash -c "cat > /etc/apt/apt.conf.d/99z_suggests" << 'EOF' APT::Install-Suggests "0"; APT::AutoRemove::SuggestsImportant "false"; diff --git a/001_docker_grub-commandline.sh b/001_docker_grub-commandline.sh old mode 100644 new mode 100755 index 12ad904..2f0024b --- a/001_docker_grub-commandline.sh +++ b/001_docker_grub-commandline.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Docker likes kernel swappiness support (on reboot) bash -c "$(perl -p -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"/g' /etc/default/grub)" diff --git a/001_enable-binfmt-misc.sh b/001_enable-binfmt-misc.sh old mode 100644 new mode 100755 index 3a0a3b4..6e68b95 --- a/001_enable-binfmt-misc.sh +++ b/001_enable-binfmt-misc.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash sudo apt-get install -y --reinstall qemu qemu-user-static binfmt-support sudo update-binfmts --enable qemu-aarch64 diff --git a/001_locales.sh b/001_locales.sh old mode 100644 new mode 100755 index a1ca5ef..6088d96 --- a/001_locales.sh +++ b/001_locales.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Set env apt-get -y install locales locale-gen "en_GB.UTF-8" diff --git a/001_prevent_udev_net-rename.sh b/001_prevent_udev_net-rename.sh old mode 100644 new mode 100755 index 9396719..49fd426 --- a/001_prevent_udev_net-rename.sh +++ b/001_prevent_udev_net-rename.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # prevent renaming of network interfaces by udev ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules diff --git a/001_resolvconf.sh b/001_resolvconf.sh old mode 100644 new mode 100755 index 6bdf2e5..03cd5f3 --- a/001_resolvconf.sh +++ b/001_resolvconf.sh @@ -1,7 +1,11 @@ +#!/usr/bin/env bash apt-get -y install --reinstall resolvconf mkdir -p /etc/resolvconf/resolv.conf.d/ -bash -c 'echo "nameserver 62.113.203.55" >> /etc/resolvconf/resolv.conf.d/head' -bash -c 'echo "nameserver 82.141.39.32" >> /etc/resolvconf/resolv.conf.d/head' -bash -c 'echo "nameserver 51.254.141.22" >> /etc/resolvconf/resolv.conf.d/head' -bash -c 'echo "options timeout 1 attempts 1 rotate" >> /etc/resolvconf/resolv.conf.d/tail' +bash -c 'echo "nameserver 94.247.43.254" >> /etc/resolvconf/resolv.conf.d/head' +bash -c 'echo "nameserver 212.159.6.10" >> /etc/resolvconf/resolv.conf.d/head' +bash -c 'echo "nameserver 69.164.196.21" >> /etc/resolvconf/resolv.conf.d/head' +bash -c 'echo "nameserver 84.200.79.111" >> /etc/resolvconf/resolv.conf.d/head' +bash -c 'echo "nameserver 192.168.1.1" >> /etc/resolvconf/resolv.conf.d/head' +bash -c 'echo "search broadband" >> /etc/resolvconf/resolv.conf.d/tail' +#bash -c 'echo "options timeout 1 attempts 1 rotate" >> /etc/resolvconf/resolv.conf.d/tail' /etc/init.d/resolvconf reload diff --git a/001_ssh.sh b/001_ssh.sh old mode 100644 new mode 100755 index 98ac6d7..7e03539 --- a/001_ssh.sh +++ b/001_ssh.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config /etc/init.d/ssh restart diff --git a/001_swap-caps.sh b/001_swap-caps.sh old mode 100644 new mode 100755 index a4b43a3..af593d9 --- a/001_swap-caps.sh +++ b/001_swap-caps.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # xmodmap cat > ~/.Xmodmap << 'EOF' ! Swap caps lock and escape diff --git a/001_system_bell.sh b/001_system_bell.sh old mode 100644 new mode 100755 index e59e06f..73f5caa --- a/001_system_bell.sh +++ b/001_system_bell.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # kill the beep # https://wiki.archlinux.org/index.php/Disable_PC_speaker_beep # bash shell diff --git a/001_udev-rules.sh b/001_udev-rules.sh old mode 100644 new mode 100755 index 33cce92..300ba2e --- a/001_udev-rules.sh +++ b/001_udev-rules.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash cat > /etc/udev/rules.d/99-saleae-logic.rules << 'EOF' # Rules for the Saleae Logic analyzer to allow to run the programs a normal user # being part of the plugdev group. Simply copy the file to /etc/udev/rules.d/ diff --git a/001_virtual-mem.sh b/001_virtual-mem.sh old mode 100644 new mode 100755 index 1d5775e..ac95219 --- a/001_virtual-mem.sh +++ b/001_virtual-mem.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # sysctl -w vm.max_map_count=262144 if grep -q '^\(vm.max_map_count=\)' /etc/sysctl.conf diff --git a/010_alsa.sh b/010_alsa.sh old mode 100644 new mode 100755 index 6297162..049e472 --- a/010_alsa.sh +++ b/010_alsa.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y remove --purge pulseaudio pulseaudio-module-x11 pulseaudio-utils pavucontrol gstreamer1.0-pulseaudio pacman pavumeter pavucontrol kill -9 `ps aux | grep -v grep | grep start-pulseaudio | awk {'print $2'}` diff --git a/010_apt-get.sh b/010_apt-get.sh old mode 100644 new mode 100755 index b2a2e33..898825d --- a/010_apt-get.sh +++ b/010_apt-get.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install software-properties-common apt-transport-https wget curl lvm2 apt-get -y install apt-file apt-get -y install tree @@ -41,7 +42,7 @@ apt-get -y install flac apt-get -y install vorbis-tools apt-get -y install sox apt-get -y install wavpack -apt-get -y install shntools +apt-get -y install shntool apt-get -y install lltag apt-get -y install firmware-iwlwifi #For thinkpad wifi: Intel 5100 AGN [Shiloh] diff --git a/010_broadcom-sta_wl.sh b/010_broadcom-sta_wl.sh old mode 100644 new mode 100755 index 54272b3..f511784 --- a/010_broadcom-sta_wl.sh +++ b/010_broadcom-sta_wl.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Provides the wl drive for broadcom BCM43xx wireless network cards see: # https://wiki.debian.org/wl apt-get install broadcom-sta-dkms diff --git a/010_eudev.sh b/010_eudev.sh old mode 100644 new mode 100755 index 8d1193f..b63db9c --- a/010_eudev.sh +++ b/010_eudev.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # to remove you need to specify the version of libudev1 to downgrade # apt-cache policy libudev1 # apt-get install udev libudev1=232-25+deb9u1 diff --git a/010_git-aliases.sh b/010_git-aliases.sh old mode 100644 new mode 100755 index c449a8d..936781d --- a/010_git-aliases.sh +++ b/010_git-aliases.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # git log --graph --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit #git config --global alias.lg "log --color --graph --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" diff --git a/010_hddtemp.sh b/010_hddtemp.sh old mode 100644 new mode 100755 index ed480f2..1895e30 --- a/010_hddtemp.sh +++ b/010_hddtemp.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y hddtemp # RUN_DAEMON="false" diff --git a/010_initramfs_resume.sh b/010_initramfs_resume.sh old mode 100644 new mode 100755 index 2b78d33..0ade00a --- a/010_initramfs_resume.sh +++ b/010_initramfs_resume.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # 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, diff --git a/010_nosh.sh b/010_nosh.sh old mode 100644 new mode 100755 index 813ba19..ef95583 --- a/010_nosh.sh +++ b/010_nosh.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Setting init in grub can use the pre-exiting init system # init=/lib/sysvinit/init # init=/lib/systemd/systemd diff --git a/010_openrc.sh b/010_openrc.sh old mode 100644 new mode 100755 index f084105..77f2d2b --- a/010_openrc.sh +++ b/010_openrc.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # openrc 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 diff --git a/010_python.sh b/010_python.sh old mode 100644 new mode 100755 index 0449759..48f6dd7 --- a/010_python.sh +++ b/010_python.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y python-dev python3-dev apt-get install -y python3-requests apt-get install -y python3-autopep8 diff --git a/010_saltstack.sh b/010_saltstack.sh old mode 100644 new mode 100755 index 9c2ff97..e5a2d4b --- a/010_saltstack.sh +++ b/010_saltstack.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Install salt # ascii/stretch version 2016.11.2+ds-1 # ceres version 2017.7.1+ds-1 diff --git a/010_sysctl.sh b/010_sysctl.sh old mode 100644 new mode 100755 index 0706067..c7fdfb3 --- a/010_sysctl.sh +++ b/010_sysctl.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Considerations for zfs # http://warpmech.com/?news=zfs-tuning-arc # https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/ diff --git a/010_vdev.sh b/010_vdev.sh old mode 100644 new mode 100755 index 8b1a940..7d137ce --- a/010_vdev.sh +++ b/010_vdev.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # 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 diff --git a/010_zfs.sh b/010_zfs.sh old mode 100644 new mode 100755 index 61c1bc5..27d02b3 --- a/010_zfs.sh +++ b/010_zfs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # All the zfs packages in debian stretch apt-get install -y dkms busybox-static apt-get install -y initramfs-tools dh-autoreconf diff --git a/010_zram.sh b/010_zram.sh old mode 100644 new mode 100755 index 5072bab..4740a86 --- a/010_zram.sh +++ b/010_zram.sh @@ -1,5 +1,26 @@ -#!/bin/sh +#!/usr/bin/env bash # https://www.kernel.org/doc/Documentation/blockdev/zram.txt + +apt-get install -y insserv +apt-get install -y zram-tools # Provides /etc/default/zramswap + +CORES=1 # By default, zramswap-start will use all available cores. +PERCENTAGE=10 # Specifies percentage of available RAM that should be used for zram +ALLOCATION=256 # static amount of RAM that should be used, in MiB +PRIORITY=100 # Specifies the priority for the swap devices, see swapon(2) + +#sed -i '/^#CORES=.*/ s/.*/&\nCORES=\"\"/' /etc/default/zramswap +sed -i '/^#PERCENTAGE=.*/ s/.*/&\nPERCENTAGE=\"\"/' /etc/default/zramswap +sed -i '/^#ALLOCATION=.*/ s/.*/&\nALLOCATION=\"\"/' /etc/default/zramswap +sed -i '/^#PRIORITY=.*/ s/.*/&\nPRIORITY=\"\"/' /etc/default/zramswap + +#sed -i 's,^\(CORES=\).*,\1'\"${CORES}\"',' /etc/default/zramswap +sed -i 's,^\(PERCENTAGE=\).*,\1'\"${PERCENTAGE}\"',' /etc/default/zramswap +sed -i 's,^\(ALLOCATION=\).*,\1'\"${ALLOCATION}\"',' /etc/default/zramswap +sed -i 's,^\(PRIORITY=\).*,\1'\"${PRIORITY}\"',' /etc/default/zramswap + +# https://wiki.debian.org/ZRam + cat > /etc/init.d/zram <<'EOF' #!/bin/sh ### BEGIN INIT INFO diff --git a/020_amprolla.sh b/020_amprolla.sh old mode 100644 new mode 100755 index 9d7f3f2..07d75a1 --- a/020_amprolla.sh +++ b/020_amprolla.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # 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 diff --git a/020_arduino.sh b/020_arduino.sh old mode 100644 new mode 100755 index fd7bd1a..534fbe3 --- a/020_arduino.sh +++ b/020_arduino.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ARDUINO_VERSION=1.8.5 #ARDUINO_VERSION=nightly #ARDUINO_HOME=~/ diff --git a/020_audacity.sh b/020_audacity.sh old mode 100644 new mode 100755 index 6294dd7..4af2255 --- a/020_audacity.sh +++ b/020_audacity.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash apt-get install audacity diff --git a/020_auditd.sh b/020_auditd.sh old mode 100644 new mode 100755 index 53a3df5..92a910d --- a/020_auditd.sh +++ b/020_auditd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # To enable audit/rules.d sed -i 's,^\(USE_AUGENRULES=\).*,\1'\"yes\"',' /etc/default/auditd diff --git a/020_blender.sh b/020_blender.sh old mode 100644 new mode 100755 index 5aed26b..bc8db4e --- a/020_blender.sh +++ b/020_blender.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # ascii version 2.78.a+dfsq0-4 sudo apt-get -y install blender diff --git a/020_bluez-alsa.sh b/020_bluez-alsa.sh old mode 100644 new mode 100755 index 07f6759..0973fc5 --- a/020_bluez-alsa.sh +++ b/020_bluez-alsa.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash set -x sudo apt-get install \ dh-autoreconf \ diff --git a/020_bootchart.sh b/020_bootchart.sh old mode 100644 new mode 100755 index e84b844..fd12d87 --- a/020_bootchart.sh +++ b/020_bootchart.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y bootchart2 pybootchartgui sed -i 's|^GRUB_CMDLINE_LINUX="\(.*\)"|GRUB_CMDLINE_LINUX="\1 initcall_debug printk.time=y init=/sbin/bootchartd"|' /etc/default/grub diff --git a/020_brave_browser-beta.sh b/020_brave_browser-beta.sh old mode 100644 new mode 100755 index 421b0d9..67e2293 --- a/020_brave_browser-beta.sh +++ b/020_brave_browser-beta.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash curl -s https://brave-browser-apt-beta.s3.brave.com/brave-core-nightly.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-beta.gpg add - #source /etc/os-release diff --git a/020_brave_browser-dev.sh b/020_brave_browser-dev.sh old mode 100644 new mode 100755 index 07e9148..e58b699 --- a/020_brave_browser-dev.sh +++ b/020_brave_browser-dev.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash curl -s https://brave-browser-apt-dev.s3.brave.com/brave-core-nightly.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-dev.gpg add - #source /etc/os-release diff --git a/020_brave_browser-nightly.sh b/020_brave_browser-nightly.sh old mode 100644 new mode 100755 index 2f4af5a..8313f7b --- a/020_brave_browser-nightly.sh +++ b/020_brave_browser-nightly.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash curl -s https://brave-browser-apt-nightly.s3.brave.com/brave-core-nightly.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-nightly.gpg add - #source /etc/os-release diff --git a/020_brave_browser.sh b/020_brave_browser.sh old mode 100644 new mode 100755 index cee32fd..da681e8 --- a/020_brave_browser.sh +++ b/020_brave_browser.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash RELEASE=bionic echo ${RELEASE} curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - diff --git a/020_bunsenlabs.sh b/020_bunsenlabs.sh old mode 100644 new mode 100755 index d01a07c..f8bc5a8 --- a/020_bunsenlabs.sh +++ b/020_bunsenlabs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # A debian based collection of openbox/tint2/conky themes RELEASE=hydrogen diff --git a/020_chrome-browser.sh b/020_chrome-browser.sh old mode 100644 new mode 100755 index 3c87f8e..b0e3f52 --- a/020_chrome-browser.sh +++ b/020_chrome-browser.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash wget -c --directory-prefix=/var/tmp https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dpkg -i /var/tmp/google-chrome-stable_current_amd64.deb apt-get -f install diff --git a/020_conky.sh b/020_conky.sh old mode 100644 new mode 100755 index a21213c..7de7d28 --- a/020_conky.sh +++ b/020_conky.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install conky conky-all curl jq ttf-ubuntu-font-family HOME=/home/default diff --git a/020_console.sh b/020_console.sh old mode 100644 new mode 100755 index 5b50599..d9f730d --- a/020_console.sh +++ b/020_console.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # dpkg-reconfigure console-setup # Original settings diff --git a/020_deprecated-sysv-utils.sh b/020_deprecated-sysv-utils.sh old mode 100644 new mode 100755 index cc351f0..3d0f4f5 --- a/020_deprecated-sysv-utils.sh +++ b/020_deprecated-sysv-utils.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash apt-get install -y sysv-rc-conf apt-get install -y chkconfig diff --git a/020_devuan_arm-sdk.sh b/020_devuan_arm-sdk.sh old mode 100644 new mode 100755 index 65dbc17..3cc0b67 --- a/020_devuan_arm-sdk.sh +++ b/020_devuan_arm-sdk.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash cd /space/code_repositories/ mkdir devuan_arm-sdk && cd devuan_arm-sdk git clone https://github.com/parazyd/arm-sdk diff --git a/020_djmount.sh b/020_djmount.sh old mode 100644 new mode 100755 index 43ba53b..32453ea --- a/020_djmount.sh +++ b/020_djmount.sh @@ -1,4 +1,5 @@ -apt-get install djmount +#!/usr/bin/env bash +apt-get install -y djmount DJMOUNT_DIR=~/dlna mkdir -p ${DJMOUNT_DIR} @@ -32,6 +33,7 @@ Hidden=false EOF #chmod +x /usr/share/applications/djmount.desktop +mkdir -p ~/.local/share/applications bash -c "cat > ~/.local/share/applications/djmount.desktop" < /etc/sysctl.d/10-dmesg.conf diff --git a/020_docker-compose.sh b/020_docker-compose.sh old mode 100644 new mode 100755 index 0b24427..eb4cb14 --- a/020_docker-compose.sh +++ b/020_docker-compose.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -apt-get install docker-compose +#!/usr/bin/env bash +apt-get install -y docker-compose #dpkg -i /var/tmp/docker-compose/docker-compose_1.11.0-1_amd64.deb # PROJECT=docker/compose diff --git a/020_docker.sh b/020_docker.sh old mode 100644 new mode 100755 index 1417964..c79ed78 --- a/020_docker.sh +++ b/020_docker.sh @@ -1,15 +1,17 @@ +#!/usr/bin/env bash +#!/usr/bin/env bash # Install docker set -x #echo '#bash -c "apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D"' > /etc/apt/sources.list.d/docker.list #echo "deb http://apt.dockerproject.org/repo debian-stretch main" >> /etc/apt/sources.list.d/docker.list -echo '#bash -c "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -"' > /etc/apt/sources.list-available/docker.list +echo '#bash -c "curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -"' > /etc/apt/sources.list-available/docker.list echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" >> /etc/apt/sources.list-available/docker.list -ln -s /etc/apt/sources.list-available/docker.list /etc/apt/sources.list.d/docker.list +ln -sf /etc/apt/sources.list-available/docker.list /etc/apt/sources.list.d/docker.list #bash -c "apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D" -bash -c "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -" +bash -c "curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -" apt-get update @@ -50,11 +52,73 @@ else echo "/etc/docker/daemon.json exits." fi -DOCKER_OPT[0]='.["dns"] = ["52.174.55.168","188.165.200.156"]' -DOCKER_OPT[1]='.["storage-driver"] = "zfs"' -#DOCKER_OPT[2]='.["storage-opts"] = ["zfs.fsname=rpool/docker","size=256"]' -DOCKER_OPT[2]='.["storage-opts"] = ["zfs.fsname=rpool/docker"]' -DOCKER_OPT[3]='.["insecure-registries"] = ["soleine.lan:5000"]' +# https://docs.docker.com/engine/security/https/ +TLS_HOME=/var/docker + +DOCKER_OPT[0]='.["storage-driver"] = "zfs"' +DOCKER_OPT[1]='.["storage-opts"] = ["zfs.fsname=rpool/docker"]' +DOCKER_OPT[2]='.["insecure-registries"] = ["soleine.lan:5000"]' +DOCKER_OPT[3]='.["live-restore"] = true' +DOCKER_OPT[4]='.["hosts"] = ["fd://","unix:///var/run/docker.sock","tcp://0.0.0.0:2376"]' +DOCKER_OPT[5]='.["dns"] = ["52.174.55.168","188.165.200.156"]' +#DOCKER_OPT[6]='.["dns-opts"] = []' +#DOCKER_OPT[7]='.["dns-search"] = []' +#DOCKER_OPT[8]='.["userland-proxy"] = false' +#DOCKER_OPT[9]='.["userns-remap"] = ""' +#DOCKER_OPT[10]='.["api-cors-header"] = ""' +#DOCKER_OPT[11]='.["authorization-plugins" = []' +#DOCKER_OPT[12]='.["bip"] = ""' +#DOCKER_OPT[13]='.["bridge"] = ""' +#DOCKER_OPT[14]='.["cgroup-parent"] = ""' +#DOCKER_OPT[15]='.["cluster-store"] = ""' +#DOCKER_OPT[16]='.["cluster-store-opts"] = {}' +#DOCKER_OPT[17]='.["cluster-advertise"] = ""' +#DOCKER_OPT[18]='.["debug"] = true' +#DOCKER_OPT[19]='.["default-gateway"] = ""' +#DOCKER_OPT[20]='.["default-gateway-v6"] = ""' +#DOCKER_OPT[21]='.["default-runtime"] = "runc"' +#DOCKER_OPT[22]='.["disable-legacy-registry"] = false' +#DOCKER_OPT[23]='.["exec-opts"] = []' +#DOCKER_OPT[24]='.["exec-root"] = ""' +#DOCKER_OPT[25]='.["fixed-cidr"] = ""' +#DOCKER_OPT[26]='.["fixed-cidr-v6"] = ""' +#DOCKER_OPT[27]='.["graph"] = ""' +#DOCKER_OPT[28]='.["group"] = ""' +#DOCKER_OPT[29]='.["hosts"] = ["tcp://192.168.59.3:2376"]' +#DOCKER_OPT[30]='.["icc"] = true' +#DOCKER_OPT[31]='.["ip"] = "0.0.0.0"' +#DOCKER_OPT[32]='.["iptables"] = true' +#DOCKER_OPT[33]='.["ipv6"] = false' +#DOCKER_OPT[34]='.["ip-forward"] = false' +#DOCKER_OPT[35]='.["ip-masq"] = false' +#DOCKER_OPT[36]='.["labels"] = []' +#DOCKER_OPT[37]='.["log-driver"] = ""' +#DOCKER_OPT[38]='.["log-level"] = ""' +#DOCKER_OPT[39]='.["log-opts"] = {}' +#DOCKER_OPT[40]='.["max-concurrent-downloads"] = 3' +#DOCKER_OPT[41]='.["max-concurrent-uploads"] = 5' +#DOCKER_OPT[42]='.["mtu"] = 0' +#DOCKER_OPT[43]='.["oom-score-adjust"] = -500' +#DOCKER_OPT[44]='.["pidfile"] = ""' +#DOCKER_OPT[45]='.["raw-logs"] = false' +#DOCKER_OPT[46]='.["registry-mirrors"] = []' +#DOCKER_OPT[47]='.["runtimes"] = {}' +#DOCKER_OPT[48]='.["selinux-enabled"] = false' +#DOCKER_OPT[49]='.["swarm-default-advertise-addr"] = ""' +#DOCKER_OPT[50]='.["debug"] = true' +#DOCKER_OPT[51]='.["tls"] = true' +#DOCKER_OPT[52]='.["tlscacert"] = "/etc/docker/tls/ca.pem"' +#DOCKER_OPT[53]='.["tlscert"] = "/etc/docker/tls/server.pem"' +#DOCKER_OPT[54]='.["tlskey"] = "/etc/docker/tls/serverkey.pem"' +#DOCKER_OPT[55]='.["tlsverify"] = true' +#DOCKER_OPT[56]='.["shutdown-timeout"] = 15' + +mkdir -p ${TLS_HOME} +## Change the subj line to reflect you details for key generation and uncomment above to turn tls on. +#openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 \ +# -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" \ +# -keyout ${TLS_HOME}/serverkey.pem \ +# -out ${TLS_HOME}/server.pem for ((i = 0; i < ${#DOCKER_OPT[@]}; ++i)); do @@ -107,9 +171,9 @@ done # mv -b /tmp/daemon.json.new /etc/docker/daemon.json #done -groupadd docker +#groupadd docker #usermod -aG docker $USER -gpasswd -a "$USER" docker -newgrp docker +#gpasswd -a "$USER_NAME" docker +#newgrp docker -/etc/init.d/docker restart +#/etc/init.d/docker restart diff --git a/020_drupal-compose.sh b/020_drupal-compose.sh old mode 100644 new mode 100755 index fe4eb3f..997bc49 --- a/020_drupal-compose.sh +++ b/020_drupal-compose.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ php composer-setup.php && \ mv composer.phar /usr/local/bin/composer && \ diff --git a/020_drush.phar.sh b/020_drush.phar.sh old mode 100644 new mode 100755 index 005e87e..afb2e83 --- a/020_drush.phar.sh +++ b/020_drush.phar.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash set +x PROJECT=drush-ops/drush-launcher RELEASE=$(curl "https://api.github.com/repos/${PROJECT}/releases?per_page=5" | jq -r '.[0] | .tag_name') diff --git a/020_epson-driver.sh b/020_epson-driver.sh old mode 100644 new mode 100755 index 5692a95..a3d97d7 --- a/020_epson-driver.sh +++ b/020_epson-driver.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # https://www.openprinting.org/driver/epson-201106w/ DRIVER_VERSION=1.0.1-1lsb3.2 diff --git a/020_etcher.sh b/020_etcher.sh old mode 100644 new mode 100755 index 40a6bc9..7e1a353 --- a/020_etcher.sh +++ b/020_etcher.sh @@ -1,9 +1,15 @@ +#!/usr/bin/env bash # https://github.com/balena-io/etcher -echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list-available/etcher.list -sudo ln -s /etc/apt/sources.list-available/etcher.list /etc/apt/sources.list.d/etcher.list +AVAILABLE=/etc/apt/sources.list-available +ACTIVE=/etc/apt/sources.list.d + +echo "deb https://deb.etcher.io stable etcher" | sudo tee ${AVAILABLE}/etcher.list +sudo ln -s ${AVAILABLE}/etcher.list ${ACTIVE}/etcher.list sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61 sudo apt-get update sudo apt-get install balena-etcher-electron + +apt-get clean diff --git a/020_etckeeper.sh b/020_etckeeper.sh old mode 100644 new mode 100755 index d6d7fd9..4c25aa3 --- a/020_etckeeper.sh +++ b/020_etckeeper.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y etckeeper git openssh-client # use the GitLab API to create a project diff --git a/020_firmware.sh b/020_firmware.sh old mode 100644 new mode 100755 index 5bd7141..3381d0d --- a/020_firmware.sh +++ b/020_firmware.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install linux-firmware apt-get install firmware-linux apt-get install firmware-linux-free diff --git a/020_fish.sh b/020_fish.sh old mode 100644 new mode 100755 index e8b19d4..5cc1aa0 --- a/020_fish.sh +++ b/020_fish.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Install fish apt-get install -y fish mkdir -p ~/.config/fish diff --git a/020_fmui.sh b/020_fmui.sh old mode 100644 new mode 100755 index 174c0cf..c7a17cb --- a/020_fmui.sh +++ b/020_fmui.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash cd /var/tmp apt-get install -y toilet fzf mpc vis ffmpeg diff --git a/020_fonts.sh b/020_fonts.sh old mode 100644 new mode 100755 index 014ceb7..589d7eb --- a/020_fonts.sh +++ b/020_fonts.sh @@ -1,6 +1,8 @@ +#!/usr/bin/env bash #!/bin/bash set -e set -x + # A collection of fonts to install to support nerdfont/powerline patched fonts that are missing. #http://nerdfonts.com/#downloads @@ -9,30 +11,41 @@ set -x RELEASE=$(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep tarball_url | cut -d '"' -f 4 | awk -F "/" {'print $8'}) FONT_NAMES=( \ # 3270 \ + # Agave \ # AnonymousPro \ + # Arimo \ # AurulentSansMono \ + # BigBlueTerminal \ # BitstreamVeraSansMono \ + # CascadiaCode \ # CodeNewRoman \ + # Cousine \ + # DaddyTimeMono \ DejaVuSansMono \ # DroidSansMono \ # FantasqueSansMono \ - # FiraCode \ - # FiraMono \ + FiraCode \ + FiraMono \ + # Go-Mono \ # Gohu \ # Hack \ # Hasklig \ # HeavyData \ # Hermit \ + # IBMPlexMono \ # Inconsolata \ # InconsolataGo \ # Iosevka \ + # JetBrainsMono \ # Lekton \ # LiberationMono \ Meslo \ # Monofur \ # Monoid \ # Mononoki \ - # MPlus \ + # Noto \ + # OpenDyslexic \ + # Overpass \ # ProFont \ # ProggyClean \ # RobotoMono \ @@ -40,6 +53,7 @@ FONT_NAMES=( \ # SourceCodePro \ # SpaceMono \ Terminus \ + # Tinos \ # Ubuntu \ # UbuntuMono \ ) diff --git a/020_fossamail.sh b/020_fossamail.sh old mode 100644 new mode 100755 index 17043d1..addd3c8 --- a/020_fossamail.sh +++ b/020_fossamail.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Fossamail (thunderbird v24/25b era) # Fosshub gives expiring links that makes wget difficult. # wget -c --directory-prefix /var/tmp http://www.fossamail.org/ diff --git a/020_free42.sh b/020_free42.sh old mode 100644 new mode 100755 index 2ee4d01..de1532f --- a/020_free42.sh +++ b/020_free42.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # build from unstable source - below #apt-get -y install free42-nologo mkdir -p ~/.free42/ diff --git a/020_freecad.sh b/020_freecad.sh old mode 100644 new mode 100755 index d371a0f..ca133a8 --- a/020_freecad.sh +++ b/020_freecad.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # https://github.com/FreeCAD/FreeCAD/releases/ # debian is still on 0.16 but 0.17 is needed for current workbenches diff --git a/020_ghack_userjs.sh b/020_ghack_userjs.sh old mode 100644 new mode 100755 index db6015d..df9d7bc --- a/020_ghack_userjs.sh +++ b/020_ghack_userjs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # The script needs to be run in each firefox profile directory. cd /var/tmp wget -c https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/updater.sh diff --git a/020_git-cola.sh b/020_git-cola.sh old mode 100644 new mode 100755 index 18c841b..8a69eda --- a/020_git-cola.sh +++ b/020_git-cola.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash apt-get -y install git-cola apt-get -y install meld diff --git a/020_git-lfs.sh b/020_git-lfs.sh old mode 100644 new mode 100755 index 9be538f..e2bc864 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +#!/usr/bin/env bash set -x # Using in combination with bfg to remove large binary files from a git repo and replace them with a pointer to a uri/url # debianized repo diff --git a/020_git-mergetool.sh b/020_git-mergetool.sh old mode 100644 new mode 100755 index 6ff44f6..8a15f7c --- a/020_git-mergetool.sh +++ b/020_git-mergetool.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash BIN_DIR=/usr/local/bin #BIN_DIR=~/bin diff --git a/020_grc.sh b/020_grc.sh old mode 100644 new mode 100755 index 5febfdb..25509f6 --- a/020_grc.sh +++ b/020_grc.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install grc ALIAS_HOME=~/.zsh_aliases.d/ ALIAS_FILE=${ALIAS_HOME}/003-grc.sh diff --git a/020_hexchat.sh b/020_hexchat.sh old mode 100644 new mode 100755 index c0ace69..74b54ec --- a/020_hexchat.sh +++ b/020_hexchat.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install hexchat mkdir -p ~/.config/hexchat cat > ~/.config/hexchat/chanopt.conf <<'EOF' diff --git a/020_iridiumbrowser.sh b/020_iridiumbrowser.sh old mode 100644 new mode 100755 index 56ff6bd..869fed7 --- a/020_iridiumbrowser.sh +++ b/020_iridiumbrowser.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash wget -qO - https://downloads.iridiumbrowser.de/ubuntu/iridium-release-sign-01.pub|apt-key add - cat < /etc/apt/sources.list-available/jitsi-stable.list << 'EOF' # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | apt-key add - deb http://download.jitsi.org stable/ diff --git a/020_keepass.sh b/020_keepass.sh old mode 100644 new mode 100755 index f0cab26..8bb47f1 --- a/020_keepass.sh +++ b/020_keepass.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash set +x PROJECT=magkopian/keepassxc-debian RELEASE=$(curl "https://api.github.com/repos/${PROJECT}/releases?per_page=5" | jq -r '.[0] | .tag_name') diff --git a/020_kodi_nightly_ppa.sh b/020_kodi_nightly_ppa.sh old mode 100644 new mode 100755 index e5c7a1f..28ae691 --- a/020_kodi_nightly_ppa.sh +++ b/020_kodi_nightly_ppa.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # sudo apt-get install kodi # 18.04 bionic buster diff --git a/020_kodi_ppa.sh b/020_kodi_ppa.sh old mode 100644 new mode 100755 index 138dc6b..9d99053 --- a/020_kodi_ppa.sh +++ b/020_kodi_ppa.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # sudo apt-get install kodi # 18.04 bionic buster diff --git a/020_kxstudio.sh b/020_kxstudio.sh old mode 100644 new mode 100755 index 8e06cb2..d9eb6a7 --- a/020_kxstudio.sh +++ b/020_kxstudio.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Debian / Ubuntu # All Debian and Ubuntu users can enable our repositories by installing this deb file: kxstudio-repos.deb. diff --git a/020_lsd.sh b/020_lsd.sh old mode 100644 new mode 100755 index 8bf0472..ccf8c16 --- a/020_lsd.sh +++ b/020_lsd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash PREFIX=/tmp NAME=lsd PROJECT=Peltoche/lsd diff --git a/020_lxc.sh b/020_lxc.sh old mode 100644 new mode 100755 index c1a86e8..cb7f864 --- a/020_lxc.sh +++ b/020_lxc.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # NB. cgmanager for nested unprivileged containers has been deprecated (dbus usage was a bad idea) # in favor of lxcfs on older kernels or the kernels CGroup Namespace on newer, expect lxcfs to go # the same way as cgmanager, just use newer kernels. diff --git a/020_lxd.sh b/020_lxd.sh old mode 100644 new mode 100755 index 6c913d6..2322371 --- a/020_lxd.sh +++ b/020_lxd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash groupadd --system lxd adduser --system lxd lxd diff --git a/020_lxdm-xfce4.sh b/020_lxdm-xfce4.sh old mode 100644 new mode 100755 index f9e8ec8..f9a3dcb --- a/020_lxdm-xfce4.sh +++ b/020_lxdm-xfce4.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y lxdm && apt-get -y remove lxlock xscreensaver xscreensaver-data sed -i '/^# session=.*/ s/.*/&\nsession=\/usr\/bin\/startxfce4/' /etc/lxdm/lxdm.conf diff --git a/020_meld.sh b/020_meld.sh old mode 100644 new mode 100755 index 2c8eca8..aa52845 --- a/020_meld.sh +++ b/020_meld.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y meld dbus-launch --exit-with-session gsettings set org.gnome.meld style-scheme 'meld-dark' diff --git a/020_meshroom.sh b/020_meshroom.sh old mode 100644 new mode 100755 index 40e99b4..a9dc255 --- a/020_meshroom.sh +++ b/020_meshroom.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash PREFIX=/tmp NAME=alicevision PROJECT=alicevision/meshroom diff --git a/020_mps-youtube.sh b/020_mps-youtube.sh old mode 100644 new mode 100755 index 80c2b4a..fb7b645 --- a/020_mps-youtube.sh +++ b/020_mps-youtube.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install mps-youtube youtube-dl python3-pafy python3-pyperclip ffmpeg avconv mpv # Change transcoding settings here: diff --git a/020_nanorc.sh b/020_nanorc.sh old mode 100644 new mode 100755 index 60e175c..8d0d709 --- a/020_nanorc.sh +++ b/020_nanorc.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y nano #apt-get install -y checkinstall diff --git a/020_neofetch_motd.sh b/020_neofetch_motd.sh old mode 100644 new mode 100755 index 91431f5..77ea1f0 --- a/020_neofetch_motd.sh +++ b/020_neofetch_motd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #!/bin/bash apt-get install -y neofetch diff --git a/020_neovim.sh b/020_neovim.sh old mode 100644 new mode 100755 index 0ffaa4e..8294725 --- a/020_neovim.sh +++ b/020_neovim.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Install Neovim apt-get install -y software-properties-common apt-get install -y neovim diff --git a/020_nethogs.sh b/020_nethogs.sh old mode 100644 new mode 100755 index 4a734a4..dbc89a6 --- a/020_nethogs.sh +++ b/020_nethogs.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash apt-get install nethogs setcap "cap_net_admin,cap_net_raw+pe" /usr/sbin/nethogs diff --git a/020_nodejs.sh b/020_nodejs.sh old mode 100644 new mode 100755 index 6739d5f..b5bb30b --- a/020_nodejs.sh +++ b/020_nodejs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # curl -sL https://deb.nodesource.com/setup_10.x | bash - wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - diff --git a/020_nvidia_cuda.sh b/020_nvidia_cuda.sh old mode 100644 new mode 100755 index 5953862..e08a988 --- a/020_nvidia_cuda.sh +++ b/020_nvidia_cuda.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # http://developer.download.nvidia.com/compute/DevZone/docs/html/C/doc/CUDA_C_Getting_Started_Linux.pdf https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-metas diff --git a/020_obsproject.sh b/020_obsproject.sh old mode 100644 new mode 100755 index 19ffbe2..ed3290f --- a/020_obsproject.sh +++ b/020_obsproject.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash sudo apt-get install obs-studio ffmpeg diff --git a/020_onivim.sh b/020_onivim.sh old mode 100644 new mode 100755 index 0bc7e15..ce99f07 --- a/020_onivim.sh +++ b/020_onivim.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install jq set +x diff --git a/020_onivim2.sh b/020_onivim2.sh old mode 100644 new mode 100755 index bcf6703..a4c6dae --- a/020_onivim2.sh +++ b/020_onivim2.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install jq set +x diff --git a/020_palemoon.sh b/020_palemoon.sh old mode 100644 new mode 100755 index 73168d7..1a42aef --- a/020_palemoon.sh +++ b/020_palemoon.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Palemoon # Needed to return native unix behavior # browser.urlbar.autoFill false diff --git a/020_pbuilder.sh b/020_pbuilder.sh old mode 100644 new mode 100755 index 277f621..c17a218 --- a/020_pbuilder.sh +++ b/020_pbuilder.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y cowbuilder dh-golang ccache DIST=ascii diff --git a/020_photogrametry.sh b/020_photogrametry.sh old mode 100644 new mode 100755 index 21447bd..71498be --- a/020_photogrametry.sh +++ b/020_photogrametry.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## VisualSFM - A Visual Structure from Motion System # http://ccwu.me/vsfm/ diff --git a/020_pidgin.sh b/020_pidgin.sh old mode 100644 new mode 100755 index 3bb9516..4d55086 --- a/020_pidgin.sh +++ b/020_pidgin.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash apt-get install -y pidgin pidgin-otr diff --git a/020_platformio-core.sh b/020_platformio-core.sh old mode 100644 new mode 100755 index 1eee345..f47201f --- a/020_platformio-core.sh +++ b/020_platformio-core.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # http://docs.platformio.org/en/latest/faq.html#faq-install-shell-commands sudo apt-get install python python-pip checkinstall diff --git a/020_podman.sh b/020_podman.sh old mode 100644 new mode 100755 index 693b718..f090f48 --- a/020_podman.sh +++ b/020_podman.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # https://github.com/containers/libpod/blob/master/docs/tutorials/podman_tutorial.md # Buildah and podman are redhats implementation of docker containers. diff --git a/020_powerline-bash.sh b/020_powerline-bash.sh old mode 100644 new mode 100755 index f58c234..bee56c9 --- a/020_powerline-bash.sh +++ b/020_powerline-bash.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install powerline bash -c "cat > /etc/profile.d/powerline.sh" < /etc/apt/sources.list-available/matrix-riot-im.list" sudo ln -s /etc/apt/sources.list-available/matrix-riot-im.list /etc/apt/sources.list.d/matrix-riot-im.list diff --git a/020_rox-filer.sh b/020_rox-filer.sh old mode 100644 new mode 100755 index 65ce790..f998e96 --- a/020_rox-filer.sh +++ b/020_rox-filer.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # ROX-Filer settings apt-get -y install rox-filer apt-get -y install xmlstarlet diff --git a/020_rox-system.sh b/020_rox-system.sh old mode 100644 new mode 100755 index a9456a4..8b04956 --- a/020_rox-system.sh +++ b/020_rox-system.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Run 025_mimetypes.sh first bash ./025_mimetypes.sh diff --git a/020_shellcheck.sh b/020_shellcheck.sh old mode 100644 new mode 100755 index 9344211..61d489f --- a/020_shellcheck.sh +++ b/020_shellcheck.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install shellcheck #apt-get install cabal-install diff --git a/020_smartmon.sh b/020_smartmon.sh old mode 100644 new mode 100755 index 75a6520..db187c1 --- a/020_smartmon.sh +++ b/020_smartmon.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #!/bin/bash set +x diff --git a/020_speechd-alsa.sh b/020_speechd-alsa.sh old mode 100644 new mode 100755 index 6475221..1da63bd --- a/020_speechd-alsa.sh +++ b/020_speechd-alsa.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Given a choice of selecting settings to match pulseaudio if installedor alsa when not, they just install it broken and recommend pulseaudio, nice. apt-get install speech-dispatcher speech-dispatcher-festival speech-dispatcher-espeak-ng python3-speechd espeek-ng espeak-ng-espeak diff --git a/020_surf.sh b/020_surf.sh old mode 100644 new mode 100755 index 04d9c3a..cbd94ca --- a/020_surf.sh +++ b/020_surf.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install surf2 SOURCE_DIR= diff --git a/020_swapspace.sh b/020_swapspace.sh old mode 100644 new mode 100755 index 49411c5..2cf44e2 --- a/020_swapspace.sh +++ b/020_swapspace.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install swapspace swappath="/var/lib/swapspace" diff --git a/020_themes.sh b/020_themes.sh old mode 100644 new mode 100755 index ea50757..04e21e8 --- a/020_themes.sh +++ b/020_themes.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y mate-themes apt-get install -y albatross-gtk-theme apt-get install -y blackbird-gtk-theme diff --git a/020_tilda.sh b/020_tilda.sh old mode 100644 new mode 100755 index 6f62feb..b4f170b --- a/020_tilda.sh +++ b/020_tilda.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y remove --purge guake kill -9 `ps aux | grep -v grep | grep guake | awk {'print $2'}` diff --git a/020_tmux.sh b/020_tmux.sh old mode 100644 new mode 100755 index 0aa5b53..af5cb4b --- a/020_tmux.sh +++ b/020_tmux.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get update apt-get install -y tmux apt-get install -y tmux-plugin-manager diff --git a/020_torbrowser.sh b/020_torbrowser.sh old mode 100644 new mode 100755 index 9d03b4e..f5ff0e1 --- a/020_torbrowser.sh +++ b/020_torbrowser.sh @@ -1,11 +1,12 @@ +#!/usr/bin/env bash #!/bin/bash -TBB_VERSION=7.5.6 +TBB_VERSION=9.0.4 WORKDIR=//var/tmp HOMEDIR=/opt cd ${WORKDIR} -wget -c https://www.torproject.org/dist/torbrowser/${TBB_VERSION}/tor-browser-linux64-${TBB_VERSION}_en-US.tar.xz +wget -c https://dist.torproject.org/torbrowser/${TBB_VERSION}/tor-browser-linux64-${TBB_VERSION}_en-US.tar.xz cd ${HOMEDIR} tar xf ${WORKDIR}/tor-browser-linux64-${TBB_VERSION}_en-US.tar.xz diff --git a/020_tvheadend.sh b/020_tvheadend.sh old mode 100644 new mode 100755 index 967b285..35a6556 --- a/020_tvheadend.sh +++ b/020_tvheadend.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash sudo wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add - #sudo sh -c 'echo "deb https://apt.tvheadend.org/unstable stretch main" | tee -a /etc/apt/sources.list-available/tvheadend.list' diff --git a/020_unetbootin.sh b/020_unetbootin.sh old mode 100644 new mode 100755 index 2035b0f..be73153 --- a/020_unetbootin.sh +++ b/020_unetbootin.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # https://unetbootin.github.io/linux_download.html #add-apt-repository ppa:gezakovacs/ppa diff --git a/020_vcsh.sh b/020_vcsh.sh old mode 100644 new mode 100755 index 800066e..41eb2ba --- a/020_vcsh.sh +++ b/020_vcsh.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## vcsh # When you clone a remote repository foo, vcsh does the following behind the scene: # 1. create a folder in .config/vcsh/repo.d/foo.git, and export it as GIT_DIR. diff --git a/020_vifm.sh b/020_vifm.sh old mode 100644 new mode 100755 index 430512a..9fdb275 --- a/020_vifm.sh +++ b/020_vifm.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash mkdir -p ~/.config/vifm/scripts # https://gitlab.com/dwt1/dotfiles/tree/master/.config/vifm/scripts diff --git a/020_vim-system.sh b/020_vim-system.sh old mode 100644 new mode 100755 index 2b7859f..d8ad31e --- a/020_vim-system.sh +++ b/020_vim-system.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Run 020_vim.sh to populate the dotfiles VIM_USER=default diff --git a/020_vim.sh b/020_vim.sh old mode 100644 new mode 100755 index 825087c..2dfadc0 --- a/020_vim.sh +++ b/020_vim.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash set +x apt-get install -y powerline #vim-airline vim-airline-themes diff --git a/020_waterfox.sh b/020_waterfox.sh old mode 100644 new mode 100755 index 704cb65..8651573 --- a/020_waterfox.sh +++ b/020_waterfox.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #!/bin/bash set -e mkdir -p /etc/apt//sources.list-available || exit diff --git a/020_wireguard.sh b/020_wireguard.sh old mode 100644 new mode 100755 index 48c1e06..f561340 --- a/020_wireguard.sh +++ b/020_wireguard.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get update apt-get install wireguard-dkms wireguard-tools diff --git a/020_xmonad.sh b/020_xmonad.sh old mode 100644 new mode 100755 index 1e230de..6eba900 --- a/020_xmonad.sh +++ b/020_xmonad.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install -y xmonad xmobar wget -c -P ~/.config/xmobar/ https://gitlab.com/dwt1/dotfiles/raw/master/.config/xmobar/xmobarrc0 diff --git a/020_xorg.sh b/020_xorg.sh old mode 100644 new mode 100755 index 437f92a..5550e01 --- a/020_xorg.sh +++ b/020_xorg.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash TRACKPAD=51-synapics-trackpad.conf TRACKPOINT=52-alps-trackpoint.conf diff --git a/020_youtube-dl.sh b/020_youtube-dl.sh old mode 100644 new mode 100755 index 60ccd7f..8c1e4f1 --- a/020_youtube-dl.sh +++ b/020_youtube-dl.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install youtube-dl diff --git a/020_zfs-auto-snapshot.sh b/020_zfs-auto-snapshot.sh old mode 100644 new mode 100755 index 839364d..9380dee --- a/020_zfs-auto-snapshot.sh +++ b/020_zfs-auto-snapshot.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## PREREQUISITES: ## 1. zfs-auto-snapshot or equivalent package installed locally and regular ## snapshots enabled (hourly, daily, etc.) diff --git a/020_zfs-sanoid.sh b/020_zfs-sanoid.sh old mode 100644 new mode 100755 index ea7f747..812063f --- a/020_zfs-sanoid.sh +++ b/020_zfs-sanoid.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install libconfig-inifiles-perl git cd /opt diff --git a/020_zfs-znapzend.sh b/020_zfs-znapzend.sh old mode 100644 new mode 100755 index e07c8b7..097a2d7 --- a/020_zfs-znapzend.sh +++ b/020_zfs-znapzend.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get install mbuffer ## Using checkinstall diff --git a/020_zfs-znapzend_checkinstall.sh b/020_zfs-znapzend_checkinstall.sh old mode 100644 new mode 100755 index 0108a6f..cdccb1e --- a/020_zfs-znapzend_checkinstall.sh +++ b/020_zfs-znapzend_checkinstall.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ZZ_VERSION=0.17.0 cd /var/tmp wget -c https://github.com/oetiker/znapzend/releases/download/v${ZZ_VERSION}/znapzend-${ZZ_VERSION}.tar.gz diff --git a/020_zsh-system.sh b/020_zsh-system.sh old mode 100644 new mode 100755 index a155de6..17df83b --- a/020_zsh-system.sh +++ b/020_zsh-system.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Run 020_zsh.sh to populate the files needed for /etc/skel # assuming default user ZSH_USER=default diff --git a/020_zsh.sh b/020_zsh.sh old mode 100644 new mode 100755 index 75082c0..fac9cf9 --- a/020_zsh.sh +++ b/020_zsh.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Completions for Debian 9.0 - may be included in zgen # #sudo bash -c "cat > /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list" << 'EOF' @@ -27,7 +28,7 @@ apt-get install -y git git clone http://github.com/tarjoilija/zgen # available with apt-get install zgen which installs to /usr/share/zgen #git clone http://github.com/unixorn/zsh-quickstart-kit # FIXME: needs to be packaged mkdir -p ~/.zgen/robbyrussell/ -git clone http://github.com/robbyrussell/ohmyzsh ~/.zgen/robbyrussell/ohmyzsh +git clone http://github.com/ohmyzsh/ohmyzsh ~/.zgen/robbyrussell/ohmyzsh #ln -sf ~/zsh-quickstart-kit/zsh/.zshrc ~/.zshrc #ln -sf ~/zsh-quickstart-kit/zsh/.zsh_functions ~/.zsh_functions diff --git a/020_zsh_aliases.d.sh b/020_zsh_aliases.d.sh old mode 100644 new mode 100755 index 352b33f..378baac --- a/020_zsh_aliases.d.sh +++ b/020_zsh_aliases.d.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash mkdir -p ~/.zsh_aliases.d mkdir -p /home/default/.zsh_aliases.d diff --git a/020_zsh_quickstart.sh b/020_zsh_quickstart.sh old mode 100644 new mode 100755 index d10db30..2e94a2f --- a/020_zsh_quickstart.sh +++ b/020_zsh_quickstart.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ## Completions for Debian 9.0 - may be included in zgen # #sudo bash -c "cat > /etc/apt/sources.list.d/shells:zsh-users:zsh-completions.list" << 'EOF' @@ -27,13 +28,13 @@ apt-get install -y git git clone http://github.com/tarjoilija/zgen # available with apt-get install zgen which installs to /usr/share/zgen git clone http://github.com/unixorn/zsh-quickstart-kit mkdir -p ~/.zgen/robbyrussell/ -git clone http://github.com/robbyrussell/ohmyzsh ~/.zgen/robbyrussell/ohmyzsh +git clone http://github.com/ohmyzsh/ohmyzsh ~/.zgen/robbyrussell/ohmyzsh -ln -sf ~/zsh-quickstart-kit/zsh/.zshrc ~/.zshrc -ln -sf ~/zsh-quickstart-kit/zsh/.zsh_functions ~/.zsh_functions -ln -sf ~/zsh-quickstart-kit/zsh/.zsh_aliases ~/.zsh_aliases -ln -sf ~/zsh-quickstart-kit/zsh/.zgen-setup ~/.zgen-setup -ln -sf ~/zsh-quickstart-kit/zsh/.zsh_completions ~/.zsh-completions +ln -rsf ~/zsh-quickstart-kit/zsh/.zshrc ~/.zshrc +ln -rsf ~/zsh-quickstart-kit/zsh/.zsh_functions ~/.zsh_functions +ln -rsf ~/zsh-quickstart-kit/zsh/.zsh_aliases ~/.zsh_aliases +ln -rsf ~/zsh-quickstart-kit/zsh/.zgen-setup ~/.zgen-setup +ln -rsf ~/zsh-quickstart-kit/zsh/.zsh_completions ~/.zsh_completions mkdir -p ~/.zshrc.d echo "setopt PROMPT_SUBST" >> ~/.zshrc diff --git a/025_festival-voices.sh b/025_festival-voices.sh old mode 100644 new mode 100755 index f713163..8a92cab --- a/025_festival-voices.sh +++ b/025_festival-voices.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash apt-get -y install --force-yes festvox-rablpc16k festival diff --git a/025_firefox-extensions.sh b/025_firefox-extensions.sh old mode 100644 new mode 100755 index 56317d5..fb6d45c --- a/025_firefox-extensions.sh +++ b/025_firefox-extensions.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash apt-get -y install mozilla-devscripts apt-get -y install xul-ext-webdeveloper apt-get -y install xul-ext-itsalltext diff --git a/025_mimetypes.sh b/025_mimetypes.sh old mode 100644 new mode 100755 index ad9ca34..7a122f8 --- a/025_mimetypes.sh +++ b/025_mimetypes.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # MIME types mkdir -p ~/.config/rox.sourceforge.net/MIME-types diff --git a/025_remove-fossamail.sh b/025_remove-fossamail.sh old mode 100644 new mode 100755 index cac32a8..977c580 --- a/025_remove-fossamail.sh +++ b/025_remove-fossamail.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash rm -rf /usr/share/applications/fossamail.desktop rm -rf /opt/FossaMail* diff --git a/025_thunderbird-extensions.sh b/025_thunderbird-extensions.sh old mode 100644 new mode 100755 index 2d4de1b..c18afa7 --- a/025_thunderbird-extensions.sh +++ b/025_thunderbird-extensions.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # thunderbird/icedove extensions #apt-get -y install xul-ext-tbdialout # https://doc.owncloud.org/server/5.0/user_manual/pim/sync_thunderbird.html diff --git a/025_xfce4-keyboard-shortcuts.sh b/025_xfce4-keyboard-shortcuts.sh old mode 100644 new mode 100755 index b3a76b9..dda9ba4 --- a/025_xfce4-keyboard-shortcuts.sh +++ b/025_xfce4-keyboard-shortcuts.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash # xfconf-query --channel xfce4-keyboard-shortcuts --property "/xfwm4/custom/space" --create --type string --set "python /home/user/bin/clipboard2speech.py" diff --git a/025_xfce4-settings.sh b/025_xfce4-settings.sh old mode 100644 new mode 100755 index 76759ff..c862d7f --- a/025_xfce4-settings.sh +++ b/025_xfce4-settings.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Changes to xfce4 settings #Window tiling diff --git a/025_xfce4-theme-fix.sh b/025_xfce4-theme-fix.sh old mode 100644 new mode 100755 index 8427d38..3bea859 --- a/025_xfce4-theme-fix.sh +++ b/025_xfce4-theme-fix.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Fix one pixel window grab # http://sevkeifert.blogspot.ca/2014/12/increase-window-border-size-in-xubuntu.html # https://github.com/shimmerproject/Numix/commit/31ae74ab28a1a9af16c00a394ab30161c86cd48d diff --git a/050_remove_avahi.sh b/050_remove_avahi.sh old mode 100644 new mode 100755 index 58479bb..325a1ea --- a/050_remove_avahi.sh +++ b/050_remove_avahi.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # removing any more of avahi need rebuilding of libpurple libgnomevfs libgnome2 bash -c "update-rc.d avahi-daemon disable" apt-get -y remove --purge cups-browsed avahi-autoipd diff --git a/050_remove_flash.sh b/050_remove_flash.sh old mode 100644 new mode 100755 index e878083..e2606e3 --- a/050_remove_flash.sh +++ b/050_remove_flash.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash apt-get -y remove --purge flashplugin-nonfree diff --git a/050_remove_gnome-keyring.sh b/050_remove_gnome-keyring.sh old mode 100644 new mode 100755 index 7fc47fa..a969c89 --- a/050_remove_gnome-keyring.sh +++ b/050_remove_gnome-keyring.sh @@ -1,2 +1,3 @@ +#!/usr/bin/env bash apt-get -y remove gnome-keyring apt-get -y remove libpam-gnome-keyring diff --git a/050_remove_gvfs.sh b/050_remove_gvfs.sh old mode 100644 new mode 100755 index d3165ba..cd762bc --- a/050_remove_gvfs.sh +++ b/050_remove_gvfs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Provides automounting of devices to random places when you'd rather just manually mount or not mount at all. apt-get -y remove --purge gvfs-daemons diff --git a/050_remove_policykit-1.sh b/050_remove_policykit-1.sh old mode 100644 new mode 100755 index 508c570..41f9ae0 --- a/050_remove_policykit-1.sh +++ b/050_remove_policykit-1.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # From the people who thought bash scripts in init.d were too complicated we get javascript snipits and xml based configuration files to set permissions, just say no. apt-get -y remove --purge policykit-1 diff --git a/050_remove_xscreensaver.sh b/050_remove_xscreensaver.sh old mode 100644 new mode 100755 index 6ed895f..0e63e41 --- a/050_remove_xscreensaver.sh +++ b/050_remove_xscreensaver.sh @@ -1 +1,2 @@ +#!/usr/bin/env bash apt-get -y remove --purge xscreensaver xscreensaver-data diff --git a/050_set-reboot_policykit-1.sh b/050_set-reboot_policykit-1.sh old mode 100644 new mode 100755 index b4be490..87bd30f --- a/050_set-reboot_policykit-1.sh +++ b/050_set-reboot_policykit-1.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash #/usr/share/polkit-1/ # #actions diff --git a/050_wicd.sh b/050_wicd.sh old mode 100644 new mode 100755 index 83c605f..ea537cb --- a/050_wicd.sh +++ b/050_wicd.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Remove network-manager if present. apt-get -y remove --purge network-manager* gir1.2-networkmanager-1.0 gir1.2-nmgtk-common libnm-* diff --git a/100_safe_autoremove.sh b/100_safe_autoremove.sh old mode 100644 new mode 100755 index 203a2d4..9f4da09 --- a/100_safe_autoremove.sh +++ b/100_safe_autoremove.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # A number of packages are due to be removed by apt, put them back on. bash -c 'apt-mark showauto | grep -v ^lib | xargs apt-get -y install' bash -c 'apt-mark showauto | grep libreoffice| xargs apt-get -y install' diff --git a/101_livecd-add-zfs.sh b/101_livecd-add-zfs.sh old mode 100644 new mode 100755 index 327250f..135a21b --- a/101_livecd-add-zfs.sh +++ b/101_livecd-add-zfs.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # add automate scripts #git clone http://git.devuan.org/cyteen/automate diff --git a/extract_chroot_image.sh b/extract_chroot_image.sh old mode 100644 new mode 100755 diff --git a/onivim2.sh b/onivim2.sh old mode 100644 new mode 100755 diff --git a/sources.list.sh b/sources.list.sh old mode 100644 new mode 100755 index cef3a50..636bfd2 --- a/sources.list.sh +++ b/sources.list.sh @@ -5,8 +5,8 @@ cat > /etc/apt/sources.list.d/devuan-security.list <