Skip to content

Instantly share code, notes, and snippets.

@juuh42dias
Last active February 12, 2020 19:00
Show Gist options
  • Save juuh42dias/40d4f022d51bc01df4fd to your computer and use it in GitHub Desktop.
Save juuh42dias/40d4f022d51bc01df4fd to your computer and use it in GitHub Desktop.
Personal Programs Install Ubuntu
#!/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 ""
sudo apt-get autoremove && sudo apt-get autoclean
sudo add-apt-repository ppa:atareao/telegram
sudo add-apt-repository ppa:linuxuprising/java && sudo apt-get update
sudo add-apt-repository ppa:pitti/postgresql
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
#sudo add-apt-repository ppa:webupd8team/sublime-text-3
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 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 python-software-properties
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
# instalar o Slack original
# https://slack.com/downloads/linux
# sudo apt-get install scudcloud -y
sudo apt-get install telegram -y
sudo apt-get install oracle-java11-installer -y
cd ~/install
wget https://launchpad.net/~alexeftimie/+archive/ubuntu/ppa/+files/indicator-sysmonitor_0.4.3_all.deb
sudo dpkg -i indicator-sysmonitor_0.4.3_all.deb
echo ""
echo "Install Sublime Text"
echo ""
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install sublime-text -y
sudo rm -fr /opt/franz
sudo rm -fr /usr/share/applications/franz.desktop
# create installation dir
sudo mkdir -p /opt/franz
#install franz
wget -qO- https://github.com/meetfranz/franz-app/releases/download/4.0.4/Franz-linux-x64-4.0.4.tgz | sudo tar xvz -C /opt/franz/
# add app icon
sudo wget "https://cdn-images-1.medium.com/max/360/1*v86tTomtFZIdqzMNpvwIZw.png" -O /opt/franz/franz-icon.png
# configure app for desktop use
sudo bash -c "cat <<EOF > /usr/share/applications/franz.desktop
[Desktop Entry]
Name=Franz
Comment=
Exec=/opt/franz/Franz
Icon=/opt/franz/franz-icon.png
Terminal=false
Type=Application
Categories=Messaging,Internet
EOF"
cd ~/install
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
# Install PostgreSQL 10
echo ""
echo "Install PostgreSQL 10"
echo ""
sudo apt-get update && sudo apt-get install postgresql-10
# Install LibYAML
echo ""
echo "Install LibYAML"
echo ""
cd ~/install
wget http://pyyaml.org/download/libyaml/yaml-0.1.7.tar.gz
tar -zxf yaml-0.1.7.tar.gz
cd yaml-0.1.7
./configure && make && sudo make install
cd ~/install
# Install NodeJs
echo ""
echo "Install NodeJs"
echo ""
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
source ~/.bashrc
npm install 9
# 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.6.3
rbenv global 2.6.3
ruby -v
cd ~/install
echo ""
echo "Gem Update System"
echo ""
# Gem Update
sudo gem update --system
sudo gem install bundle
# Install Discord
wget https://discordapp.com/api/download?platform=linux&amp;format=deb
sudo dpkg -i discord*.deb
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