LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-04-2007, 11:58 PM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Help setting up CVS server


Hello,

I've been using RCS for a while, but am getting tired of always logging in to my development machine via SSH and doing all of my development in emacs, or constantly SFTPing files back and forth, so I decided to setup a CVS server so it will be a bit easier to handle revision control when I'm working from other machines. Let me say that I have little to no experience with CVS.

I downloaded the cvs rpm for SuSE 10.2 (machine is running openSuSE 10.2 i586). Well, I can run the "cvs" command from the shell. Nothing else. I setup a user for the CVS server using Webmin, and initialized it, but nothing happens... I've googled for an hour, but can't find any usable HOWTO.

The RPM, by default, uses xinetd.
/etc/xinetd.d/cvs:
Code:
# CVS pserver (remote acces to your CVS repositories)
# Please read the section on security and passwords in the CVS manual,
# before you enable this.
# default: off

service cvspserver
{
        socket_type = stream
        protocol = tcp
        wait = no
        server = /usr/bin/cvs
        server_args = -f --allow-root=/home/cvsroot pserver
        disable = no
        user = cvsuser
}
netstat -nta doesn't show anything on 2401 which, from what I can tell, is the port it should be listening on.

Can anyone offer any advice, or point me to a HOWTO?

Also, I was a bit perplexed, I ran rpm -ql on "cvs" but didn't see any configuration files in the listing...

Thanks in advance for any help.

-Jason
 
Old 04-05-2007, 01:25 PM   #2
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Sorry, I haven't set up a pserver. But by ssh is real easy (nobody uses rsh any more).

Say you have some files that you want to put under CVS control. (Create for demo as follows.)
Code:
mkdir original
cd original
echo 'Hello $Id: $' > foo
The $Id: $ invites CVS to put identifying info here; it's not required.

Now suppose you want to put your repository in ~/cvsroot on the machine thathost, into which you can ssh (for convenience, without password). First set two environment variables:
Code:
export CVSROOT=:ext:thathost:~/cvsroot
export CVS_RSH=ssh
That's for bash; csh and sh are different. If you're on the same machine, drop :ext:thathost: (and CVS_RSH isn't necessary then). Now we're ready:
Code:
cvs init
cvs import -m "Sample project" myproj jantman start
cd ..
cvs checkout myproj
First init creates the repository; you only have to do this once. Then you import the current directory (and anything below) as project myproj. Next get out of original, and check out a working copy (which you'll find in ./myproj).

For practicing, I suggested ~/cvsroot so you don't need root access. For real, you may want to use something more generic, particularly if you work together with others.

To keep this short, I left many questions open. Please follow up and ask!

Last edited by Quigi; 04-05-2007 at 01:28 PM.
 
Old 04-05-2007, 01:41 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
Thanks, but none of that deals with external access.

What port do I pass in the firewall? How do I check if everything is working?

Now, the other problem is that I don't have direct SSH access to the machine. It's behind a firewall, and port 22 goes to another box. Should I pass SSH on a non-standard port to that box (which I don't like because it's not hardened with denyhosts or anything)?
 
Old 04-05-2007, 02:18 PM   #4
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Quote:
Originally Posted by jantman
Now, the other problem is that I don't have direct SSH access to the machine. It's behind a firewall, and port 22 goes to another box.
I see. In that case, pserver is probably what you want.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
Setting up a CVS server MathieK Linux - Software 4 03-09-2005 08:19 AM
setting up a CVS server in redhat 9.0 zerocoo_ Linux - Software 3 06-27-2003 12:59 PM
Setting up cvs server Sky Linux - General 3 01-27-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration