SVN in five easy steps
8 02 2008I was setting up a subversion repository for personal usage and I though it would be be nice to share the necessary steps for a simple ssh+svn access configuration for a Ubuntu based system. Beware that this is probably the simplest svn setup possible, but actually it mets my requirements: simple, fast and secure. So here it goes:
- Install subversion package:
- Add subversion group:
- Add users to this group:
- Create basic directory structure and set permitions. Basic assumption are that main svn dir will be located in /home/svn/ and sample svn project will be called simply project
- And finally create your project:
sudo apt-get install subversion
sudo addgroup subversion
sudo vim /etc/group
Find subversion group created and add yourself (and others) to the group.
cd /home/
sudo mkdir svn
cd svn/
sudo mkdir project
sudo chgrp -R subversion project/
sudo chmod -R g+rws project/
sudo svnadmin create /home/svn/project/
Voila, it’s done! You can access it with the command:
svn co svn+ssh://[sshuser]@[hostname]/home/svn/project/
Happy versioning! ![]()





