Archive for February, 2008
Wednesday, February 27th, 2008
Checking out a remote CVS project
Problem
You want to use cvs to checkout a repository from a remote server.
Solution
If you were using subversion it would be very simple to do by using the remote url.
In CVS you have to to do the following:
First find out where the cvsroot in the remote server is. We will assume for this example that is [...]
No Comments » - Posted in linux by kosmas
Tuesday, February 26th, 2008
Ruby On Rails on CentOS 4.6
Problem
Installing Ruby on Rails on CentOS 4.6.
The yum install ruby installs an old version of Ruby 1.8.1, but you want 1.8.6
Solution
Based on a script from uberdose
The original post is here:
http://wp.uberdose.com/2007/07/15/ruby-on-rails-on-centos-45/
wget ftp://ftp.gnu.org/gnu/readline/readline-5.1.tar.gz
tar xvfz readline-5.1.tar.gz
cd readline-5.1
./configure –prefix=/usr/local
make
sudo make install
cd ..
wget [...]
No Comments » - Posted in ruby on rails by kosmas
Thursday, February 14th, 2008
Using older Capistrano version 1.x after upgrading to Capistrano 2.x
Problem
You have just upgraded your Capistrano installation to version 2.x, but you didn’t have time to convert your recipes to the newer version.
Solution
In order to be able to use your old recipes of Capistrano version 1.x after upgrading, you can use the following (assuming your version 1.x is 1.4.1):
cap _1.4.1_ deploy
or, if you have migrations [...]
No Comments » - Posted in ruby on rails by kosmas
Wednesday, February 6th, 2008
Password - less logins and aliases with ssh
Problem
You want to be able to login to different servers with ssh, but don’t want to be using your password every time.
Solution
We assume that you already have installed ssh and have created ssh public keys in your local machine.
Run the following in your local machine:
ssh-copy-id -i ~/.ssh/id_rsa.pub user_name@remote_host
If you want to add aliases in your [...]