Setup Subversion on Ubuntu in 10 minutes
Today I decided to take on the geekiest of tasks - setting up my own Subversion repository to check in files from my home directory. Normally, I use a third party Subversion service, as others can generally manage an svn instance better than oneself, however for this data, I want it to reside on my own server. On my server I executed the following commands:
<geshi> sudo aptitude install libapache2-svn sudo mkdir /usr/local/svn sudo svnadmin create /usr/local/svn/home sudo chown -R www-data:www-data /usr/local/svn sudo htdigest /etc/apache2/user.passwd "Subversion repository" brianegge sudoedit /etc/apache2/sites-enabled/theeggeadventure.com sudo apache2ctl configtest sudo apache2ctl restart </geshi>
The edit to my site file, was this addition:
<Location /svn> DAV svn SVNParentPath /usr/local/svn
AuthType Digest AuthName "Subversion repository" AuthUserFile "/etc/apache2/user.passwd"
Require valid-user </Location>