告别windows了。想买个mac,无奈囊中羞涩。之前用过ubuntu,感觉不错,所以直接K掉win7,安装ubuntu10.04。
记录一下ubuntu中svn的配置:
1.安装必须的软件包
sudo apt-get install subversion
sudo apt-get install libapache2-svn
sudo apt-get install apache2
2.创建版本仓库
svnadmin create /home/flying/Library
3.添加用户
htpasswd -c /home/flying/Library/conf/passwd flying
4.配置APACHE配置文件
sudo gedit /etc/apache2/mods-available/dav_svn.conf
添加如下代码:
<Location /Library>
DAV svn
SVNPath /home/flying/Library
AuthType Basic
AuthName “flying”
AuthUserFile /home/flying/Library/conf/passwd
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Location>
5.重启APACHE,登录验证
sudo /etc/init.d/apache2 restart
OK!
小卒还需历练。。。