Files
setup/setup.sh
2025-12-03 10:41:03 +01:00

40 lines
1.1 KiB
Bash
Executable File

apt update && apt upgrade
sudo apt install -y tmux neovim mosh zoxide starship git
sudo apt update
sudo apt install ca-certificates curl build-essential -y
sudo install -m 0755 -d /etc/apt/keyrings
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt install nodejs -y
# Install Docker if user agrees
read -p "Do you want to set up Docker? (Y/n): " SETUP_DOCKER
if [[ "$SETUP_DOCKER" == "y" || "$SETUP_DOCKER" == "Y" || $SETUP_DOCKER == "" ]]; then
$PWD/bin/setup_docker.sh
fi
# Install UFW after asking for permission
read -p "Do you want to set up UFW (Uncomplicated Firewall)? (Y/n): " SETUP_UFW
if [[ "$SETUP_UFW" == "y" || "$SETUP_UFW" == "Y" || $SETUP_UFW == "" ]]; then
$PWD/bin/setup_ufw.sh
fi
$PWD/bin/setup_fast.sh
$PWD/bin/setup_env.sh
# Ask user if they want to start building Fast components now
read -p "Do you want to start building Fast components now? (Y/n): " START_BUILD
if [[ "$START_BUILD" == "y" || "$START_BUILD" == "Y" || $START_BUILD == "" ]]; then
$PWD/bin/start_build.sh
fi
sudo apt autoremove -y