You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4 KiB
Bash

# This install script is for a debian based distro
# Ideally a minimal install (No GUI, or tools installed)
# This install will install only tools for CLI use
# The idea is to have GUI, etc. seperated then called in one 'master' script
# Update and Upgrade the system first
apt update && apt upgrade -y
# Install essential tools required for other installs
apt install sudo build-essential ssh -y
# Make the user a sudoer (If passed to the script)
adduser nathan sudo
# System Utilities
apt install perl wget curl man -y
# Make the terminal usable*
apt install tmux -y
## Text Editors
apt install vim -y
## Git
apt install git -y
# Compression Utilities
apt install gzip zip tar bzip2 urar -y
# Install terminal system utilities
apt install htop -y
# Backups
apt install rsync rdiff-backup -y
HOME=/home/nathan/
# lf file manager
sudo -H -u nathan bash -c "mkdir $HOME/.local $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 -C $HOME/.local/bin"
# Vi mode terminal and local bin
echo "set -o vi\nexport PATH=\$HOME/.local/bin:\$PATH" >> .zshrc
echo "export PATH=\$HOME/.local/bin/*:\$PATH" >> .zshrc
# Add to path for this session
export PATH=\$HOME/.local/bin/:$PATH
export PATH=\$HOME/.local/bin/dmenu:$PATH
# Firewall
apt install ufw -y
systemctl --now enable ufw
ufw enable
ufw default deny incoming
ufw default allow incoming
ufw allow 22 # Allow SSH