Last active
March 4, 2021 18:16
-
-
Save juuh42dias/81fd0c0588b86f01549768cd21793a7e to your computer and use it in GitHub Desktop.
Program install 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# PATH | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Store the base dir | |
BASEDIR=$( cd $(dirname $0); pwd) | |
# Get all dependencies | |
echo "" | |
echo "Update & Upgrade Server Ubuntu" | |
echo "" | |
sudo apt-get -y update && sudo apt-get -y upgrade | |
echo "" | |
echo "Clean Instalation Ubuntu" | |
echo "" | |
mkdir ~/install | |
cd ~/install | |
sudo apt-get install gcc -y | |
sudo apt-get install g++ -y | |
sudo apt-get install python -y | |
sudo apt-get install git -y | |
sudo apt-get install gimp -y | |
sudo apt-get install nmap -y | |
sudo apt-get install clamav -y | |
sudo apt-get -y install zsh build-essential vim openssl curl git git-core libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev zip unzip libpcre3 libpcre3-dev make g++ autoconf automake imagemagick | |
sudo apt-get -y install bison libc6-dev libffi-dev libreadline6 libreadline6-dev libsqlite3-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev zlib1g zlib1g-dev libreadline-dev flex libpq-dev memcached | |
sudo apt-get install curl build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion -y | |
sudo apt-get -y install linux-headers-$(uname -r) libcurl4-openssl-dev libmagickwand-dev ufw htop atop snapd | |
sudo apt-get remove docker docker-engine docker.io containerd runc -y | |
sudo apt-get update && sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
zsh --version && chsh -s $(which zsh) | |
sudo snap install bitwarden | |
echo "" | |
echo "Install Sublime Text" | |
echo "" | |
sudo snap install sublime-text --classic | |
echo "" | |
echo "Install Google Chrome" | |
echo "" | |
cd ~/install | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb -y | |
cd ~/install | |
echo "" | |
echo "Install NodeJs" | |
echo "" | |
# Install Ruby with Rbenv | |
echo "" | |
echo "Install Ruby with Rbenv" | |
echo "" | |
cd ~/install | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
cd ~/.rbenv && src/configure && make -C src | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
cd ~/.rbenv/bin/ | |
./rbenv/bin/rbenv init | |
type rbenv | |
rbenv install 2.7.1 | |
rbenv global 2.7.1 | |
ruby -v | |
cd ~/install | |
echo "" | |
echo "Gem Update System" | |
echo "" | |
# Gem Update | |
sudo gem update --system | |
sudo gem install bundle | |
# Install ASDF | |
echo "" | |
echo "Install ASDF" | |
echo "" | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | |
cd ~/.asdf | |
git checkout "$(git describe --abbrev=0 --tags)" | |
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc | |
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc | |
## Install Ruby with ASDF | |
asdf plugin-add ruby | |
asdf install ruby latest | |
asdf global ruby latest | |
ruby -v | |
# Install Docker | |
echo "" | |
echo "Install Docker" | |
echo "" | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker $USER | |
echo "" | |
echo "Install Snap apps" | |
echo "" | |
# Install Bitwarden | |
echo "Bitwarden" | |
sudo snap install bitwarden | |
# Install Discord | |
echo "Discord" | |
sudo snap install discord --classic | |
# Install Slack | |
echo "Slack" | |
sudo snap install slack --classic | |
# Install Telegram | |
echo "Telegram" | |
sudo snap install telegram-desktop | |
# Install VSCode | |
echo "VSCode" | |
sudo snap install code --classic | |
# Install Spotify | |
echo "Spotify" | |
sudo snap install spotify | |
# Install Chromium | |
echo "Chromium" | |
sudo snap install chromium | |
echo "" | |
echo "Update & Upgrade Server Ubuntu" | |
echo "" | |
sudo apt-get -y update && sudo apt-get -y upgrade | |
echo "" | |
echo "Clean Instalation Ubuntu" | |
echo "" | |
sudo apt-get autoremove -y && sudo apt-get autoclean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment