Skip to content

Instantly share code, notes, and snippets.

@mealies
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mealies/117b5dc3dd38e136f853 to your computer and use it in GitHub Desktop.
Save mealies/117b5dc3dd38e136f853 to your computer and use it in GitHub Desktop.
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
zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
chsh -s /bin/zsh
# Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/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
cd
git clone https://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.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