|
|
|
@ -2,8 +2,17 @@
|
|
|
|
# It is assumed that it's a minimal install, with at least debian_base
|
|
|
|
# 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
|
|
|
|
# This will install additional utilities that make debain usable without a GUI
|
|
|
|
|
|
|
|
|
|
|
|
# Download and install debian_base?
|
|
|
|
if [ $# -eq 0 ] && [ -z "$1" ]
|
|
|
|
bash ~/adarDir/debian_base.sh
|
|
|
|
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
|
|
|
|
# Better text editing IDE-esk
|
|
|
|
apt install neovim -y
|
|
|
|
apt install neovim -y
|
|
|
|
@ -23,7 +32,7 @@ apt install network-manager -y
|
|
|
|
apt install blueman -y
|
|
|
|
apt install blueman -y
|
|
|
|
|
|
|
|
|
|
|
|
# Music Player (daemon, and utilities)
|
|
|
|
# Music Player (daemon, and utilities)
|
|
|
|
apt install mpd mpc mcmpcpp -y
|
|
|
|
apt install mpd mpc ncmpcpp -y
|
|
|
|
|
|
|
|
|
|
|
|
# RSS Reader
|
|
|
|
# RSS Reader
|
|
|
|
apt install newsboat -y
|
|
|
|
apt install newsboat -y
|
|
|
|
@ -38,20 +47,36 @@ apt install groff -y
|
|
|
|
apt install zsh -y
|
|
|
|
apt install zsh -y
|
|
|
|
|
|
|
|
|
|
|
|
# Change default shell to zsh
|
|
|
|
# Change default shell to zsh
|
|
|
|
chsh nathan -s /bin/zsh
|
|
|
|
chsh $1 -s /bin/zsh
|
|
|
|
|
|
|
|
|
|
|
|
# Oh my Zsh
|
|
|
|
# Oh my Zsh
|
|
|
|
sudo -H -u nathan bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
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)
|
|
|
|
# Download Utilities (Legallity, uncertain)
|
|
|
|
## Youtube-dl
|
|
|
|
## Youtube-dl
|
|
|
|
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/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
|
|
|
|
chmod a+rx /usr/local/bin/youtube-dl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
## Torrenting (Seperate script?)
|
|
|
|
## Torrenting (Seperate script?)
|
|
|
|
apt install transmission-daemon transmission-cli transmission-remote-cli -y
|
|
|
|
#apt install transmission-daemon transmission-cli transmission-remote-cli -y
|
|
|
|
#systemctl stop transmission-daemon.service
|
|
|
|
#systemctl stop transmission-daemon.service
|
|
|
|
#/lib/systemd/system/tranmission-daemon.service # Change debian-transmission to $USER
|
|
|
|
#/lib/systemd/system/tranmission-daemon.service # Change debian-transmission to $USER
|
|
|
|
# systemctl daemon-reload
|
|
|
|
# systemctl daemon-reload
|
|
|
|
|