Hi All,
Yesterday, I have sent a reply to John's post about CVS problems. Today
I got a message stating that the post did not get through because the
attach was too large. In summary, the messages and the attach showed
that every BC developer registered at bioinformatics.org has CVS write
permissions. So that can't be the source of the problems some of you
are experiencing.
In case some of you haven't received my CVS instructions yet, I have
pasted them again at the end of this mail.
I'm sorry for the delay in replying, I'm rebuilding our house right
now, so I can't use my mac too often these days. :-(
All the best,
peter
-----------------
- 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.