Created
August 13, 2010 23:57
-
-
Save robcthegeek/523744 to your computer and use it in GitHub Desktop.
Ubuntu & Rails Bits
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
# Big Thanks to : http://ubuntuforums.org/showthread.php?t=35087 | |
# If you don't fancy the script - check out http://clonezilla.org | |
##### Backing Up ##### | |
# Dead Easy Since Ubuntu Doesn't Lock Anything! | |
# Get Sudo and Browse to Root | |
sudo su | |
cd / | |
# TAR Up the Entire Drive | |
tar cvpjf backup.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/sys --exclude=/cdrom --exclude=/tmp --exclude=/media --exclude=/var/local --exclude=/var/lock --exclude=/var/log --exclude=/var/cache --exclude=/var/backups --exclude=/var/mail --exclude=/var/opt --exclude=/var/run --exclude=/var/spool --exclude=/var/tmp / | |
# To Log Output, Add the Following to End of Previous Command: | |
# (Be sure to add an exclude to the command above!) | |
| tee /backup-log.txt | |
##### Restore ##### | |
# Boot from LiveCD if Need To, But Not Required! ;) | |
# As Before, Sudo Up and Browse to Root, Then: | |
tar xvpfj backup.tar.bz2 -C / | |
# Recreate the Folders We Excluded: | |
mkdir proc | |
mkdir lost+found | |
mkdir mnt | |
mkdir sys | |
mkdir cdrom | |
mkdir tmp | |
mkdir media | |
mkdir var/local | |
mkdir var/lock | |
mkdir var/log | |
mkdir var/cache | |
mkdir var/backups | |
mkdir var/mail | |
mkdir var/opt | |
mkdir var/run | |
mkdir var/spool | |
mkdir var/tmp |
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
sudo gem install rails --no-ri --no-rdoc | |
sudo gem install haml --no-ri --no-rdoc | |
sudo gem install nokogiri --no-ri --no-rdoc | |
sudo gem install capybara --no-ri --no-rdoc | |
sudo gem install gherkin --no-ri --no-rdoc | |
# ... May need Gherkin 2.1.4 Specific Pending Cucumber Fix.. | |
sudo gem install gherkin --version 2.1.4 --no-ri --no-rdoc | |
sudo gem install cucumber-rails --no-ri --no-rdoc | |
sudo gem install pickle --no-ri --no-rdoc | |
sudo gem install spork --no-ri --no-rdoc | |
# Install Thin Webserver - Requires g++ to Build Native Extensions | |
sudo apt-get install g++ | |
sudo gem install thin --no-ri --no-rdoc |
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
# Suspend Machine | |
$ sudo /etc/acpi/sleep.sh force | |
# Display Build Version | |
$ lsb_release -a |
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
# Ruby/Rails Developer Packages | |
sudo apt-get install rubygems | |
sudo apt-get install rails | |
sudo apt-get install ruby1.8-dev | |
sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby | |
sudo apt-get install libxslt-dev libxml2-dev | |
# Git DVCS | |
sudo apt-get install git-core git-gui | |
# Tools & Utils | |
sudo apt-get install docky # Mac-like Dock | |
sudo apt-get install htop # Process Viewer | |
sudo apt-get install compizconfig-settings-manager # Compiz Settings GUI | |
# Gmate (http://github.com/gmate/gmate) | |
sudo apt-add-repository ppa:ubuntu-on-rails/ppa | |
sudo apt-get update | |
sudo apt-get install gedit-gmate | |
# Spotify!! | |
# 1. Add this line to your list of repositories by | |
# editing your /etc/apt/sources.list | |
# deb http://repository.spotify.com stable non-free | |
# 2. Run apt-get update | |
# 3. (optional) If you want to verify the downloaded packages, | |
# you will need to add our public key | |
# gpg --keyserver wwwkeys.de.pgp.net --recv-keys 4E9CFF4E | |
# gpg --export 4E9CFF4E |sudo apt-key add - | |
# 4. Run apt-get install spotify-client-qt spotify-client-gnome-support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment