Skip to content

Instantly share code, notes, and snippets.

@yoricksijsling
Created May 8, 2012 07:42
Show Gist options
  • Save yoricksijsling/2633324 to your computer and use it in GitHub Desktop.
Save yoricksijsling/2633324 to your computer and use it in GitHub Desktop.
Ubuntu 11.10 orcaroeien.nl setup guide
# Als je geen clean install hebt kan het makkelijk zijn om eerst alles weg te gooien. Ik weet niet 100% zeker of dit echt genoeg is.
rvm requirements # apt-get uninstall alles wat achter apt-get install staat daar
rvm implode
apt-get uninstall libcurl4-gnutls-dev nodejs curl git-core ruby
apt-get clean
# Check ~/.bash_profile, ~/.bashrc en ~/.profile of er nog verwijzingen naar rvm staan, die regels kunnen allemaal weg
# Verwijder de volgende bestanden en mappen:
# /etc/rvmrc
# /etc/profile.d/rvm
# ~/.rvmrc
# ~/.rvm
# /usr/local/erb
# /usr/local/gem
# /usr/local/irb
# /usr/local/rake
# /usr/local/rdoc
# /usr/local/ri
# /usr/local/ruby
# /usr/local/testrb
# Restart je terminal
# Alles zou nu weg moeten zijn, maar dat gaan we nog ff dubbelchecken
# Check of er verder nog bestanden bestaan met 'rvm' of 'ruby' in de naam (kan ff duren). Deze moeten allebei NUL resultaten geven
find / -iname '*rvm*' 2> /dev/null
find / -iname '*ruby*' 2> /dev/null
# Deze moeten ook allemaal geen resultaat geven
which erb
which gem
which irb
which rake
which rdoc
which ri
which ruby
which testrb
### UBUNTU 11.10 ORCAROEIEN.NL SETUP GUIDE
# Dit werkt voor een clean install van ubuntu 11.10 64bit onder parallels.
## Generic ruby setup
# Install some prerequisites
sudo apt-get install curl git-core ruby
# Install RVM
curl -L get.rvm.io | bash -s stable
# Load RVM
source ~/.rvm/scripts/rvm
# Find requirements
rvm requirements
# FOLLOW THE INSTRUCTIONS. Usually apt get install build-essential openssl libreadline (..)
# Install ruby
rvm install 1.9.3
## Rails, github, orcaroeien.nl
# Setup SSH keys
# (follow github guide. make sure your key is known to github)
# Install some prerequisites
sudo apt-get install libcurl4-gnutls-dev nodejs
# Install bundle gem
gem install bundle
# Clone our repository
git clone git@github.com:orcaroeien/orcaroeien.nl.git
cd orcaroeien.nl
# Install all other gems
bundle install --without production
# Setup database
rake db:create db:schema:load
# Install
rails server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment