2013年11月27日 星期三

install cvsd server


inf : http://mazanatti.info/archives/67/


Step 1
shell #vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 4.4.4.4
~
`
shell # apt-get install cvsd







 ┌──────────────────────────────────────────────────────┤ Configuring cvsd ├ │ The whole idea of cvsd is to serve repositories. Specify a colon ':' separated list of repositories to serve. The location of  │ │ these repositories is relative to the specified chroot jail (/var/lib/cvsd) and should start with a '/'.                       │ │                                                                                                                                │ │ The repositories here should be initialized by hand with something like 'cvs -d /var/lib/cvsd/myrepos init' after which        │ │ passwords can be set with 'cvsd-passwd /var/lib/cvsd/myrepos anonymous'. See the file /usr/share/doc/cvsd/README.gz for        │ │ details on creating repositories.                                                                                              │ │                                                                                                                                │ │ Repositories to serve:                                                                                                         │ │                                                                                                                                │ │ /demo:/myrepos________________________________________________________________________________________________________________ │ │                                                                                                                                │ │                                     <Ok>                                         <Cancel>                                      │ │                                                                                                                                │ └──────────────────────────────────────────────────────────────────




Quick guide: installing CVS Server on Ubuntu 11.04



  • 1. Install required packages

    sudo apt-get install cvsd

  • 2. Adjust daemon parameters


    Open the configuration file:
    sudo vi /etc/cvsd/cvsd.conf
    Most likely, you gonna need to change these lines:
    # This is to avoid the "address already in use" error when starting cvsd:
    Listen 0.0.0.0 2401
     
    # You may want to change the root folder where your repositories will be created:
    RootJail /var/lib/cvsd
     
    # Go to the end of the file, and enter lines like these, one for each repository you need:
    Repos /project1
    ...
    Save the file and exit the editor.


  • 3. Create and initialize repositories

    sudo mkdir /var/lib/cvsd/project1
    sudo cvs -d /var/lib/cvsd/project1 init

  • 4. Change root folder owner to cvsd

    sudo chown cvsd:cvsd /var/lib/cvsd -R

  • 5. Create repository users

    sudo cvsd-passwd /var/lib/cvsd/project1/ john
    sudo cvsd-passwd /var/lib/cvsd/project1/ mary

  • 6. Fire up (or restart) the daemon

    sudo /etc/init.d/cvsd restart
    Check for errors at /var/log/syslog (you can change this setting at cvsd.conf). If something is wrong, check the message and correct it - probably, something related to network or file permission...


  • 7. Create a reference to the repository and use it!


    Open a terminal, and enter the following commands:
    export CVSROOT=:pserver:fabio@localhost:2401/project1
     
    cvs login
    ...
    cvs logout
    I like to use these commands to test the environment, but you can go ahead and configure your preferred CVS GUI client.


  • Cheers!



沒有留言:

張貼留言