info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS under RedHat 7.2


From: Olav Lindkjølen
Subject: Re: CVS under RedHat 7.2
Date: Mon, 11 Feb 2002 17:20:36 +0100
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1

I have the CVS 1.11.1p1 that comes with RH 7.2, but the cvspserver and
cvsup programmes are not there.  How does one get the server running so
that CVS can be reached from other machines?

cvspserver is not a program, it is a configuration file for xinetd.conf.
cvsup is an addon to cvs that does not follow the installation. It is not needed for normal operation of the server.

The actual server is /usr/bin/cvs.

Below is an answer to a similar question I sent to another person on this list.

Do this:
# cd /etc
# ls -al

You should get a list of files, one of them should be xinetd.conf
The first part of that file should look like this:

===========================start of file xinetd.conf
#
# Sample configuration file for xinetd
#

defaults
{
    log_type            = FILE /var/log/servicelog
    log_on_success      = PID
    log_on_failure      = HOST RECORD
    only_from           = 192.168.1.1 192.168.1.2
    instances           = 3
    disabled            = rstatd
}

#
# The line below reads the directory /etc/xinetd.d
# and includes any services defined in that directory
#
includedir /etc/xinetd.d

=========================rest of file xinetd.conf

if the line "includedir /etc/xinetd.d" is not there, insert it (hint "mc" or "nedit xinetd.conf").

After having made shure that that line is ok, do this:
# cd /etc/xinetd.d
# ls -al

Check to se if you find a file named "cvspserver" in that dir.
If so, it should look something like this:

========================start of file cvspserver
service cvspserver
{
    disable        = no
    socket_type    = stream
    protocol    = tcp
    wait        = no
    user        = root
    server        = /usr/bin/cvs
server_args = -f --allow-root=/usr/local/cvsroot --allow-root=/usr/local/cvstestroot pserver
    only_from    = 192.168.1.1 192.168.1.2
}


=========================end of file cvspserver

The line marked "server_args" and the line below should be all on one line if they are split up on your mail reader. The line marked "only_from" can be omitted if you like. It just restricts access to the server for everyone except my two computers. Insert your ip adresses, or remove the whole line.

If you dont find the file, create it or copy and rename one of the other files in /etc/xinetd.d (hint "nedit cvspserver" or mc).

When thats done, restart xinetd like this:
# /etc/rc.d/init.d/xinetd stop
# /etc/rc.d/init.d/xinetd start

and have a look at the bottom of the file "/var/log/messages" for messages from xinetd. One of the last lines should read: [date here] [time here] Server xinetd[process id here]: "Started working: X available services".

If you do, your cvs server should be up and running. You can check that with:
# netstat -nlpd

which should report that xinetd is listening on port 2401.
You should now be able to telnet to port 2401 on the server and if you try and send an "f" to it it should respond with:

"cvs [pserver aborted]: bad auth protocol start: f"
If it does, you know your server is alive and kicking.

Regards from Olav!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]