diff --git a/scripts/install.sh b/scripts/install.sh index 5d0cd54..af73148 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -102,12 +102,12 @@ base_applications() { zip \ --no-install-recommends + $SUDO restic self-update echo "... DONE... cleaning up\n\n" $SUDO apt autoremove $SUDO apt autoclean $SUDO apt clean - restic self-update } @@ -199,8 +199,8 @@ install_workstation_apps() { DEBIAN_FRONTEND=noninteractive - apt update - apt install -y \ + $SUDO apt update + $SUDO apt install -y \ alsa-tools \ alsa-utils \ aspell \ @@ -295,35 +295,40 @@ install_i3() { DEBIAN_FRONTEND=noninteractive - apt update - apt install -y \ + $SUDO apt update + $SUDO apt install -y \ feh \ fswebcam \ i3 \ i3lock \ i3lock-fancy \ i3status \ + lightdm \ network-manager-gnome \ network-manager-vpnc \ network-manager-vpnc-gnome \ remmina \ - rxvt-unicode-256color \ + rxvt-unicode \ scrot \ shotwell \ - slim \ + suckless-tools \ vlc \ xdotool \ xorg \ --no-install-recommends - cat <<-EOF > /usr/share/dbus-1/services/org.freedesktop.Notifications.service - [D-BUS Service] - Name=org.freedesktop.Notifications - Exec=/usr/lib/notification-daemon/notification-daemon -EOF + # for f in (); do + # ln -s $f /home/$USER/$f + # done + +# $SUDO cat <<-EOF > /usr/share/dbus-1/services/org.freedesktop.Notifications.service +# [D-BUS Service] +# Name=org.freedesktop.Notifications +# Exec=/usr/lib/notification-daemon/notification-daemon +#EOF echo "... setting capslock to control" - sed -i "s/^XKBOPTIONS=.*/XKBOPTIONS=\"ctrl:nocaps\"/" /etc/default/keyboard + $SUDO sed -i "s/^XKBOPTIONS=.*/XKBOPTIONS=\"ctrl:nocaps\"/" /etc/default/keyboard } @@ -333,25 +338,25 @@ install_syncthing() { curl -s https://syncthing.net/release-key.txt | sudo apt-key add - # Add the "stable" channel to your APT sources: - echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list + cat "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list # pin the correct apt repo printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing # Update and install syncthing: - sudo apt-get update - sudo apt-get install syncthing + $SUDO apt-get update + $SUDO apt-get install syncthing echo "... DONE... cleaning up\n\n" - apt autoremove - apt autoclean - apt clean + $SUDO apt autoremove + $SUDO apt autoclean + $SUDO apt clean echo "enable and start the syncthing per-user service for ${USERNAME}" - cp ../etc/systemd/system/syncth* /etc/systemd/system/ + $SUDO cp ../etc/systemd/system/syncth* /etc/systemd/system/ user=${USERNAME} - sudo systemctl daemon-reload - sudo systemctl enable syncthing@${USERNAME} - sudo systemctl start syncthing@${USERNAME}.service + $SUDO systemctl daemon-reload + $SUDO systemctl enable syncthing@${USERNAME} + $SUDO systemctl start syncthing@${USERNAME}.service systemctl status syncthing@${USERNAME}.service } @@ -363,8 +368,8 @@ install_vscodium() { echo 'deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main' | sudo tee --append /etc/apt/sources.list.d/vscodium.list - apt update - apt install -y \ + $SUDO apt update + $SUDO apt install -y \ codium \ --no-install-recommends @@ -379,14 +384,15 @@ install_wine() { # https://wiki.winehq.org/Debian curl https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor > /etc/apt/trusted.gpg.d/winehq.gpg - echo 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main' | sudo tee --append /etc/apt/sources.list.d/wine.list + echo 'deb https://dl.winehq.org/wine-builds/debian/ bookworm main' | sudo tee /etc/apt/sources.list.d/wine.list - apt update - apt install \ + $SUDO sudo dpkg --add-architecture i386 + $SUDO apt update + $SUDO apt install \ winehq-staging \ - --no-install-recommends + --install-recommends - wine version + wine --version } @@ -398,7 +404,7 @@ install_docker() { echo "installing docker binary Version $VERS ..." # https://github.com/tianon/cgroupfs-mount/blob/master/cgroupfs-mount - apt install -y \ + $SUDO apt install -y \ apt-transport-https \ ca-certificates \ curl \ @@ -415,12 +421,12 @@ install_docker() { # deb [arch=amd64] https://download.docker.com/linux/debian buster nightly EOF - apt update - apt install -y \ + $SUDO apt update + $SUDO apt install -y \ docker-ce \ --no-install-recommends - addgroup ${USERNAME} docker + $SUDO addgroup ${USERNAME} docker docker version docker info @@ -454,7 +460,7 @@ install_compose() { install_virtualbox() { # https://wiki.debian.org/VirtualBox#Installation_of_non-free_edition - apt install -y \ + $SUDO apt install -y \ apt-transport-https \ ca-certificates \ curl \