rogue - Aug 12, 2005 - 8:11 pm
I have set up ssh cvs on my ibook g4 but need to know how to permanently add my cvs_root and cvs_rsh so that I don't have to enter them every time I want to commit or checkout. Any Help? Also on a slightly similar issue I would like to permanently add my PATH=$PATH:/opt/lo etc for my darwinports (again so i don't have to type it in everytime), the darwinports website says to create a .profile and add it to that but I am not sure how to create the .profile. I did sudo pico .profile, put in the path info and saved it but it saved as .profile.save and made no difference to the porting (still had to type in the path manually). Hope someone can help.
macbri - Aug 12, 2005 - 11:41 pm
Hi Tadhg -
(Irish name?) Anyway, my name is Brian and I'll be assisting you today.
You're on the right track, you created a file and added a PATH definition to it, but you need to rename it as .profile. To do this open a terminal and type:
mv .profile.save .profile
Now open a new terminal and see if that works. Assuming it does, open your .profile again with pico and add the following lines:
export CVSROOT=:ext:username@server:/path/to/cvsroot
export CVS_RSH=ssh
Of course, substitute the correct values for CVSROOT
Let me know if this doesn't solve the problem, and if not can you tell me what version of OS X you are using?
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
rogue - Aug 13, 2005 - 4:57 am
Hey Brian, thanks for the swift reply. Yes to the Irish. Just wanted to say that I am completely new to apple and osx, am running tiger. I did what you said and now have a .profile with:
export PATH=$PATH:/opt/local/bin
export CVS_RSH=ssh
export CVSROOT=myusername@sort.ucd.ie:/cvsroot/projectx
it is in /Users/rogue. So far though it has not solved either of the problems. Sudo port install programname still tells me port command not found unless I manually type in the PATH. And cvs still says that it needs a cvsroot specified and only works if I do the whole :
export CVS_RSH=ssh
cvs -d
myusername@sort.ucd.ie:/cvsroot/projectx checkout projectx
macbri - Aug 13, 2005 - 5:22 am
Hi Tadhg -
Sorry about the question out of left field - I'm from Cork you see, so I recognised the name

Anyway, to business:
Are you by any chance using the C-shell (tcsh), as opposed to the Bourne shell (bash). Which basically means a different initialization file. In a terminal, type the following and it should tell you:
echo $SHELL
If it's /bin/bash, then we're using the correct initialization file in which case it's not getting read for some reason. Can you make sure the file is readable:
chmod 644 /Users/rogue/.profile
Then open a new terminal and see if it works. However, if it is in fact /bin/tcsh, try creating a new file called .cshrc and in it put the following lines:
set path = ($path /opt/local/bin)
setenv CVS_RSH ssh
setenv CVSROOT
yourusername@sort.ucd.ie:/cvsroot/projectx
Open a new terminal and see if that works. Let me know if it's still not working and we'll try a few other things.
- Brian
--------
Brian S.
MacOSX.com Technical Support
brian@macosx.com
rogue - Aug 13, 2005 - 5:37 am
Excellent, the chmod worked perfectly, thank you very much brian.