SVN in five easy steps

8 02 2008

I 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:

  1. Install subversion package:
  2. sudo apt-get install subversion

  3. Add subversion group:
  4. sudo addgroup subversion

  5. Add users to this group:
  6. sudo vim /etc/group
    Find subversion group created and add yourself (and others) to the group.

  7. 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
  8. cd /home/
    sudo mkdir svn
    cd svn/
    sudo mkdir project
    sudo chgrp -R subversion project/
    sudo chmod -R g+rws project/

  9. And finally create your project:
  10. 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! :)



Sony Playstation 3

3 02 2008

And the gadget saga continues: now I bought a PS3!

PS3