Setup subversion as an xinetd process in a few simple steps.
- Install software
-
sudo aptitude install xinetd subversion
- Create root/home directory for subversion
-
sudo mkdir /var/svn
- Create a user account for subversion
-
sudo adduser --system --home /var/svn --no-create-home --disabled-password --disabled-login --group svn
- Give ownership of the svn root directory to the svn user
-
chown -R svn:svn /var/svn
- Change to the svn user and create a new repository
-
sudo -s -u svn svnadmin create /var/svn/mynewrepository
- Configure svnserve
-
[general] anon-access = none auth-access = write password-db = passwd(edit file: /var/svn/mynewrepository/conf/svnserve.conf)
-
[users] myusername = mypassword(edit file: /var/svn/mynewrepository/conf/passwd)
- Configure xinetd
-
service svn { port = 3690 socket_type = stream protocol = tcp wait = no user = svn server = /usr/bin/svnserve server_args = -i -r /var/svn }(create file: /etc/xinetd.d/svnserve)
- Restart xinetd
-
sudo /etc/init.d/xinetd restart
- Now you can check out your repository with the following command
-
svn co svn://myusername@localhost/mynewrepository







check the below link
http://techgane.in/how-to-install-configure-subversion-ubuntu/