6/22/2010

ruby in fedora

Quick notes on installing Ruby on Rails on Fedora Core 5 ( It should be similar for other linux distros as well )

Install ruby rpms via yum:
# yum install ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
Download and install rubygems from rubygems.org.
Change to the extracted directory and run:
# ruby setup.rb
Now use gem to install rails. It will ask about installing dependencies. Answer "Y" or just hit return.
# gem install rails
Test it by creating a skeleton rails app in your home directory:
$ cd ~
$ rails testapp
Start the WEBrick server.
$ cd ~/testapp
$ ruby script/server
The WEBrick server should now be started and listening to the default port - 3000 .
Point your browser to:

http://localhost:3000/
You should see a welcome page with some additional getting started info.

6/17/2010

virtualbox Fedora setup

Boot from CD - set CD primary Master;
when system installed, and would like to reboot, Shut Down it and in Settings set the CD as NOT primary Master, (any- primary slave eg)and boot from HDD.
or just secondary slave for CD-DVD-Rom and SATA for HDD, place it to Windows disk D, not in default C:/

VPN in Ubuntu 10.04

Ubuntu 10.04
Cisco VPN setup, steps:

  1. Install various VPN components
    • PPTP
      • pptp-linux
      • network-manager-pptp
    • VPNC

      • vpnc
      • network-manager-vpnc

    • OpenConnect
      • openconnect
      • network-manager-openconnect

  2. Reboot
  3. Create new PPTP connection
    • Create new PPTP connection
      • VPN Tab Settings
      • Set Connection name
      • Set Gateway
      • Set username (for domain-based user accounts, use domain\username)
      • DO NOT SET PASSWORD
      • DO NOT SET NT DOMAIN


then go to vpn wizard and connect:
connection established, but no ping available;
so then in terminal type: netstat -n -r;
in list select gateway name and type route add -net [IP of connection you would like to install] -gw [name of gateway from list] tun0;