1) Login as root user and check that the software packages, or higher versions,are installed in your Server

gcc version 4.1.2

If not, please Install/upgrade the Packages by using the following commands as Examples.  

Install G++ files:
#apt-get install g++

Install CVS files:
#apt-get install cvs

3. Create the User to install and compile the apache

#groupadd cvsd

#useradd -u 1010 -g cvsd -d /home/cvsd -m -s /bin/ksh -c “CVS Server” cvsd 

If the folder cvsrepo does not exist, then create it ..

#mkdir cvsrepo

#chown –R cvsd:cvsd cvsrepo 

Install the CVS server:Download the required following package

#wget http://ch.tudelft.nl/~arthur/cvsd/cvsd-1.0.13.tar.gz 

Extract the cvsd package and install by using the following steps.

$tar –zvxf cvsd-1.0.13.tar.gz

$cd /usr/src/cvsd-1.0.13 

$./configure –prefix=/var/lib/cvsd/ \ /var/lib/cvsd/ 


CVSD Installation successfully complete
$ cd /var/lib/cvsd 

cvsd-buildroot /var/lib/cvsd and then initilize the repository

sudo cvs -d /var/lib/cvsd/cvsrepo init

create a user and password

sudo cvsd-passwd /var/lib/cvsd/cvsrepo rbalara

#vi /var/lib/cvsd/cvsrepo/CVSROOT/config

Change

“SystemAuto=no”

Test  

cvs -d :pserver:rbalara@localhost:/cvsrepo login 

cvs -d :pserver:rides@localhost:/cvsrepo checkout 

6 Responses to “Install CVS server on Ubuntu 6.10”

  1. Shirish Says:

    I got the Connection refused Error while login…
    Please help me…..?

  2. Shirish Says:

    I have installed CVS on my Ubuntu system…
    Followed the steps on…
    http://www.taursys.com/howto/cvs/

    But while Testing the Repository… I got the Follwing Error …
    ——————————————————
    Logging in to :pserver:cvsroot@10.77.111.100:2401/home/cvsroot
    CVS password:
    cvs [login aborted]: connect to 10.77.111.100(10.77.111.100):2401 failed: Connection refused
    ————————————————

  3. Bala Says:

    Shirish

    Give the correct password & check it will work

    Try this & check
    cvsd-passwd /var/lib/cvsd/myrepos anonymous

    give Password as =123456

    cvs -d :pserver:anonymous@localhost:/myrepos login

    cvs -d :pserver:anonymous@localhost:/myrepos checkout .

  4. Asad Says:

    HI Bala,

    I have followed all the steps and everything is fine, except I can’t login with any user:

    asheikh@asheikh-laptop:~$ sudo cvsd-passwd /usr/local/cvsroot ahalima
    /usr/sbin/cvsd-passwd: changing password for user ‘ahalima’ in ‘/usr/local/cvsroot/CVSROOT/passwd’
    Enter new password:
    Retype new password:
    asheikh@asheikh-laptop:~$

    asheikh@asheikh-laptop:~$ cvs -d :pserver:ahalima@asheikh-laptop:/usr/local/cvsroot login
    Logging in to :pserver:ahalima@asheikh-laptop:2401/usr/local/cvsroot
    CVS password:
    cvs login: authorization failed: server asheikh-laptop rejected access to /usr/local/cvsroot for user ahalima
    asheikh@asheikh-laptop:~$

    The following messages are in the log file.

    cvsd: cvs command exited with exit-status 1
    cvsd: connection from 127.0.1.1 50779
    cvsd: debug: fork() succeeded (child pid=24716)
    cvsd: debug: select() failed (ignored): Interrupted system call
    cvsd: cvs command exited with exit-status 1
    cvsd: connection from 127.0.1.1 50780
    cvsd: debug: fork() succeeded (child pid=24744)
    cvsd: debug: select() failed (ignored): Interrupted system call
    cvsd: cvs command exited with exit-status 1
    asheikh@asheikh-laptop:~$

  5. rembrant Says:

    Using several tutorials that all use basically the same method (some use apt-get with no compile) multiple times and they all leave me at this point:

    /cvsrepo: no such repository

  6. rembrant Says:

    To clarify my previous post, everything works upto the login. Login fails with “/cvsrepo: no such repository”

    cvsd debug info for my test box:

    :/usr/sbin$ cvsd-buginfo

    cvsd 1.0.10 built with:
    ./configure –build i486-linux-gnu –prefix=/usr –mandir=${prefix}/share/man –infodir=${prefix}/share/info –sysconfdir=/etc –enable-warnings –disable-dependency-tracking –with-cvs=/usr/bin/cvs –with-perl=/usr/bin/perl build_alias=i486-linux-gnu

    /etc/cvsd/cvsd.conf:
    RootJail /var/lib/cvsd
    Uid cvsd
    Gid cvsd
    Nice 1
    Umask 027
    PidFile /var/run/cvsd.pid
    MaxConnections 10
    Log syslog info
    Listen * 2401
    Repos /cvsrepo

    /var/lib/cvsd:
    drwxr-xr-x root root 4096 Jun 23 09:33 .
    drwxr-xr-x root root 4096 Jun 23 09:17 bin
    -rwxr-xr-x root root 561436 Jun 23 09:33 bin/cvs
    drwxr-xr-x cvsd cvsd 4096 Jun 23 09:35 cvsrepo
    drwxr-xr-x root root 4096 Jun 23 09:33 dev
    crw-rw-rw- root root 1, 3 May 22 2006 dev/null
    crw-rw-rw- root root 1, 5 Jun 23 08:17 dev/zero
    drwxr-xr-x root root 4096 Jun 23 09:17 etc
    -rw-r–r– root root 142 Jun 23 09:17 etc/passwd
    drwxr-xr-x root root 4096 Jun 23 09:17 lib
    -rwxr-xr-x root root 86404 Jun 23 09:33 lib/ld-linux.so.2
    -rwxr-xr-x root root 1232784 Jun 23 09:33 lib/libc.so.6
    -rwxr-xr-x root root 18900 Jun 23 09:33 lib/libcrypt.so.1
    -rwxr-xr-x root root 8204 Jun 23 09:33 lib/libdl.so.2
    -rwxr-xr-x root root 77176 Jun 23 09:33 lib/libnsl.so.1
    -rwxr-xr-x root root 26588 Jun 23 09:33 lib/libnss_compat.so.2
    -rwxr-xr-x root root 32740 Jun 23 09:33 lib/libnss_files.so.2
    -rwxr-xr-x root root 30456 Jun 23 09:33 lib/libpam.so.0
    -rwxr-xr-x root root 86580 Jun 23 09:33 lib/libpthread.so.0
    -rwxr-xr-x root root 28116 Jun 23 09:33 lib/librt.so.1
    -rwxr-xr-x root root 77368 Jun 23 09:33 lib/libz.so.1
    drwxrwxrwt root root 4096 Jun 23 09:17 tmp
    drwxr-xr-x root root 4096 Jun 23 09:17 usr
    lrwxrwxrwx root root 6 Jun 23 09:17 usr/bin -> ../bin
    lrwxrwxrwx root root 6 Jun 23 09:17 usr/lib -> ../lib

    /usr/bin/cvs:
    -rwxr-xr-x root root 561436 Nov 21 2005 /usr/bin/cvs

    /usr/bin/cvs –version:
    Concurrent Versions System (CVS) 1.12.9 (client/server)

    /var/lib/cvsd/bin/cvs –version:
    Concurrent Versions System (CVS) 1.12.9 (client/server)

    /var/lib/cvsd/etc/passwd: (passwds removed)
    root::0:0::/:/bin/bash
    nobody::65534:65534::/:/bin/sh
    cvsd::108:115::/:/bin/false
    cvs::1002:1003::/:/bin/bash

    /var/lib/cvsd/cvsrepo/CVSROOT/config:
    UseNewInfoFmtStrings=yes

    /var/lib/cvsd/cvsrepo/CVSROOT/passwd: (passwds removed)
    owensk::cvsd
    anonymous::cvsd

    Warning: neither a readers file nor a writers file was found inside
    /var/lib/cvsd/cvsrepo/CVSROOT. This means that all users have
    write access!

Leave a Reply