Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Wednesday, December 10, 2008

Putty authorized keys

  1. Install Putty
  2. Generate the key
  3. Enter a pass phrase
  4. Select the generated public key and copy to the clipboard
  5. Save the private and public keys somehwere sensible
  6. ssh into the server that will hold the public key
  7. Make a .ssh directory in ~: mkdir .ssh
  8. Set access to .ssh : chmod 700 .ssh
  9. Enter the command: cat > .ssh/authorized_keys
  10. Paste the test from the clipboard
  11. Hit CTRL-D to exit
  12. Set the access on the authorized_keys file: chmod 644 .ssh/authorized_keys
  13. Start Pagent and add the new private key (passphrase entered above will be required)
Check that it worked by using putty to ssh in to the server.

How to install Ruby on Rails

For Ubuntu:
sudo apt-get install ruby ruby-dev postgres libpq-dev libopenssl-ruby
sudo gem install rake rails postgres ruby-debug-ide

To allow users to install gems:
chmod -R 777 /var/lib/gems/1.8

For Windows:
install ruby (using the one click installer!)
install postgres
gem install rake rails postgres-pr ruby-debug-ide

Points to note:
NetBeans 6.1 cvs doesn't work on windows - use 6.5 instead
Also, let NetBeans install the fast debugger (ruby-debug-ide)