Creating a subversion server in B3 Server

2012/06/10 by Paulo Pereira

~/categories/Linux #Linux #B3 Server #subversion

In order to keep a version control of my home projects, I decided to set up a subversion server in my B3 Server.

I will be using subversion an Apache.

B3 Server Installation

apt-get install subversion libapache2-svn
mkdir /var/svn
chown -R www-data:www-data /var/svn
vi /etc/apache2/mods-available/dav_svn.conf
 <Location /svn>

  # Uncomment this to enable the repository
  DAV svn

  SVNParentPath /var/svn
  SVNListParentPath on
  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd

  # The following three lines allow anonymous read, but make
  # committers authenticate themselves.  It requires the 'authz_user'
  # module (enable it with 'a2enmod').
    Require valid-user

/etc/init.d/apache2 restart
htpasswd -cm /etc/apache2/dav_svn.passwd *yourusername*
svnadmin create /var/svn/yourproject
chown -R www-data:www-data /var/svn/yourproject
cd /var/svn
rm yourproject -R

Client Installation

sudo apt-get install subversion
svn co https://b3server/svn/yourproject
sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus3
killall nautilus

You can check out the excito wiki for further details.