Use Debian to build the subversion server-Linux Release Technology-Debian information. The following is a detailed description. Installing subversion under Debian testing is quite simple. Install the software first (all of which are assumed to be super users ):
Aptitude install subversion
Create a local svn repository. Assume that all svn projects are placed under/var/local/svn, and each project has a unique directory.
Mkdir-p/var/local/svn/proj1
Mkdir-p/var/local/svn/proj2
Svnadmin create/var/local/svn/proj1
Svnadmin create/var/local/svn/proj2
The svn server has many connection methods. In the past, I used to connect to the server through ssh. In this case, no special configuration is required. You only need to set the read and write permissions for the directory, it is very convenient for a single user. However, if multiple users work collaboratively, ssh can only be used for permission control through the operating system. Therefore, user management is very troublesome. Therefore, this attempt uses the http connection method to manage user permissions on the web server.
To use http, install apache first:
Aptitude install apache2
Next, you need to install the svn component:
Aptitude install libapache2-svn
Then apache needs to have the permission to read and write the svn Repository:
Chown-R www-data: www-data/var/local/svn
You also need to modify the configuration file/etc/apache2/mod-available/dav_svn.conf: