Saturday, March 29, 2008

Subversion server setup

Installing subversion server on Linux (Centos/Redhat)

Step 0. Install svn
yum install svn

Step 1: Create repository
svnadmin create

Step 2: For User Id and password: Edit /conf/svnserve.conf
and /conf/passwd
svnserve.conf:
anon-access = none
auth-access = write
password-db = passwd

Step 3: Copy "svnd" into /etc/init.d/ and
chmod 755 svnd

Step 4: Edit svnd :
Line 28: daemon $SVND -d -r

Step 5: Open port in "/etc/sysconfig/iptables" add
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 3690 -j ACCEPT

Step 6: Make sure /etc/services has the following entries
svn 3690/tcp # Subversion
svn 3690/udp # Subversion

Step 7: start/restart firewall and svnserve
/etc/init.d/iptables restart
/etc/init.d/svnd restart

Done...

No comments: