个人工具
登录
查看“UbuntuHelp:SubversionInstall”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:SubversionInstall”的源代码
来自Ubuntu中文
←
UbuntuHelp:SubversionInstall
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/SubversionInstall}} {{Languages|UbuntuHelp:SubversionInstall}} [http://subversion.tigris.org Subversion], also known as svn, is a version control system much like the Concurrent Versions System (CVS). Version control systems allow many individuals (who may be distributed geographically) to collaborate on a set of files (typically source code). Subversion has all the major features of CVS, plus certain new features that CVS users often wish they had. In the following the installation of Subversion on a Feisty-Release is written down. === Apache Installation === To use Subversion via the http or https protocol, you need apache installed on your server. Install Apache2 according to the description on [ApacheMySQLPHP]. === Subversion Installation === Please use the following commands for installing Subversion on the server. <pre><nowiki> apt-get install subversion apt-get install subversion-tools apt-get install libapache2-svn </nowiki></pre> This installs Subversion as well as the needed Apache Module. This module must run, if you would like to use apache and svn. === Configuration === To use Subversion in combination with apache2, you need to configure Apache. Add the file svn.conf with the following content to the directory /etc/apache2/conf.d: <pre><nowiki> <Location "/svn"> Dav svn SVNParentPath /var/svn AuthType Basic AuthName "SVN Repositories" AuthUserFile /etc/apache2/dav_svn.passwd AuthzSVNAccessFile /etc/apache2/dav_svn.authz # The following three lines allow anonymous read, but make # committers authenticate themselves. <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location> </nowiki></pre> To create the file dav_svn.passwd, please use the htpasswd2 program. This will allow you to use a basic authentication for the subversion repositories. With the AuthzSVN Access File you can restrict access of certain users to specific repositories. This file can look like: <pre><nowiki> [groups] devs = tester [/] * = r [sample:/] tester = rw [testproject:/] @devs = rw </nowiki></pre> The beforementioned file will restrict the usage of the Subversion directory to all users in the group devs (username is tester here). All other users can only read the repositories. All SVN-Projects are stored in the directory /var/svn. You can create new SVN-projects using the commandline tool svnadmin (see [http://svnbook.red-bean.com/en/1.0/ch05s02.html Subversion Red Book]) Now you can reach all your SVN projects via <pre><nowiki> http://<SERVERNAME>/svn/<PROJECTNAME>. </nowiki></pre> To use another web-interface, you can also install websvn <pre><nowiki> apt-get install websvn </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:SubversionInstall
。