The Sysadmin Wiki
Advertisement

Subversion is a version control system.

Installation from Ubuntu's CLI[]

Installing an SVN server (remember to replace <user> with the user that needs access to the repository):

sudo apt-get install subversion
sudo mkdir /var/svn
sudo svnadmin create /var/svn/repo
sudo adduser --system --no-create-home --group svn
sudo chown -R svn:svn /var/svn
sudo chmod -R g+w /var/svn
sudo chmod g+s /var/svn
sudo usermod -G svn <user>

Now you can access the new repository on:

svn+ssh://hostname/var/svn/repo

Setting up users[]

Here's an example of setting up a user called test and adding it to the svn group:

sudo useradd -m -G svn test

Then you need to set up the authentication. If the clients are Windows machines, it would be recommended to use TortoiseSVN.

Advertisement