Set up SVN in Ubuntu
来源:互联网 发布:c语言爱心的代码 编辑:程序博客网 时间:2024/06/05 10:02
In Ubuntu, the easiest way to do version control is to set up a Subversion (SVN) server.
After several tries i did, the following steps should be works on Ubuntu 11.04 desktop version!
- Install SVN and Apache
sudo apt-get install subversion libapache2-svn
- Create a directory to hold your repository.
sudo svnadmin create /var/lib/svn
- Give apache the access right to the repository
sudo chown -R www-data:www-data /var/lib/svnsudo chmod 770 -R /var/lib/svn
- Configure Apache for SVN access
vi /etc/apache2/mods-available/dav_svn.conf
Uncomment the codes by removing the ‘#’ in front of the following lines:
<Location /svn>
…
DAV svn
…
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd
…
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
If you have only one repository for your SVN, uncomment the following line
SVNPath /var/lib/svn
Else if you are setting up multiple repositories, uncomment this line
SVNParentPath /var/lib/svn
Remember that at any time, only SVNPath or SVNParentPath is uncommented. Do not uncomment both at the same time. - Create a password for your username
sudo htpasswd -cm /etc/apache2/dav_svn.passwd yourusername
- Restart apache
sudo /etc/init.d/apache2 restart
If you met "No apache MPM package installed" error message, you need to run the below CMD:sudo apt-get install apache2
Now open your browser and go to http://localhost/svn. If you see the following, the your installation is successful.
- Set up SVN in Ubuntu
- How-To: Set up SVN with Apache2 in Linux (Ubuntu)
- Set up JAVA_HOME & CLASSPATH in Ubuntu
- How To Set Up Database Replication In MySQL On Ubuntu
- How to Set Up SSH Keys In Ubuntu
- set up UBUNTU 7.10
- Set up axis2 in Jboss
- Set up Project in BF
- Set up SVN server on CentOS
- Setting up Minicom in Ubuntu
- Set up the VNC Server in Fedora
- set up pxe server in uefi mode
- Chinese Input Methods in Ubuntu 14, 13, 12, 11, and 10(How to Set Up Ubuntu Chinese IMEs)
- ubuntu 14.04 dev environment set up
- svn up遇到Conflict discovered in ‘*****’问题
- svn command in Ubuntu
- Setting up Qt Development in Ubuntu 9.04
- Setting Up a Telnet Server in Ubuntu
- 对象初始化方式及顺序
- WCF 方面
- Window frames[]集合
- Model1 Model2 M V C
- 使用SqlCommand执行SQL语句
- Set up SVN in Ubuntu
- Manacher算法--O(n)回文子串算法
- Intent的简介以及属性详解
- 人人网昨晚爆发XSRF安全漏洞
- 用poi处理excel文件异常:java.io.IOException: Invalid header signature; read 2338042707334752323
- C# 方面专家
- 使用SqlDataReader来操作数据库
- 黑马程序员_一些常用的类
- 关于程序退出无法关闭所有界面问题 通过广播使Android程序完全退出