2009年6月9日 星期二

Subversion Setup on Arch Linux

1. install subversion

pacman -Sy subversion

2. create a folder for svn service

mkdir /srv/svn

3. create the first svn repository which includes conf, locks, etc

svnadmin create /srv/svn/myproject

4. setup authentication

vi /srv/svn/myproject/conf/svnserve.conf
--

[general]
anon-access = none
auth-access = write

password-db = passwd

anon-access is access right for unauthenticated users
auth-access is access right for authenticated users
password-db is password file, the syntax is as follows

username = password


5. start svn server

svnserve -d -r /srv/svn

for more usage details, please refer,

svnserve --help

-d [--daemon] : daemon mode
-r [--root] ARG : root of directory to serve
--config-file ARG : read configuration from file ARG
--listen-port ARG : listen port
--listen-host ARG : listen hostname or IP address

沒有留言: