Saturday, October 10, 2009

Install subversion in Ubuntu

Subversion is a software solution for group collaboration on writing code. The idea is that an individual will "check out" a chunk of code to work on. This way other users won't also work on the same bit of code and the project will run into version problems. To get this configured in Ubuntu is an easy process.

First, install subversion:
$ sudo aptitude update && sudo aptitude -y install subversion
Create a group to use with your project:
$ sudo groupadd [groupname]
Now you'll have to add each user to that group you just created:
$ sudo usermod -aG [groupname] [username]
Create a directory to house the code:
$ sudo mkdir /home/svn/[project]
Set ownership of the code directory:
$ sudo chgrp -R [groupname] /home/svn/[project]
Set permission for the code directory:
$ sudo chmod -R g+rws home/svn/[project]
Tell the subversion controller about the project directory:
$ sudo svnadmin create /home/svn/[project]
For more information of subversion, check out this page from the Ubuntu documentation.

No comments:

Post a Comment