added basic setup
This commit is contained in:
39
setup.sh
Executable file
39
setup.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user