[Biococoa-dev] CVS problems

Koen van der Drift kvddrift at earthlink.net
Fri Jul 30 22:38:48 EDT 2004


On Jul 30, 2004, at 8:53 PM, John Timmer wrote:

> Maybe I'm completely off, but I had assumed that the CVS password 
> would be
> the same as my shell account, which should be the same as what logs me 
> into
> the bioinformatics.org website.  That, however, doesn't seem to be 
> working.
>

This is what Peter send me when I set up my account. Maybe that helps. 
I still need to try out the Xcode part at the end.

- Koen.


================

- Launch the terminal and enter bash (or set the default shell to bash 
in the Terminal prefs)

- Set two shell parameters by entering in the terminal:
export CVS_RSH='ssh'
export CVSROOT=':ext:loginname at bioinformatics.org:/cvsroot'
(make sure to replace loginname by your login)

- Create a folder on your machine where you want to store the BioCocoa 
source
e.g. mkdir ~/Desktop/BioCocoa

- Move to that folder
e.g. cd ~/Desktop/BioCocoa

- Move the contents of the CVS repository to that folder
cvs checkout BioCocoa

- The entire BioCocoa project will be transfered to your local folder. 
We are almost done but make sure to read the NeXT step.

- There is one more thing you should do in order to make Xcode work 
with the CVS repository over ssh:
If you’d like to use ssh without having to type your password every 
time (useful if you are accessing CVS via Xcode, for example), you’ll 
want to create a public/private key pair with the ssh-keygen command. 
The advantage of doing this is that your scripts will be able to run 
without human intervention. The disadvantage is that anyone who can 
access your account on your local Mac OS X box will also be able to 
access those remote servers which have stored your public key.

In the terminal enter:
ssh-keygen -t dsa
-> Enter file in which to save the key (you can choose the proposed 
file name and path):
-> Enter passphrase:
hit return when you are asked for a passphrase
-> Enter same passphrase again
hit return a second time
-> Your identification has been saved in /Users/peter/.ssh/id_dsa.
-> Your public key has been saved in /Users/peter/.ssh/id_dsa.pub.

Once you have created your private and public keys, you need to place 
your public key on the remote host in a place where ssh and scp can 
recognize it. Use ssh to connect to the remote host(s) on which you 
want to publish your projects. Then add the contents of your local 
~/.ssh/identity.pub or id_dsa.pub file to a file in your remote ~/.ssh 
directory called “authorized_keys” (if you don’t have one already, you 
can create it). You can od this by SFTPing to your bioinformattics 
account and by creating a .ssh folder in your Home directory and by 
adding a authorized_keys file to this dir.

This way, you will be able to connect to the CVS server without 
entering a password. More importantly, Xcode will be able to connect to 
the CVS server without problems. Now you can open the project in Xcode 
and use the built-in SCM to work on the project. I'd recommend a CVS 
tutorial, e.g. http://www.linux.ie/articles/tutorials/cvs.php if you 
are not familiar with CVS.




More information about the Biococoa-dev mailing list