Difference between revisions of "Subversion"
From Linuxintro
imported>WikiSysop |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
− | To set up a subversion server, install the subversion software | + | It has been tested with SUSE Linux 11, but should work for other configurations as well. |
+ | To set up a subversion server, install the subversion software: | ||
+ | yast -i subversion | ||
+ | Then add a subversion user and its group: | ||
useradd -m svn | useradd -m svn | ||
groupadd svn | groupadd svn |
Revision as of 06:45, 11 October 2008
It has been tested with SUSE Linux 11, but should work for other configurations as well. To set up a subversion server, install the subversion software:
yast -i subversion
Then add a subversion user and its group:
useradd -m svn groupadd svn
Find out where subversion expects its repository
/etc/init.d/svnserve start Starting svnserve svnserve: Root path '/srv/svn/repos' does not exist or is not a directory. failed
Create the respective directory
svnadmin create /srv/svn/repos
Start the subversion server
/etc/init.d/svnserve start
Run it
svn co svn://localhost Checked out revision 0.
Now add user rights management to your subversion. Modify /srv/svn/repos/conf/svnserve.conf:
anon-access = read auth-access = write password-db = passwd realm = My First Repository
Check out your repository using
svn co svn+ssh://root@localhost/srv/svn/repos/ Password: Password: Checked out revision 0.
Add your first directory
cd repos/ ls .svn svn mkdir trunk A trunk svn commit -m "myfirst" Password: Adding trunk Committed revision 1.