Fedora Subversion and Tortoise Howto

In the developer’s world today, a common collaborative area is needed for developers to share code. Recently subversion has become the rising solution for this, which has all of the features of its predecessor CVS (Concurrent Versioning Systems), and more.

Configuration

Fedora 7 - basic install 512 mbs ram
2.4 ghz processor
8 gigs harddrive
1 NIC

Network Information:

IP address: 142.25.97.138

Subnet Mask 255.255.255.0

So lets start off with a machine semi-ready to install the apache/subversion platform.

yum update

Next up, lets install httpd, subversion and mod_dav_svn

yum install httpd subversion mod_dav_svn

 

Now that everythings installed, commence the configuration:

Navigate to /var/www/ and make the following folders:

cd /var/www/
mkdir repos
mkdir itas
mkdir private
mkdir permissions

In repos create the repository public with this command:

svnadmin create public

In private create the repository private

svnadmin create private

In itas create the repository itas

svnadmin create itas

Now we need to have apache have acess to all those files. Use the chown command for all those folders you made in /var/www/

chown -R apache.apache /repos

Now lets make that password file

htpasswd -cb secret_file ronnie fluffy

**ronnie is the username fluffy password

This file will be for the permissions so vi /var/www/permissions/svnauthz.conf

[groups]

##NOTE THESE ARE THE ADMIN USERS YOU CREATED WITH THE HTPASSWD COMMAND
svn-admins = admin, brashr

########################################################
## Repository: DEFAULT since this is the only repos thats using permissions
########################################################
[/]
@svn-admins = rw
* = r
Navigate to /etc/httpd/conf.d and vi subversion.conf

That file there is the powerhouse of this operation Let me explain:

#These here load specific modules by default.

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

#=====================================================
#PUBLIC REPO
#=====================================================

# This here if you type in just an your ipaddress/repos/public/ anyone can see this repo

<Location /repos>
DAV svn
SVNParentPath /var/www/repos
</Location>

#=====================================================
#PRIVATE REPO
#====================================================

# This here if you type in just an your ipaddress/private/private/ anyone can see this repo
# if they they have the correct permissions
.

<Location /private>
DAV svn
SVNParentPath /var/www/private
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /var/www/permissions/secret_file

AuthzSVNAccessFile /var/www/permissions/svnauthz.conf

#NOTICE THE SVNAUTZ.conf file that is for permissions and groups
Require valid-user
</Location>

#===================================================
#ITAS ONLY REPO
#==================================================

# This here if you type in just an your ipaddress/itas/itas/ anyone can see this repo
# if they they have the correct permissions&are on the correct network.

<Location /itas>
DAV svn
SVNParentPath /var/www/itas
AuthType Basic
AuthName "Authorization Realm"
Order deny,allow
Deny from all
Allow from 142.25.97
AuthUserFile /var/www/permissions/secret_file
Require valid-user

</Location>

Testing:

Enter into your browser type the server address/repos/public/ and there should be a gaint
across your screen similar to below:

Revision 0: /

Powered by Subversion version 1.4.3 (r23084).

With the other ones requiring authentication, theres shall be a prompt for username and password. Then you will be forwarded to the next page upon authentication.

 

Installing Tortoise In Windows

 

A Subversion client, implemented as a windows shell extension.

TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows.
Since it's not an integration for a specific IDE you can use it with whatever development tools you like.
TortoiseSVN is free to use. You don't need to get a loan or pay a full years salary to use it.

-Exerp from their site.

Instructions

Get it from http://tortoisesvn.net/downloads

Download and install tortoise

Notice that svnTortoise is intergrated into Windows Explorer . I used it through My Network Places right clicked on the icon and a svntortoise option will come up in a menu. Then put in the location of the svn repository and presto :)

Let the good times roll!

 

 

Resources:
http://www.ferdychristant.com/blog/articles/DOMM-6NFJ6J
http://kagesenshi.blogspot.com/2007/02/howto-setting-up-svn-and-dav-in-fedora6.html
http://svn.haxx.se/users/archive-2006-01/0664.shtml

Blog tags: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.