Results 1 to 2 of 2

Thread: How to Install of Subversion (SVN) on Ubuntu

  1. #1
    Join Date
    May 2008
    Posts
    420

    How to Install of Subversion (SVN) on Ubuntu

    I finished installing my server, for my freelance with Subversion. And to be sure I will not forget how, I am writing what I did following the tutorial I found on the Internet.

    1. Installing Ubuntu Server with no options to select LAMP or DNS Server

    2. In my case, which has a 40GB HD in, divide the partitions as follows:
    255MB, swap
    05GB, /
    04GB, / usr
    10GB, / srv
    20GB, / home

    The first item is the size of the partition and the second mount point. Apart from the swap partition, I am using EXT3 file system at all.

    3. Installing Apache and SVN:

    Code:
    sudo apt-get install apache2 subversion libapache2-svn
    4. Create the directory where are the repositories of SVN:

    Code:
    sudo mkdir / srv / svn
    5. Create the repository. Here would be a good time to restore the backup, if applicable:

    Code:
    sudo svnadmin create / srv / svn / repository ()
    6. Apache to provide access to these directories:

    Code:
    sudo chown-R www-data: www-data / srv / svn
    7. Configure the module from subversion webdav

    Code:
    sudo vi / etc/apache2/mods-enabled/dav_svn.conf
    1. Uncomment the tag <Location /svn>. At the beginning and end of the file.
    2. Uncomment the option DAV svn
    3. Uncomment the option SVNParentPath / var / lib / svn and change the path to the location of the repository: / srv / svn. This was chosen instead of SVNPath to have more of a repository in the same folder.
    4. Uncomment the option AuthzSVNAccessFile / etc/apache2/dav_svn.authz. To enable you to control access to projects using the file information.
    5. Uncomment to enable the authentication, the three lines:

    • AuthType Basic
    • AuthName "Subversion Repository"
    • AuthUserFile / etc/apache2/dav_svn.passwd
    • Add the line: Require valid-user
    • Save the file. To do this, press the ESC key type ": WQ" without the quotes and press enter



    8. Create a user to acessr the SVN:

    • sudo htpasswd-cm / etc/apache2/dav_svn.passwd <username>
    • The parameter-c is only required for the first user, it is used to create the file. For the following addresses only the-m, which is used to encrypt the password with MD5.


    9. Restart apache

    Code:
    sudo / etc/init.d/apache2 restart

  2. #2
    Join Date
    May 2008
    Posts
    420

    Re: How to Install of Subversion repository

    1. Exclude packages from base subversion repositories

    a. Open the base CentOS repository configuration file
    Code:
    / etc / yum.repos.d / CentOS-Base.repo
    b. Append the following text to all repositories
    Code:
    exclude = subversion
    c. Yum restart the service (run the following command)
    Code:
    service yum-updatesd restart

    2. Install Subversion
    Code:
    yum install subversion

Similar Threads

  1. Replies: 6
    Last Post: 12-05-2011, 07:36 PM
  2. how to install c on ubuntu
    By Mast Maula in forum Operating Systems
    Replies: 5
    Last Post: 03-01-2011, 05:04 PM
  3. What is SVN ( Subversion )
    By dan-dan in forum Operating Systems
    Replies: 4
    Last Post: 19-09-2009, 06:14 PM
  4. Install IE in Ubuntu
    By KDE_RuLeZ in forum Operating Systems
    Replies: 3
    Last Post: 31-08-2009, 07:34 PM
  5. Gnome Subversion for integration with Nautilus
    By KDE_RuLeZ in forum Operating Systems
    Replies: 3
    Last Post: 14-08-2009, 11:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,620,829.85408 seconds with 17 queries