Skip to content

Instantly share code, notes, and snippets.

@ashishtajane
Last active April 30, 2020 13:19
Show Gist options
  • Save ashishtajane/d666095ea69ba73c190e to your computer and use it in GitHub Desktop.
Save ashishtajane/d666095ea69ba73c190e to your computer and use it in GitHub Desktop.
Ubuntu Setup Script
## Google Chrome
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
## Synaptic Package Manager
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic
## zshell and oh-my-zsh (https://gist.github.com/tsabat/1498393)
apt-get install zsh
apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s `which zsh`
## Sublime Text (http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2-3)
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
## VLC
sudo apt-get install vlc
## Skype
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gdebi
wget download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb
sudo gdebi skype-ubuntu-precise_4.3.0.37-1_i386.deb
## Deluge (the one in official ubuntu repository can be out of date)
sudo add-apt-repository ppa:deluge-team/ppa
sudo apt-get update
sudo apt-get install deluge
## JAVA
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
## Ruby, RVM, Rails (https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm)
sudo apt-get install build-essential make curl # prerequsites
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
echo "gem: --no-document" > ~/.gemrc
gem install rails
## NodeJS and npm
# https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
# https://github.com/joyent/node/wiki/installing-node.js-via-package-manager
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
## mysql
sudo apt-get install mysql-server
## mongodb (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
## Setup GitHub
# https://help.github.com/articles/set-up-git/
# https://help.github.com/articles/generating-ssh-keys/
git config --global user.name "Ashish Tajane"
git config --global user.email "ashishtajane@gmail.com"
if [ ! -d "~/.ssh" ]; then; mkdir ~/.ssh; fi
ls -al ~/.ssh
ssh-keygen -t rsa -C "ashishtajane@gmail.com" -N <passphrase> -f ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa # need passphrase here!
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
# add ssh key to github
# http://unix.stackexchange.com/questions/136894/command-line-method-or-programtically-add-ssh-key-to-github-com-user-account
## psql (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04)
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo -i -u postgres
createuser -s -d -r -e ashish
exit
createdb ashish
touch ~/.psql_history
## Music Player
sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine
## compress software
sudo apt-get install unrar-free p7zip-full
## Eclipse Editor (http://askubuntu.com/questions/26632/how-to-install-eclipse)
## http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/
tar -zxvf eclipse.XX.YY.tar.gz
sudo mv eclipse.XX.YY /opt
gedit eclipse.desktop
## Add Following to it!
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env UBUNTU_MENUPROXY=0 eclipse44
Terminal=false
Icon=eclipse
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
## till here
sudo desktop-file-install eclipse.desktop
sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse44
sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm
## MISC Things
sudo apt-get install aptitude
# Flash Plugin
sudo apt-get install flashplugin-installer
# Video Codecs
sudo apt-get install gstreamer0.10-plugins-ugly gxine libdvdread4 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321 gstreamer1.0-libav
# to open terminal in arbitrary paths from nautilus UI
sudo apt-get install nautilus-open-terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment