My SVN setup is this. First, you should have openssh-server and subversion
Code:
sudo apt-get install subversion openssh-server
Then, I create a user and group svn, and place yourself in the group.
Code:
sudo adduser svn
sudo addgroup svn
sudo adduser YOUR_USERNAME svn
By adding the user svn, you should have /home/svn now. This is where I suggest placing your repositories. The reason I like to place all my SVN repos in /home/svn is because when I do backups, I only back up /home /etc and /opt. I keep all my "dynamic" content in one of those places. The rest of my system doesn't really need to be backed up.
So, you might create a repo to hold your documents like so:
Code:
cd /home/svn
sudo svnadmin create documents
Unfortunately, root now owns that repo, and we don't want that, so:
Code:
sudo chown svn:svn /home/svn/documents -R
Now, since you already added yourself to the SVN group, you should have the rights to the repo. Your repo URL is:
Code:
svn+ssh://yourserver.com/home/svn/documents/
Of course, ssh must be running before accessing it, so you may need to do this before accessing it the first time:
Code:
sudo /etc/init.d/ssh start
Hope that helps.
Bookmarks