Friday, February 23, 2007

[Dev Tools] How to setup CVS server on Ubuntu

  1. Variables that might need to be geared towards your own installation:
    • INSTALLDIR: the dir where cvsd is installed.
    • USERNAME: the name for cvs user to connect to the server.

  2. install CVS files:
    sudo apt-get install cvs

    install CVS server:
    sudo apt-get install cvsd

    (it is also OK to use aptitude)
    When prompted in the cvsd installation process for Repository, type in “/cvsroot”.

  3. Configure CVS
    goto /var/lib/cvsd and build the cvsroot:
    sudo cvsd-buildroot /var/lib/cvsd

    create the folder cvsroot:
    sudo mkdir cvsroot

    and then initilize the repository
    sudo cvs -d /var/lib/cvsd/cvsroot init
    sudo chown -R cvsd:cvsd cvsroot

    create a user and password:
    sudo cvsd-passwd /var/lib/cvsd/cvsroot +$USERNAME

    and then change the AUTH type:
    sudo vi /var/lib/cvsd/cvsroot/CVSROOT/config
    uncomment the “SystemAuto=no” line.

  4. Test it
    cvs -d :pserver:$USERNAME
    @localhost:/cvsroot login
    cvs -d :pserver:
    $USERNAME
    @localhost:/cvsroot checkout .

Reference: http://www.sofee.cn/blog/2006/06/14/5/ by Justin

No comments: