Skip to content

Instantly share code, notes, and snippets.

@mishaAe
Created May 23, 2016 11:06
Show Gist options
  • Save mishaAe/429ea5ffa2182648b920e6a43b0651a9 to your computer and use it in GitHub Desktop.
Save mishaAe/429ea5ffa2182648b920e6a43b0651a9 to your computer and use it in GitHub Desktop.
Ubuntu

Ubuntu

Add user

adduser {_USER_}
usermod -aG sudo {_USER_}n
passwd {_USER_}

Add repositories, uncomment lines containing multiverse, trusty-backports, and partner

sudo vim /etc/apt/sources.list

Update System

sudo apt-get update
sudo apt-get install -y language-pack-en
sudo apt-get upgrade -y

Core Utilities

sudo apt-get install -y build-essential clang g++ ppa-purge tree unzip

Git

sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git

PostGIS / GDAL

sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y libgdal-dev gdal-bin python-gdal
sudo apt-get install -y postgis postgresql postgresql-server-dev-all

Node

Instal io.js

curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo bash -
sudo apt-get install -y iojs

Npm Packages

sudo npm -g install npm
sudo npm -g install bower bson express forever grunt grunt-cli gulp http-server jshint karma-cli mocha node-gyp node-inspector phantomjs
sudo chown -R $(whoami) ~/.npm

Python

Install python libraries

sudo apt-get install -y pep8 python-dev python-setuptools

Python Packages

sudo easy_install pip
sudo pip install pip future pillow numpy uwsgi psycopg2 --upgrade

Ruby

Install

sudo apt-get install ruby-dev

Nginx 1.6

sudo apt-add-repository -y ppa:nginx/stable
sudo apt-get update
sudo apt-get install -y nginx

Browsers (Chrome, Firefox)

sudo npm install -g protractor
sudo webdriver-manager update

sudo apt-get install -y firefox default-jdk xvfb
wget 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
sudo apt-get install -y -f

Mongo 2.6

Install

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

Zsh

Install

sudo apt-get install -y zsh

Quiet last login, set zsh as default shell

touch ~/.hushlogin
chsh -s `which zsh`

Re-login and skip creation of ~/.zshrc profile

exit
vagrant ssh
(q)

Install oh-my-zsh, syntax highlighting and z

curl -L http://install.ohmyz.sh | sh
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh
git clone git://github.com/rupa/z.git ~/.oh-my-zsh
git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv

Configure theme and plugins

sudo vim ~/.zshrc

Modify these lines

ZSH_THEME="mh"
plugins=(git npm brew autoenv)

And add to end of file

source ~/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
. ~/.oh-my-zsh/z/z.sh

Restart shell, you should recieve this message _z:22: no such file or directory: /home/vagrant/.z

source ~/.zshrc

Git Configuration

Generate Public/Private Keys. Leaving path option empty sets to default (~/.ssh)

ssh-keygen -t rsa -C "{_EMAIL@DOMAIN.COM_}" 

Move to key directory, output public key contents to terminal

cd ~/.ssh/
eval `ssh-agent -s`
ssh-add
cat id_rsa.pub

Copy key to GitHub here: https://github.com/settings/ssh

Register name, email, and preferred editor

git config --global user.name "{_FIRST-NAME_} {_LAST-NAME_}"
git config --global user.email "{_EMAIL@DOMAIN.COM_}"
git config --global push.default current

Check Settings

git config --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment