Subversion and xinetd on Ubuntu

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
  • 
    
    (edit file: /var/svn/mynewrepository/conf/svnserve.conf)
    [general] anon-access = none auth-access = write password-db = passwd
  • 
    
    (edit file: /var/svn/mynewrepository/conf/passwd)
    [users] myusername = mypassword
  • Configure xinetd
  • 
    
    (create file: /etc/xinetd.d/svnserve)
    service svn { port = 3690 socket_type = stream protocol = tcp wait = no user = svn server = /usr/bin/svnserve server_args = -i -r /var/svn }
  • 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
  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Google Bookmarks
  • StumbleUpon
  • FriendFeed

One thought on “Subversion and xinetd on Ubuntu”

Leave a Reply

Your email address will not be published. Required fields are marked *


× eight = 16

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>