Subversion is an open source version control system. Using Subversion, you can record the history of source files and documents. It manages files and directories over time. A tree of files is placed into a central repository. The repository is much like an ordinary file server, except that it remembers every change ever made to files and directories
Lets see the configuration of Subversion repository in Ubuntu 9.10 server edition OS.
Install the following pre-requisites packages:
apt-get install apache2 subversion libapache2-svn
You can create SVN repository with the following command
svnadmin create /svn.linux.com
Create a dir from where you want to add/import contents to the repository
mkdir /importloc
mkdir /import/loc/test1
Import Contents to the repository
svn import /importloc/test1 file:///svn.linux.com/test1 -m "test1 repo"
Configuring users’ access level can be done with authz in the following location
cd /svn.linux.com/conf
vim authz
[groups]
admin=linux
##Here admin is a group; linux is a user.
r -> read only permission
‘’ -> no permission
:wq
# ServerName svn.linux.com
DAV svn
AuthType Basic
AuthName "svn.linux.com"
AuthUserFile /svn.linux.com/conf/passwd
AuthzSVNAccessFile /svn.linux.com/conf/authz
SVNPath /svn.linux.com
Require valid-user
## For Enabling Logging
CustomLog /var/log/apache2/svn.linux.com/access.log combined
ErrorLog /var/log/apache2/svn.linux.com/error.log
#SSLEngine on
#SSLCertificateFile /etc/apache2/ssl/apache.pem
Once done all this, open internet Explorer in client machine and type http://svn.linux.com
No comments:
Post a Comment