Sunday, September 4, 2011

Install and configure CVS on Solaris 10

1.       Download the binary file from http://ftp.gnu.org/non-gnu/cvs/binary/stable/
cvs-1.12.13-sol10-x86-local.gz
2.     Extract downloaded file to a folder, eg. /opt
#gunzip cvs-1.12.13-sol10-x86-local.gz
3.     Install CVS
# pkgadd –d cvs-1.12.13-sol10-x86-local
4.     Create soft link
ln -s /usr/local/bin/cvs /usr/bin/cvs
5.     Create a CVS repository, for example, create the repository in /cvsroot
#cvs -d /cvsroot init
This command will create a CVSROOT foler under /cvsroot
6.     Create user/password for CVS repository
If you want to use existing Solaris’s user to access CVS, open
/etc/shadow, copy the user id and password to a file "passwd" under
/cvsroot/CVSROOT. Edit it with following format
aniu:jYETQkdxnNkYw
7.     Add $CVSROOT parameter’s in joey profile
export CVSROOT=:pserver:aniu@artsolaris:2401:/cvsroot
8.     6. As CVS use 2401 port to monitor the connection, we need to modify
serveral configuration files
- Modify /etc/services to add following line
cvspserver 2401/tcp
cvspserver 2401/udp

9.     Create file cvsinetd and add below line into it
cvspserver stream tcp nowait root /usr/local/bin/cvs -f --allow-root=/cvsroot pserver
As inetd in Solaris was changed, so use following command to convert
the original inetd config
# inetconv -f -i cvsinetd

10. #Add the following lines to /var/svc/profile/inetd_services.xml
11.<service name='network/cvspserver-tcp' version='1' type='service'>

<instance name='default' enabled='true'/>

</service>
12. #Restart the network

# svcadm restart svc:/network/inetd:default
13.  #telnet localhost 2401
If seeing "Connected to localhost" after running the command, you have
installed CVS server successfully

No comments:

Post a Comment