Monday, February 5, 2007

CVS Server

When I started to inspect the code, I realized that I need a CVS server as well. First check if there is any free CVS hosting site. Well, there are some, but $30 per month!

It's not difficult to setup a CVS server. I found a good paper at http://personal.vsnl.com/sureshms/linuxindex.html.

1. create cvs user and group
2. CVSROOT=/home/cvs; export CVSROOT add it into profile
3. cvs -d /home/cvs init
4. add /etc/xinetd.d/cvs
5. service xinetd restart

As it uses sshd, it's not necessary to start telnetd.

Done!

On client side, I use tortoiseCVS. Set home :ssh:sunwei@192.168.11.99:/home/cvs. First create a new directory. Use CVS->Make New Module, repository folder->/home/cvs, modulename->directory name. Afterwards you can add files into it.

Everything is now saved at /home/cvs. To backup I think just simply tar /home/cvs. It's easy. :)

Another problem of the Linux server is that I need to set DNS server address for it. It's /etc/resolv.conf. add 'nameserver 192.168.11.1' then it's fine.

service cvspserver
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = cvs
group = cvs
log_type = FILE /var/log/xinetdlog
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_success += USERID DURATION
log_on_failure += HOST USERID
}

No comments: