I put together a script that will automate the installation and setup process of Subversion and Apache2 on Ubuntu. This script follows all the steps outlined in my Subversion tutorial which can be found here.

A few things to point out:

  1. The subversion repository will be created at the root in a folder named “/svn”.
  2. The script will download a new dav_svn.conf file from my server that has been modified for the script.
  3. SSL is not used.

The script requires 4 arguments.

  1. The Username of the Subversion Authenticated user to create.
  2. The Password of the Subversion Authenticated user to create.
  3. The folder to add to the new Subversion repository.
  4. The name of the new Subversion project.
sh setup_subversion.sh [username] [password] [folder_path] [project_name]

Here is an example:

sh setup_subversion.sh jesse mypassword /home/jesse/myproject myprojectname

This script has only been tested on Ubuntu 6.10 Edgy Eft. If anyone runs the script successfully on another version of Ubuntu or another Linux distribution please let me know. Also, I am 99.999% 100% positive that the script will work on Ubuntu 6.06 Dapper Drake.

Update: I have been informed that the script is compatible with Ubuntu 6.06 Dapper Drake.

Note: A script for Ubuntu 7.04 Feisty Fawn has been added.

Pick your version of Ubuntu:

6.06/6.10 Script or 7.04 Script

« »