Skip to content

Instantly share code, notes, and snippets.


mealies/Ubuntu basic setup

Last active Aug 29, 2015
What would you like to do?
Ubuntu 14.04 After Install Basic Setup
# Ubuntu 14.04 After Install Stup Scripts
# Basic script to get most dependencies installed, switch shell to zsh and install prezto zsh extensions as well as node and ruby.
# Add PPA for Unity Tweak Tool
sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily
sudo apt-get update
# Add PPA for TLP laptop power management
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms
# Basic Dependencies
sudo apt-get update && \
sudo apt-get install -y curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev python g++ make git zsh vlc
# Switch to ZSH and prezto
git clone --recursive "${ZDOTDIR:-$HOME}/.zprezto"
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^; do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
chsh -s /bin/zsh
# Google Chrome
wget -q -O - | sudo apt-key add - && \
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google.list' && \
sudo apt-get update && \
sudo apt-get install google-chrome-stable
# node.js
sudo apt-get install nodejs npm nodejs-dev
# Install Rbenv
git clone .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc
git clone ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.0
rbenv global 2.2.0
ruby -v
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.