Category: Guide

Subversion 1.7 Debian

Update: Confirmed that this process works on svn 1.7.3 and 1.7.4, Works well on Debian Lenny (5.0) so if you have problems and your running Etch (4.0) or older please try and upgrade

At the time of writing Subversion 1.7.x wasn’t in the Debian Apt tree, and as i wanted to use the new HTTPv2 access method i decided to try my hand at building it from source.

I started with a bare bones Debian 6.0.3 box, the only non standard package i installed was ssh.

First off lets let apt-get do all the hard work when it comes to solving the dependencies for building SVN 1.7, we also may as well install Apache2 at this point. I have also added vim as its my text editor of choice for CLI

Be warned, for me i needed 477 (432mb) packages to this may take awhile to get and install

From here, lets use wget to grab the latest source package, the latest version should aways be listed on the Source Downloads on the Subversion website. at time of writing this is 1.7.1

Once this is done extract and install like any other package

Now if our like me you plan to use Apache2 need to copy the modules to the appropriate dir

Now to build a few config files, i prefer vim for my CLI text editing so i’m going to install it now, feel free to

Simple config just copy and paste the text below

Now lets enable the module and restart apache

If you don’t get any errors, Chances everything is installed and configured correctly, you can always use the –version switch on svn or svnadmin to confrim

So its installed, but lets setup a quick and dirty test repo to confrim that apache is working

Config for /etc/apache2/conf.d/svn_test

Restart Apache then you should be good to go

Now browse to http://your_server/svn and you should see a screen similar to the one below

What you should see in your browser

From here you have the worlds most basic SVN server setup, no restrictions or limitations but if your just installing something on your local pc/network this may be enough for you, I plan to follow this up with a post about how i migrated 200gb 300,000+ revision corporate repo from my old 1.6.x server to my new 1.7.1 server

Limit Apache Bandwith Debian

Install and Enable the mod

Apply config to vhost

Restart Apache

Install Crowd Apache2 Module

For all those who use Atlassian Products such as Jira or Confluence, you may or may not be familiar with Crowd now for anyone using Jira and Confluence it can allow you to use your existing user DB for multiple other systems, Personally i use it as a client access database to keep external users out of my AD database wherever possible while allowing internal users to still access these systems with their AD accounts.

With the right plug-in’s you can hook the system into pretty much everything, the most flexible one is the Apache 2 module, personalty i use it mostly as i had endless troubles getting recursive sub group lockups working with the free Apache modules floating around.

If you need to use a proxy, set it now

For Debian just copy and past the commands below, for other Distrobutions you will need to install the equivalent packages

Then to download, install and build the required modules the commands below should work.

From Here the Atlassian Article Integrating Crowd with Apache is the best place to go

Debian: Upgrade Svn 1.6.1 to 1.6.3

My Previous post Subversion 1.6 on Debian Lenny has been quite popular! So i thought i should post this next snippet for people, Its the process i used for upgrading my 1.6.1 setup as detailed in the previous post to 1.6.3.

The previous post pulled packages from the experimental branch, This one pulls from the Sid (unstable) branch as it is more up to date then experimental.

Below are the commands i used for a 64bit OS, dont have any 32bit SVN servers lying around anymore so i don’t have a system to work out the require 32bit packages but in theory it should be as simple as changing “amd64” to “i386” in all the URL’s below

You will need to restart Apache after the upgrade

Subversion 1.6 on Debian Lenny

Currently the Version of Subversion in Debian Lenny is 1.5.1, there are a few bugs in this that could be show stoppers if you are using a write through proxy setup for your SVN Repo’s as i have. There are two bugs that keep cropping up, one that is solved in 1.5.5, the other in 1.6, however if you want to use debian packages the easiest way i have found to install them is as follows

Update 1: Few people are having problems, this guide assumes your running lenny with the default svn packages already installed, to do this try running the command below to install the latest version from apt (1.5.x as i write this) including the required Apache modules

Update 2: New post on how to extend this guide to go from svn 1.6.1 to svn 1.6.3 – Debian: Upgrade Svn 1.6.1 to 1.6.3

Update 3:This post was originally just some notes for me on highly critical production servers that all had to be running exactly the same versions and i had to have a very controled upgrade, However google sends a few hundred people here a month! So i thought id include the better general way that has been in the comments for awhile

Update 4: Guide now available for SVN 1.7

The best way are the commands below.

Original Post

32Bit

64 Bit

Install VMware Tools – Debian Lenny

Quick tip for anyone running Debian Lenny under VMware. As the tools were open sourced you can now find an implementation in your apt tree. Although personally i haven’t seen a quick and easy guide floating around.

Run the fowling as root

Update!: If you are getting out of date tools in your vmware see this comment for an explination