Created
March 7, 2016 16:18
-
-
Save pingu1m/ee1831299150fe94ebe3 to your computer and use it in GitHub Desktop.
Basic ubuntu install
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/env bash | |
sudo apt-get update | |
sudo apt-get install -y tmux git curl zsh | |
##################################### | |
if [ "$1" = "ohmyzsh" ] | |
then | |
chsh -s $(which zsh) | |
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
fi | |
#################################### | |
if [ "$1" = "teamviewer" ] | |
then | |
wget http://download.teamviewer.com/download/teamviewer_i386.deb | |
gdebi teamviewer_i386.deb | |
#apt-get -f install | |
fi | |
#################################### | |
if [ "$1" = "java" ] | |
then | |
add-apt-repository ppa:openjdk-r/ppa | |
apt-get update | |
#apt-get install -y openjdk-8-jre | |
apt-get install -y openjdk-8-jdk | |
fi | |
#################################### | |
if [ "$1" = "virtualbox" ] | |
then | |
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - | |
apt-get update | |
apt-get install -y virtualbox-5.0 | |
fi | |
#################################### | |
if [ "$1" = "openvpn" ] | |
then | |
apt-get install -y openvpn | |
apt-get install -y network-manager-openvpn-gnome | |
fi | |
#################################### | |
if [ "$1" = "atom" ] | |
then | |
add-apt-repository ppa:webupd8team/atom | |
apt-get update | |
apt-get install atom | |
fi | |
#################################### | |
if [ "$1" = "sublime" ] | |
then | |
add-apt-repository ppa:webupd8team/sublime-text-3 | |
apt-get update | |
apt-get install -y sublime-text-installer | |
fi | |
#################################### | |
if [ "$1" = "filezilla" ] | |
then | |
apt-get install -y filezilla | |
fi | |
#################################### | |
if [ "$1" = "chrome" ] | |
then | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
apt-get update | |
apt-get install -y google-chrome-beta | |
fi | |
#################################### | |
if [ "$1" = "phpstorm" ] | |
then | |
wget -q http://download.jetbrains.com/webide/PhpStorm-10.0.1.tar.gz | |
tar -xzf PhpStorm-10.0.1.tar.gz | |
rm -rf PhpStorm-10.0.1.tar.gz | |
mv PhpStorm* /opt/ | |
fi | |
#################################### | |
if [ "$1" = "docker" ] | |
then | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' >> /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get purge lxc-docker | |
apt-get install -y linux-image-extra-$(uname -r) | |
apt-get install -y docker-engine | |
service docker start | |
usermod -aG docker fgusmao | |
systemctl enable docker | |
fi | |
##################################### | |
if [ "$1" = 'fslint' ] | |
then | |
apt-get install -y fslint | |
fi | |
##################################### | |
if [ "$1" = 'skype' ] | |
then | |
add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
apt-get update && apt-get install -y skype | |
fi | |
#################################### | |
if [ "$1" = 'tweaktool' ] | |
then | |
add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily | |
apt-get update && sudo apt-get install -y unity-tweak-tool | |
apt-get install -y nautilus-open-terminal | |
nautilus -q | |
add-apt-repository ppa:noobslab/icons | |
apt-get update | |
apt-get install -y ultra-flat-icons ultra-flat-icons-green ultra-flat-icons-orange | |
fi | |
#################################### | |
if [ "$1" = 'powerline' ] | |
then | |
apt-get install -y python-pip libffi-dev libssl-dev zip tmux | |
pip install -U pip | |
pip install pyopenssl ndg-httpsclient pyasn1 | |
sudo -H pip install powerline-status | |
#/usr/local/lib/python2.7/dist-packages | |
#pip install --user git+git://github.com/Lokaltog/powerline | |
#http://computers.tutsplus.com/tutorials/getting-spiffy-with-powerline--cms-20740 | |
# http://technopoetic.com/2013/11/my-experience-with-powerline-a-statuslineprompt-utility/ | |
# https://github.com/bling/vim-airline | |
wget https://github.com/powerline/fonts/archive/master.zip | |
unzip master.zip | |
cd fonts-master | |
./install | |
#https://github.com/powerline/fonts | |
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf | |
mv PowerlineSymbols.otf /usr/share/fonts/ | |
fc-cache -vf | |
mv 10-powerline-symbols.conf /etc/fonts/conf.d/ | |
fi | |
##################################### | |
if [ "$1" = 'docker-extras' ] | |
then | |
git clone https://github.com/sameersbn/docker-extras.git | |
cd docker-extras | |
make install | |
fi | |
###################################### | |
if [ "$1" = 'dropbox' ] | |
then | |
apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E | |
add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main" | |
apt-get update | |
apt-get install -y dropbox | |
fi | |
#################################### | |
if [ "$1" = 'php7' ] | |
then | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:ondrej/php-7.0 | |
sudo apt-get update | |
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql | |
sudo apt-get --purge autoremove | |
fi | |
####################################### | |
if [ "$1" = 'node' ] | |
then | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment