Printer FriendlyEmail Article Link

CVS server configuration on Ubuntu and checking out projects into iTest.

Answer

Steps are as follows. 

1. Open terminal and type following command.

    sudo apt-get install cvs

2. Install the CVS server:

    sudo apt-get install cvsd

3. After you install cvs, you should install xinetd to start/stop the cvs server. At the prompt, enter the following command to install xinetd:

    sudo apt-get install xinetd
 
Configuration:
 
1. Once you install cvs, the repository will be automatically initialized. By default, the repository resides under the /var/lib/ cvsdirectory. You can change this path by running following command:
    cvs -d /your/new/cvs/repo init
 
2. Once the initial repository is set up, you can configure xinetd to start the CVS server. You can copy the following lines to the/ etc/xinetd.d/cvspserver file.
 
    service cvspserver
      {
        port = 2401
        socket_type = stream
        protocol = tcp
        user = root
        wait = no
        type = UNLISTED
        server = /usr/bin/cvs
        server_args = -f --allow-root /var/lib/cvs pserver
        disable = no
      }
 
    Be sure to edit the repository if you have changed the default repository (/var/lib/cvs) directory.
 
3. Once you have configured xinetd you can start the cvs server by running following command:
    sudo /etc/init.d/xinetd start
 
4. You can confirm that the CVS server is running by issuing the following command:
    sudo netstat -tap | grep cvs
    When you run this command, you should see the following line or something similar:
    tcp        0      0 *:cvspserver            *:* LISTEN
 
5. Creation of cvs repository User and password.
    cvsd-passwd /var/lib/cvs/myrepo username
 
6. Below command to login to repository. 
    cvs -d :pserver:username@localhost:/var/lib/cvs/myrepo login
 
7. You can checkout projects from repository using "Check out Projects from CVS" option in iTest.Specify the Host,Repository path,user and password.(Refer Screen shot).
 
    
 
 
 

Product : Velocity Portfolio,Velocity iTest