Ubuntu11.10 install the svn server process notes. If you install Apache2 (if not, install it), perform the following steps: 1. Install related software sudoapt-getinstallsubversionsudoapt-getinstalllibapache2-svn 2. Related configuration 1. Add a group and add the user to the group sudoaddgroupsubversionsudo
Notes on installing the svn server in Ubuntu 11.10. If you want to install Apache2 (if not installed, it will be OK after installation), perform the following steps:
1. Install related software
Sudo apt-get install subversion
Sudo apt-get install libapache2-svn
Ii. Related Configuration
1. Add a group and add users to the group.
Sudo addgroup subversion
Sudo usermod-G subversion-a www-data
You can also directly use the command to edit the group file "sudo vi/etc/group" to add groups and Members.
Sudo vi/etc/group
Check the result:
Cat/etc/group | grep subversion
Subversion: x: 1001: www-data
2. Run the following command:
Sudo mkdir/home/svn
Cd/home/svn
Sudo mkdir myproject
Sudo chown-R root: subversion myproject
3. The following command is used to create an SVN File Repository:
Sudo svnadmin create/home/svn/myproject
4. Grant the group members the following permissions to all new files added to the file warehouse:
Sudo chmod-R g + rws myproject
5. view the permissions, users, and group information of the txn-current-lock file, which should be similar:
Ls-l/home/svn/myproject/db/txn-current-lock-rw-rwSr -- 1 root subversion 0 txn-current-lock
6. direct access to the file warehouse
Svn co file: // home/svn/myproject or svn co file: // localhost/home/svn/myproject
3. Access through WebDAV protocol
1. To access the SVN File Repository through the WebDAV protocol, you must configure your Apache 2 Web server. You must add the following code snippet to your/etc/apache2/mod-available/dav_svn.conf file:
DAV svn SVNPath/home/svn/myproject
AuthType Basic
AuthName "myproject subversion repository"
AuthUserFile/etc/subversion/passwd
Require valid-user
2. Restart The apache2 server.
Sudo/etc/init. d/apache2 restart
3. Next, create the/etc/subversion/passwd file, which contains the details of user authorization. To add a user, run the following command:
Sudo htpasswd-c/etc/subversion/passwd user_name
4. It will prompt you to enter the password. When you enter the password, this user will be created. The "-c" option indicates creating a new/etc/subversion/passwd file. Therefore, user_name indicates that the user is the only user in the file. To add other users, remove the "-c" option:
Sudo htpasswd/etc/subversion/passwd other_user_name
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2