## Things installed: bat micro cron tailscale fastfetch fish bashtop tree ncdu # if server webmin firewall port 10000/tcp # if docker host docker socket proxy sudo apt install bat micro cron fish bashtop tree ncdu curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list apt update apt install tailscale curl -O http://archive.aaronlangham.com/pkg/fastfetch-linux-amd64.deb apt install ./fastfetch-linux-amd64.deb sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin curl -o ~/docker-socket-proxy/docker-compose.yml http://archive.aaronlangham.com/conf/docker/socket-proxy/docker-compose.yml curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh sh setup-repos.sh apt-get install webmin --install-recommends ## Backups Home backups: curl -O http://archive.aaronlangham.com/scripts/backup-home.sh ## Micro # download curl -o ~/.config/micro/bindings.json http://archive.aaronlangham.com/conf/micro/bindings.json # manual ~/.config/micro/bindings.json "CtrlDelete": "DeleteWordRight" ## Fish # config # download curl -o ~/.config/fish/config.fish http://archive.aaronlangham.com/conf/fish/debian.txt # manual ~/.config/fish/config.fish #set fish_greeting "Welcome to the fish shell!" set fish_greeting "$(date)" #set fish_greeting "" set -gx EDITOR micro # Aliases alias mc='micro' alias bat='batcat' alias ls='ls --color=auto' alias grep='grep --color=auto' alias lls='ls -l' alias llsa='ls -lA' alias cp='cp --verbose' alias mv='mv --verbose' alias rm='rm --verbose' alias rsync='rsync --progress' alias ucp="cp --update" alias netstat='sudo netstat' alias ss='sudo ss' alias sss='sudo ss -tunlp4' alias ds='docker ps' alias tree='tree -ahlfvC' # Hibernate and restart aliases alias hibernate='systemctl suspend' alias restart='sudo shutdown -r now' # Prompt customization function fish_prompt set -l last_status $status set -l white (set_color -o white) set -l black (set_color -o black) set -l red (set_color -o red) set -l normal (set_color normal) echo -n $white"┌──("$black(whoami)$white"@"$red(hostname)$white")-["$normal(prompt_pwd --full-length-dirs=10)$white"]" echo -e "\n"$white"└─"$red"\$"$normal" " end # Ctrl + Delete function fish_user_key_bindings bind \e\[3\;5~ kill-word end # sudo !! function function sudo if test "$argv" = !! eval command sudo $history[1] else command sudo $argv end end # multi cd .. function multicd echo cd (string repeat -n (math (string length -- $argv[1]) - 1) ../) end abbr --add dotdot --regex '^\.\.+$' --function multicd # set as default command -v fish | sudo tee -a /etc/shells chsh -s $(which fish)