Go Back   TechArena Community > ARENA > Guides & Tutorials
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to Install of Subversion (SVN) on Ubuntu

Guides & Tutorials


Reply
 
Thread Tools Search this Thread
  #1  
Old 07-07-2009
Member
 
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

Reply With Quote
  #2  
Old 07-07-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > ARENA > Guides & Tutorials
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Install of Subversion (SVN) on Ubuntu"
Thread Thread Starter Forum Replies Last Post
How to run Multiple Projects on Subversion Server on CentOS. B?rbel Operating Systems 6 12-05-2011 07:36 PM
how to install c on ubuntu Mast Maula Operating Systems 5 03-01-2011 04:04 PM
What is SVN ( Subversion ) dan-dan Operating Systems 4 19-09-2009 06:14 PM
Install IE in Ubuntu KDE_RuLeZ Operating Systems 3 31-08-2009 07:34 PM
Gnome Subversion for integration with Nautilus KDE_RuLeZ Operating Systems 3 14-08-2009 11:36 PM


All times are GMT +5.5. The time now is 03:19 PM.