Detailed steps to update svn to Subversion1.7 in the Debian wheezy:
1. Add the following warehouses to the/etc/apt/sources.list:
Deb Http://opensource.wandisco.com/debian/wheezy svn17
2. Download the key for the repository from HTTP://OPENSOURCE.WANDISCO.COM/WANDISCO-DEBIAN.GPG and add it to apt-key using the following command:
sudo wget-o-http://opensource.wandisco.com/wandisco-debian.gpg | sudo apt-key add-
3. You can see the added key by Apt-key list:
$ sudo apt-key list
/etc/apt/trusted.gpg
--------------------
Pub 1024d/3bbf077a 2010-02-18
UID WANdisco (http://WANdisco.com-We make software happen ...) <[email protected]>
Sub 2048g/955da6aa 2010-02-18
4. You can now update the APT cache and install the new Subversion version: If you have an older version of sudo apt-get autoremove subversion
Apt-get Update && Apt-get Install Subversion
5. Check the SVN version after installation:
$ svn--version
This can already be accessed via SVN co svn://192.168.60.10/project: http://www.ha97.com/4467.html
From:http://git.devzeng.com/blog/aliyun-ubuntu-svn-server
Install apache2 in order to configure SVN server support over HTTP access. html
sudo apt-get install apache2 libapache2-svn
1, the relevant user, group settings
sudo addgroup subversion
sudo usermod-g subversion-a www-data
2. Create a catalog of projects
sudo mkdir/home/svn
3. Configuring Subversion
(1) Configuring the dav_svn.conf file
Vim/etc/apache2/mods-available/dav_svn.conf
Follow the steps below to configure
<1> Delete <Location/svn> and DAV svn in front of these two lines of comments
<2> Delete Svnparentpath ... The previous comment, and replace the following path with the created SVN project path/HOME/SVN
<3> Delete comments in front of AuthType Basic, authname "Subversion Repository",
Remove the comment in front of the line where the AuthUserFile is located, and modify the following path to/ETC/SUBVERSION/DAV_SVN.PASSWD,
Remove the comment in front of the line where the Authzsvnaccessfile is located, and modify the following path to/etc/subversion/dav_svn.authz,
Delete require Valid-user and previous comments,
which
The/etc/subversion/dav_svn.passwd file is the SVN username and password configuration, specifying the location of the password file where basic user authentication is stored
/etc/subversion/dav_svn.authz files are access rights configuration
(2) Restart Apache2 Web server sudo/etc/init.d/apache2 restart
4. Create SVN file repository
(1) Create the specified project storage path
Cd/home/svn
mkdir Project1
(2) Change the users, groups as shown by the repository
sudo chown-r root:subversion Project1
(3) Create SVN repository
sudo svnadmin create/home/svn/project1
(4) Give group members permission to all files newly added to the file repository
sudo chmod-r g+rws Project1
5. User and Permission Configuration
(1) Create a dav_svn.passwd file and add user admin001, you will be prompted to enter the password after executing the command
sudo htpasswd-c/etc/subversion/dav_svn.passwd admin001
Continue to add new users, remove-C, otherwise you will overwrite this file
sudo htpasswd/etc/subversion/dav_svn.passwd admin002
(2) Create an authorization file
Vim/etc/subversion/dav_svn.authz
Add the Project1 permission configuration, as
[Groups]
Server=usr1
Common=usr1,usr2
Client=usr2
[projd:/]
@server =RW
* =
6. Restart the SVN server
Killall Svnserve
Svnserve-d-r/home/svn/
The SVN server is now complete and can be executed at the terminal
SVN checkout http://hostname/svn/project1 Project1--username user name--password password to checkout the project
Related issues
1. Apache and Tomcat port number conflicts
(1) Modify the/etc/apache2/ports.conf file to change listen 80 to listen 8080 for listening on 8080 ports or other available ports
(2) Modify the/etc/apache2/sites-enabled/000-default file, modify <VirtualHost*:80> change to <VirtualHost*:8080>
2. Shutting down and starting the Tomcat server
(1) Close: Sudo/etc/init.d/tomcat stop
(2) Start: Sudo/etc/init.d/tomcat start
Debian Build SVN server