Title, divided into 3 parts:
1, SVN server Setup. Operating system Ubuntu 14.04.2 LTS. The specific method degree Niang many, no longer the fine number.
Installation: sudo apt-get install subversion
Create repository: sudo mkdir/home/svn/repo,svnadmin create/home/svn/repo
It is important to note that the permissions for the file directory are to be integrated with Apache2, so the permissions are using www-data:subversion,755
2, the installation of APACHE2 related modules.
Installation: sudo apt-get install LIBAPACHE2-SVN
Enable the relevant module in Apache2: Ln-s. /mods-available/dav_svn.conf/etc/apache2/mods-enabled/dav_svn.conf. Modules that need to be enabled are:/etc/apache2/mods-enabled, Dav_fs.load, Authz_svn.load, dav_svn.conf, Dav_svn.load, Dav.load
Modify the relevant configuration: dav_svn.conf, note the location of the configuration of a directory, two files (for authentication). The 7th line let me go a lot of detours, the default dav_svn.conf in this line is Mod_authz_ SVN.C, after removing the comment how can not enable permission control in Apache2, until inadvertently found that the module is authz_svn.load, instead of Mod_authz_svn.load, try to delete the Mod_ prefix, succeeded.
Dav_svn.conf:
<Location/rep>
DAV SVN Svnpath/home/svn/repo
AuthType Basic
AuthName "My Repository"
authz_svn.c> Authzsvnaccessfile/home/svn/dav_svn.authz </IfModule>
Require Valid-user
</Location>
/HOME/SVN/DAV_SVN.PASSWD: You need to install apache2-utils after you use htpasswd-c/var/svn/repos/conf/passwd test1 New User (the first user to add the-C parameter)
/home/svn/dav_svn.authz:
[groups] Admin=useradevelop=userbtester=UserC[/]@ Admin=rw[Project1]@Develop=rw@tester=r
Last reboot apache2 effective.
3. Using SVN in eclipse requires the SVN plugin to be installed: now version 1.10. url:http://subclipse.tigris.org/update_1.10.x. The plug-in is small, but the network is slow.
New project you can right-click on the project, select Team->share Project, and follow the prompts to create a new project.
If the permission is valid, a prompt will be prompted to enter the account password.
svn-Server Building, apache2 integration, Eclipse usage