April 8, 2012

Quick Configure Subversion on Ubuntu 11.10 oneiric

Subversion is quiet good version control system, used by many developers across the world and is awesome!
I searched throughout Google to find a simple guide to deploy a least working subversion just to see it and was unable to.

(Note: use sudo whenever required.)
To install and get a simple up and running subversion on Ubuntu:
First install subversion packages

sudo apt-get install subversion libapache2-svn

After packages got installed, you need to create repositories.
To create a repository, I used my home directory.

mkdir /home/kaustubh/project1

Then create a repository

sudo svnadmin create /home/kaustubh/project1

Then open repository/conf/svnserve.conf (/home/kaustubh/project1/conf/svnserve.conf in my case) in your favorite text editor.
uncomment following parameters in the file. (Note: There should be no spaces before or after any parameter line. The svnserve will then be unable to read the config.) Most commonly made mistake.

auth-access = write
password-db = passwd

Then open repository/conf/passwd (/home/kaustubh/project1/conf/passwd in my case) in your favorite text editor.
Add lines below everything in following format

username = password

Its time to fire up the server
Enter following to start the server and after its started, use ctrl+c to kill the server.

svnserve -d --foreground -r /home/kaustubh

Here, -d means demon mode, --foreground means it will run in foreground, -r specifies path to repository.

Now you can easily connect to your repository using

svn://servername/project1

You will have to enter username and password mentiond in your repo/conf/passwd file.

Labels: , ,

2 Comments:

At July 4, 2012 at 11:44 PM , Blogger Ganesan K said...

http://techgane.in/how-to-install-configure-subversion-ubuntu/

 
At July 6, 2012 at 4:23 PM , Blogger KG said...

Ganesan K
Nice article for accessing svn over http.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home