Ubuntu14.04 installation Configuration svn and TRAC

Source: Internet
Author: User
Tags svn knowledge base

Or an intern, project management is very deficient, there will be a lot of problems, a painful lesson, decided to change the status quo, develop good project management habits, see many online tools, here try to use SVN for code versioning, using TRAC as a project management tracking. The operating system used in this article is ubuntu14.04, which is not difficult to configure.

1. Install the required software

The Linux operating system is easy to install as long as it is networked. Ubuntu uses Apt-get install directly for software installation. The required packages are the SVN Subversion,trac and the apache2 related packages. Put all your bags in a word.

sudo apt-get install apache2 subversion libapache2-svn trac Libapache2-mod-python  Libapache2-mod-python-doc

After installation, execute the following command.

A2enmod python

2. Configure the SVN server side

We need to create the Subversion user group and then join Apache2 's www-data users and their users to the user group.

-G subversion-awww--G subversion-a Quick

Then create the SVN root directory, where SVN's root directory is/HOME/SVN.

sudo mkdir/home//home/svn

Start to create your own knowledge base.

-R root:subversion promanage//    requiredfor www-$sudo chmod-r g+rws  promanage            //$ sudo svnadmin create/home/svn/promanage  

3. Configure SVN access mode

There are several ways to access the Subversion file repository, where you access the SVN file repository via the WebDAV protocol, and you need to configure Apache to add the following code to/etc/apache2/mods-available/dav_svn.conf.

<Location/svn/promanage>     DAV svn     /home/svn/promanage    authtype Basic      "Subversion Repository"    /etc/apache2/dav_svn.passwd     # to enable authorization via MOD_AUTHZ_SVN    authzsvnaccessfile/etc/apache2/Dav_svn.authz     Require Valid-user <

The/etc/apache2/dav_svn.passwd file is then created that contains the user authorization information and executes the following command when the SVN user needs to be added:

sudo htpasswd-c/etc/apache2/dav_svn.passwd user_name  //Replace the user_name here with the user name you need to add

After you execute this command, you are prompted for a password, and after you enter the password, the user is established successfully. You will then need to create a/etc/apache2/dav_svn.authz file to control access rights.

sudo vim/etc/apache2/dav_svn.authz

Enter the following:

[/]user_name=RW

The above content allows users to user_name the SVN repository with read and write permissions.

Now that SVN is configured, the Apache service needs to be restarted.

sudo service apache2 restart

You can use Http://hostname/svn/promanage to test whether the above configuration is correct.

4. Configuring the TRAC Environment

sudo trac-admin/home/trac initenv//  except project name (ProManage) and SVN warehouse path (/home/svn/-R root:www-data Trac    // Using www-data:www-

5. Configure the TRAC access mode

Like SVN, when you create an environment, TRAC also needs to configure its access methods, which can be used in the same way as SVN. Add TRAC configuration to the SVN configuration file.

sudo vim/etc/apache2/mods-available/dav_svn.conf

Add the following content:

<Location/trac/>    SetHandler mod_python    pythoninterpreter main_interpreter    Pythonhandler Trac.web.modpython_frontend    /home/trac/    /trac/    authtype Basic    "  Trac"    /etc/apache2/dav_svn.passwd require valid-     user</location>

After configuration, restart the Apache service.

sudo service apache2 restart

When you're done, enter Http://hostname/trac to see your project.

  

  

  

Ubuntu14.04 installation Configuration svn and TRAC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.