Friday, May 22, 2009

How to access gui apps. on a remote server using ssh

If you would like to access gui applications such as firefox, gnome-terminal or anything else on a remote server, try the following command.

ssh -C -X user@host gui_command


Replace the user, host and gui_command with the appropriate information.

Example

$ssh -C -X john@231.32.23.34 gnome-terminal

Thursday, May 07, 2009

Install the latest stable Ruby and Rails on Ubuntu 9.04

Install the prerequisite packages using the following command.
$ sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev


Install Ruby
Download the latest version of ruby
$ wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz


Untar the package
$ tar xzf stable-snapshot.tar.gz


Compile and install
$ cd ruby/
$ ./configure
$ make
$ sudo make install


Create a symbolic link to ruby
$ sudo ln -s /usr/local/bin/ruby /usr/bin/ruby


Install RubyGems

$ wget http://rubyforge.org/frs/download.php/56227/rubygems-1.3.3.tgz


Compile and install
$ tar xzvf rubygems-1.3.2.tgz
$ cd rubygems-1.3.2
$ sudo ruby setup.rb


Install Rails
$ sudo gem install rails