Skip to content

Instantly share code, notes, and snippets.

@Lorenzobattistela
Last active April 28, 2024 12:27
Show Gist options
  • Save Lorenzobattistela/f8bb673eed201a156e51faf7aae5bef3 to your computer and use it in GitHub Desktop.
Save Lorenzobattistela/f8bb673eed201a156e51faf7aae5bef3 to your computer and use it in GitHub Desktop.
Shell script to install needed tools from scratch
#/bin/bash
echo "Hello! This is a fresh installation script for my ubuntu!"
if [ $(id -u) -ne 0 ]; then
echo Please run this script as root or using sudo!
exit
fi
echo "This script will install some default needed applications (from my POV) and ask if you want others."
printf "Core applications:\nNVIM\nBRAVE\nzsh\noh-my-zsh\nrust\nnode\n"
printf "Installing NeoVim\n########################################################"
sudo apt update && sudo apt upgrade
sudo add-apt-repository ppa:neovim-ppa/stable -y
sudo apt update
sudo apt install neovim
printf "NEOVIM installed!!!"
sleep 1
printf "Installing Brave"
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
printf "Installed Brave"
sleep 1
printf "installing zsh"
sudo apt install zsh
chsh -s $(which zsh)
echo "Default shell set to: $SHELL"
sleep 1
printf "#################################################\n"
printf "Installing Rust"
print "##################################################\n"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
printf "Rust installed"
sleep 1
printf "Installing NODE and NVM"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install 20
node -v
npm -v
printf "Node and NVM installed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment