Thứ Năm, 4 tháng 12, 2008

Install CVS on SuSE server

CVS ships with SuSE, you can install it via YAST Package Management (if you're running 10.2, you can use zypper install cvs from the command line as root)

In order to enable cvs server, you need to edit a file called /etc/xinetd.d/cvs

This file looks like this:

service cvspserver
{
disable = yes
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsroot pserver
}


Change the line disable = yes to disable = no.

After that, as root run the following commands

mkdir /home/cvsroot
export CVSROOT=/home/cvsroot/
cvs init
rcxinetd restart
chkconfig xinetd on

Add permission for cvs user/group:

groupadd cvs

useradd cvs
passwd cvs <enter you password twice>
groupmod cvs -A cvs (Add user cvs to group cvs)
repeat 3 step for every user you want to have permission on the cvsroot

chown cvs:cvs /home/cvsroot/
chmod 775 -R /home/cvsroot/

You should now have a fully operational cvs server that allows users with an account in the SuSE system to logon.

Remember to add the CVSROOT variable to /etc/profile.local and adjust /home/cvsroot permissions as above so that your users are able to write to it if you wish to use authenticated users. If you wish to use anonymous access, read the documentation available online. (It should be generic for all CVS installations)
If you want to use SSH, please see the previous post "CVS with Ubuntu", it's the same :)
Source: Internet

Không có nhận xét nào:

Đăng nhận xét