2009年10月22日木曜日

linux svn server (tested in fedora 11)

svn server setup tutorial in fedora core 9
1. First you should Create a SVN Repository
svnadmin create $REPO_URL/svnrepos

2. Then Create a SVN User
vi $REPO_URL/svnrepos/conf/svnserve.conf

In that file add these three lines below:
anon-access = none
auth-access = write
password-db = passwd

Create a password file:
vi $REPO_URL/svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
tony = mypassword

3. Now Import Your Project
(assuming you’ve put your project files in /projects/mytestproj)
svn import /projectsToImport/mytestproj file://$REPO_URL/svnrepos/mytestproj

4. Start the SVN Server as Daemon, Lets Ahead
svnserve -d -r $REPO_URL
^^ -r is used to tell the server to refer to the REPO_URL directly.

now you have a SVN server running with one project named mytestproj.
Try checking it out of the repository:svn co svn://$YOUR_IP/svnrepos/mytestproj

original page
http://codefighters.blogspot.com/2009/02/svn-server-setup-tutorial-in-fedora.html

0 件のコメント: