Solved

cvs setup

Posted on 2004-04-04
5
431 Views
Last Modified: 2011-09-20
When I type in command

cvs -d co [dirname]

using bash shell on my local linux machine to check out what's in the remote cvs repository, I get

Unknown command: 'dirname'

What are the possible reasons for getting this?


Details of what I did:

I have added

Host [IPAddress]
HostName [host name]
User [login name]

to /root/.ssh/config

and I've also set environment variable as

export CVS_RSH=ssh
export CVSROOT=:ext:[host name]:/[root dir of repository]/CVSROOT

and finally, in order for these values to be set every time I use the computer, I put these export commands in the file (~/.bashrc) that loads my local setting at startup.

Then I typed in the command: cvs -d co [dirname]
0
Comment
Question by:skyblue01
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:Alf666
Comment Utility
Why "cvs -d" ??? "-d" indicates a CVS root dir. The following should work :

cvs co dirname
0
 

Author Comment

by:skyblue01
Comment Utility
Thanks, once I ssh into the remote machine and type: cvs co [dirname], I get

Cannot access /[root dir of repository]/CVSROOT/CVSROOT

Is there something wrong with the way I set CVSROOT above?

i.e. export CVSROOT=:ext:[host name]:/[root dir of repository]/CVSROOT

or anything else?
0
 
LVL 9

Accepted Solution

by:
Alf666 earned 200 total points
Comment Utility
Yes. Get rid of the CVSROOT in the env var :

export CVSROOT=:ext:[host name]:/[root dir of repository]

0
 

Author Comment

by:skyblue01
Comment Utility
Thanks Alf666.   It works now.
0
 
LVL 9

Expert Comment

by:Alf666
Comment Utility
I know :-))))))))))))))))))
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now