Detailed steps for installing Trac + Subversion + Apache in Ubuntu: 1. install svn: $ sudoapt-getinstallsubversion $ sudoapt-getinstalllibapache2-svn // This is the apache installation part, you do not have to install this if you do not use the http protocol. 2. configure the svn server: first, create the subversion user group and set
Detailed steps for installing Trac + Subversion + Apache in Ubuntu:
1. Install svn:
$ Sudo apt-get install subversion
$ Sudo apt-get install libapache2-svn // This is the apache installation part, you do not have to install this if you do not use the http protocol.
2. Configure the svn Server:
First, create a subversion user group and add both www-data and yourself to the group. (you can choose system> System Management> users and groups from the Ubuntu menu ).
Second, create the svn root location,
$ Sudo mkdir/home/svn
$ Cd/home/svn
Then, start a new knowledge base,
$ Sudo mkdir myproject
$ Sudo chown-R root: subversion myproject // here you need to add permissions to www-data, because apache is used later.
$ Sudo chmod-R g + rws myproject // This is to grant the members of the group the corresponding permissions on all files added to the File Repository.
$ Sudo svnadmin create/home/svn/myproject // start a new knowledge base
Finally, set user authentication,
$ Sudo vim/home/svn/myproject/conf/svnserve. conf // uncomment # [general] And # password-db = passwd, which indicates that the passwd file in the same directory is used as the password database.
$ Sudo vim/home/svn/myproject/conf/passwd // Add the admin user and password.
3. Use the svn client:
Here we only introduce two methods. Assume that the working directory is located under/home/cyndi/work.
$ Svn co file: // home/svn/myproject // This is accessed when the client and server are on the same machine.
$ Svn co svn: // 10.28.158.20./ home/svn/myproject-username admin
In addition, to simplify the directory when the client accesses the knowledge base, you can enable daemon on the server,
$ Svnserve-d-foreground-r/home/svn
In this way, client access can be simplified,
$ Svn co svn: // 10.28.158.20./ myproject-username admin
For detailed svn installation and setup, refer to: http://wiki.ubuntu.org.cn/SubVersion