paskvilwiki

up: version control

creating an SVN repo

last updated 2011-06

  • install the subversion package, if not yet installed

  • create a folder to hold your repositories (if it doesn't exist), and the repository:

    mkdir /svn
    svnadmin create /svn/repo
    
  • set the access rights by editing the /svn/repo/conf/svnserve.conf file:

    anon-access = none/read/write
    auth-access = write
    password-db = passwd
    
  • edit the /svn/repo/conf/passwd file, adding records for all users:

    my_user_name = my_awesome_password
    
  • start the svn server, and test it:

    svnserve -d
    svn co svn://my.domain.com/svn/repo .
    

note: to be a bit safer, you might want to create user svn in the svn group, then set

chown svn:svn -R /svn
chmod go-rwx -R /svn

and then run the svn server as the svn user:

sudo -u svn svnserve -d