Ubuntu系统上svn的安装与配置
1 安装Subversion package:
$ sudo apt-get install subversion
$ sudo mkdir /usr/local/svn
$ sudo mkdir /usr/local/svn/repos
$ sudo groupadd svn
$ sudo chgrp svn /usr/local/svn/repos
$ sudo chmod g+w /usr/local/svn/repos
$ sudo chmod g+s /usr/local/svn/repos
$ sudo usermod -a -G svn bupt
$ groups
$ sudo usermod -a -G svn ben $ sudo usermod -a -G svn ubuntu
$ umask 002
$ svnadmin create /usr/local/svn/repos/test
$ umask 022
$ svn checkout file:///usr/local/svn/repos/testChecked out revision 0.
$ cd test $ echo 'Hello, World!' > hello.txt
$ svn add hello.txtA hello.txt
$ svn commit -m "Added a 'hello world' text file." Adding hello.txt Transmitting file data . Committed revision 1.
$ sudo gedit /usr/local/svn/passwd-team
[users] michal = somepassword jimmy = anotherpassword craig = yetanotherpassword
$ sudo chmod 600 /usr/local/svn/passwd-team
$ gedit /usr/local/svn/repos/test/conf/svnserve.conf
[general] anon-access = none password-db = /usr/local/svn/passwd-team realm = Team
$ sudo svnserve -d --foreground -r /usr/local/svn/repos
$ svn checkout svn://192.168.10.11/test --username jimmy
Authentication realm: <svn://192.168.10.11:3690> Team Password for 'jimmy':
A test/hello.txt Checked out revision 1.
$ cd test $ gedit hello.txt
$ svn commit -m "Modified the hello.txt file." Sending hello.txt Transmitting file data . Committed revision 2.
<?xml version="1.0" encoding="UTF-8"?><faceted-project><runtime name="Apache Tomcat v7.0"/><fixed facet="jst.web"/><fixed facet="jst.java"/><installed facet="jst.java" version="7.0"/><installed facet="jst.web" version="2.6"/></faceted-project>
<?xml version="1.0" encoding="UTF-8"?><faceted-project> </faceted-project>