Skip to content

Instantly share code, notes, and snippets.

@Pal-Sandeep
Forked from kodekracker/install.sh
Created January 18, 2023 16:35
Show Gist options
  • Save Pal-Sandeep/70654737c728ecac407fef86c51858aa to your computer and use it in GitHub Desktop.
Save Pal-Sandeep/70654737c728ecac407fef86c51858aa to your computer and use it in GitHub Desktop.
A shell script to install all required applications and dependencies required to setup working environment after fresh install ubuntu .
#!/usr/bin/env bash
# System wide Constants
# Ubuntu Code Name Ex:- trusty for Ubuntu 14.04
CODE_NAME=$(lsb_release -cs)
## Install basic libraries required for ubuntu environment
sudo apt-get install libcurl4-openssl-dev libssl-dev -y
sudo apt-get install zsh -y
sudo apt-get install python-software-properties -y
sudo apt-get install ruby ruby-dev -y
sudo apt-get install build-essential checkinstall -y
sudo apt-get install python-pip python-tk python-dev -y
sudo apt-get install git git-core -y
sudo apt-get install ppa-purge -y
sudo apt-get install vim -y
sudo apt-get install unity-tweak-tool -y
sudo apt-get install libzmq3 -y
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev -y
sudo apt-get install libjpeg-dev -y
sudo apt-get install software-properties-common -y
## Add all ppa required for installation of applications
sudo add-apt-repository ppa:openjdk-r/ppa -y
sudo add-apt-repository ppa:gnome-terminator -y
sudo add-apt-repository ppa:numix/ppa -y
sudo add-apt-repository ppa:webupd8team/y-ppa-manager -y
sudo add-apt-repository ppa:danielrichter2007/grub-customizer -y
sudo apt-add-repository ppa:me-davidsansome/clementine -y
sudo add-apt-repository ppa:noobslab/macbuntu -y
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 -y
sudo add-apt-repository ppa:tualatrix/ppa -y
sudo apt-add-repository ppa:ansible/ansible -y
sudo add-apt-repository ppa:shutter/ppa -y
sudo sh -c "echo \"deb http://archive.getdeb.net/ubuntu ${CODE_NAME}-getdeb apps\" >> /etc/apt/sources.list.d/vuze.list"
sudo sh -c "echo \"deb http://packages.erlang-solutions.com/ubuntu ${CODE_NAME} contrib\" >> /etc/apt/sources.list.d/erlang-solutions.list"
sudo sh -c "echo \"deb https://apt.dockerproject.org/repo ubuntu-${CODE_NAME} main\" >> /etc/apt/sources.list.d/docker.list"
sudo sh -c "echo \"deb http://apt.postgresql.org/pub/repos/apt/ ${CODE_NAME}-pgdg main\" >> /etc/apt/sources.list.d/pgdg.list"
## Add all keys required for ppa
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
wget -q -O- http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
# docker GPG key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# update apt cache
sudo apt-get update
# Install all applications
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install openjdk-8-jdk openjdk-8-jre -y
sudo apt-get install terminator -y
sudo apt-get install numix-gtk-theme numix-icon-theme-circle -y
sudo apt-get install libmysqlclient-dev mysql-client mysql-server -y
sudo apt-get install nginx nginx-extras -y
sudo apt-get install mysql-workbench -y
sudo apt-get install y-ppa-manager -y
sudo apt-get install grub-customizer -y
sudo apt-get install azureus -y
sudo apt-get install vlc -y
sudo apt-get install clementine -y
sudo apt-get install gnome-panel -y
sudo apt-get install erlang erlang-doc erlang-manpages elixir -y
sudo apt-get install ultracopier -y
sudo apt-get install xchat -y
sudo apt-get install irssi irssi-scripts screen openssh-server -y
sudo apt-get install multitail -y
sudo apt-get install libevent-dev -y
sudo apt-get install libzmq-dev -y
sudo apt-get install python-virtualenv -y
sudo apt-get install python-mysqldb -y
sudo apt-get install ansible -y
sudo apt-get install docker-engine -y
sudo apt-get install iftop -y
sudo apt-get install libffi-dev -y
sudo apt-get install albert -y
# sudo apt-get install plank -y
sudo apt-get install glances -y
sudo apt-get install zenity -y # Nylas N1 requires for desktop notifications
sudo apt-get install cmake -y
sudo apt-get install whois -y
sudo apt-get install sublime-text-installer -y
sudo apt-get install postgresql postgresql-contrib pgadmin3 -y
sudo apt-get install mysql-server -y
sudo apt-get install php-fpm php-mysql php-xdebug php-db -y
sudo apt-get install ubuntu-tweak dconf-editor -y
sudo apt-get install ansible -y
sudo apt-get install shutter -y
sudo apt-get install shellcheck -y
sudo apt-get install android-tools-adb -y
# add current user in docker group
sudo gpasswd -a ${USER} docker
sudo service docker restart
# install docker compose
DOCKER_COMPOSE_LATEST_VERSION=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/creationix/nvm/releases/latest | awk -F'/' '{print $8}')
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_LATEST_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Installation of latest nvm
NVM_LATEST_VERSION=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/creationix/nvm/releases/latest | awk -F'/' '{print $8}')
curl -o- https://raw.githubusercontent.com/creationix/nvm/${NVM_LATEST_VERSION}/install.sh | bash
# Python pip dependencies
sudo pip install ipython jupyter requests Flask gunicorn
# Oh-my-zsh
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Instal Rust compiler
curl -sSf https://static.rust-lang.org/rustup.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment