Skip to content

Instantly share code, notes, and snippets.

@xaderfos
Last active September 12, 2016 02:16
Show Gist options
  • Save xaderfos/28cae595a93755e793a7899b07ab02d5 to your computer and use it in GitHub Desktop.
Save xaderfos/28cae595a93755e793a7899b07ab02d5 to your computer and use it in GitHub Desktop.
Automate software installation on newly installed OS
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade
# COWSAY FIGLET TOILET LOLCAT
sudo apt install -y cowsay figlet toilet lolcat
# ZSH
figlet ZSH | lolcat
# =============================================================================
sudo apt-get install -y zsh
sudo apt-get install -y git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# VUNDLE FOR VIM
figlet VUNDLE FOR VIM | lolcat
# =============================================================================
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
sudo apt-get install -y vim-nox
# Add this to .vimrc
# TODO Maybe I can just create the .vimrc my self! Have to echo this somehow
<<"COMMENT"
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-surround'
Plugin 'kien/ctrlp.vim'
Plugin 'bling/vim-airline'
set noshowmode
set laststatus=2
set t_Co=256
let g:airline_theme='wombat'
let g:airline_powerline_fonts=1
Plugin 'valloric/youcompleteme'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'yggdroot/indentline'
Plugin 'sickill/vim-pasta'
Plugin 'kien/rainbow_parentheses.vim'
Plugin 'stanangeloff/php.vim'
" All of your Plugins must be added before the following line
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
COMMENT
# POWERLINE FONTS
figlet POWERLINE FONTS | lolcat
# ==============================================================================
wget https://github.com/tonsky/FiraCode/releases/download/1.201/FiraCode_1.201.zip
unzip FiraCode_1.201.zip
cd fonts/
./install.sh
cd ../
rm -rf fonts
# Set terminal to a powerline font and restart vi
# CHROME
figlet CHROME | lolcat
# ==============================================================================
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -y -f install
rm google-chrome-stable_current_amd64.deb
# MPS-YOUTUBE
figlet MPS-YOUTUBE | lolcat
# ==============================================================================
sudo apt install -y mplayer mps-youtube
sudo apt-get install -y python3-pip
pip3 install youtube_dl
# JAVA
figlet JAVA | lolcat
# ==============================================================================
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
# install java 7 after 8 so that it set as the default one
sudo apt-get install oracle-java7-installer
# MYSQL
# figlet MYSQL | lolcat
# Not sure if I need to install mysql on the host maybe in vm clients....?
# sudo apt install -y mysql-server mysql-client
# EMACS
figlet EMACS | lolcat
# ==============================================================================
sudo apt install -y emacs
curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
# ICDIFF
figlet ICDIFF | lolcat
# ==============================================================================
curl -s https://raw.githubusercontent.com/jeffkaufman/icdiff/release-1.8.1/icdiff \
| sudo tee /usr/local/bin/icdiff > /dev/null \
&& sudo chmod ugo+rx /usr/local/bin/icdiff
# ALL OTHER
# ==============================================================================
figlet KEEPASSX | lolcat
sudo apt install -y keepassx
figlet MYSQL-WORKBENCH | lolcat
sudo apt install -y mysql-workbench
figlet BUILD-ESSENTIAL | lolcat
sudo apt install -y build-essential
figlet TMUX | lolcat
sudo apt install -y tmux
figlet MAVEN | lolcat
sudo apt install -y maven
figlet NPM | lolcat
sudo apt install -y npm
figlet VIRTUALBOX | lolcat
sudo apt install -y virtualbox
figlet TREE | lolcat
sudo apt install -y tree
figlet PDFTK | lolcat
sudo apt install -y pdftk
figlet LATEX | lolcat
sudo apt install -y texlive texlive-bibtex-extra texlive-lang-greek texlive-xetex
figlet TIG | lolcat
sudo apt install -y tig
figlet RANGER | lolcat
sudo apt install -y ranger
figlet PANDOC | lolcat
sudo apt install -y pandoc
# NETBEANS
figlet NETBEANS | lolcat
# ==============================================================================
wget http://download.netbeans.org/netbeans/8.1/final/bundles/netbeans-8.1-linux.sh
sudo sh netbeans-8.1-linux.sh
rm netbeans-8.1-linux.sh
# FINISHED
cowsay -f tux 'How awesome was that?' | lolcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment