# This install script is for a debian based distro # It is assumed that it's a minimal install, with at least debian_base # This will install additional utilities that make debain usable without a GUI if [ $# -eq 0 ] && [ -z "$1" ] then echo "No username passed to desktop script" exit 1 fi # Install debian_base (adar) if [ -f "debian_base.sh"] then bash debian_base.sh fi # Better text editing IDE-esk apt install neovim -y sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' # Additional filesystem utilities ## For mounting samba/cif drives, and MTP (mobile phones) apt install cifs-utils jmtpfs -y ## Audio apt install alsa-utils alsa-oss pulseaudio -y # Networking apt install network-manager -y # Bluetooth apt install blueman -y # Music Player (daemon, and utilities) apt install mpd mpc ncmpcpp -y # RSS Reader apt install newsboat -y # Mail Client apt install neomutt -y # Groff apt install groff -y # Install another shell apt install zsh -y # Change default shell to zsh chsh $1 -s /bin/zsh # Oh my Zsh if [ ! -d "/home/$1/.oh-my-zsh" ] then sudo -H -u $1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended fi HOME=/home/$1 # lf file manager sudo -H -u nathan bash -c "mkdir -p $HOME/.local/bin" sudo -H -u nathan bash -c "curl -LO https://github.com/gokcehan/lf/releases/latest/download/lf-linux-amd64.tar.gz | tar -xf lf-linux-amd64.tar.gz -C $HOME/.local/bin" # Vi mode terminal and local bin echo "set -o vi\nexport PATH=\$HOME/.local/bin:\$PATH" >> /home/$1/.bashrc echo "export PATH=\$HOME/.local/bin/*:\$PATH" >> /home/$1/.bashrc # Add to path for this session export PATH=\$HOME/.local/bin/:$PATH export PATH=\$HOME/.local/bin/dmenu:$PATH # Download Utilities (Legallity, uncertain) ## Youtube-dl curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl chmod a+rx /usr/local/bin/youtube-dl exit 0 ## Torrenting (Seperate script?) #apt install transmission-daemon transmission-cli transmission-remote-cli -y #systemctl stop transmission-daemon.service #/lib/systemd/system/tranmission-daemon.service # Change debian-transmission to $USER # systemctl daemon-reload # start/restart service # /etc/transmission-daemon/settings.json # edit whitelist, blocklist, password # Setup the user for transmission-daemon # Xanmod Kernel (It makes desktops better, servers not so much) echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list && wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key add - apt update && apt install linux-xanmod -y