Install Subversion
sudo apt-get install subversion
Install apache module
sudo apt-get install libapache2-svn
Create Repository
--------------------
Repository is a central place where the data is stored and maintained in an organized way.
Command to create the repository.
sudo svnadmin create /svn
Edit the configuration file for the subversion webdav.
vi /etc/apache2/mods-enabled/dav_svn.conf
uncomment this element : this is the end tag of location
uncomment DAV svn
Location element in this file denotes the root directory where the subversion will be accessible from,
for example
http://YOUR-IP-ADDRESS/svn
uncomment SVNPath /svn
SVNPath should be set to the same place where you created your repository using svnadmin command
Basic Authentication.
Uncomment the following three lines to enable the basic authentication.AuthUserFile sets the password file
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Creating users for the repository:
Command to create user:
sudo htpasswd -cm etc/apache2/dav_svn.passwd
-c -- Create user for the first time.
-m -- Create another user for same repository.
If -c is given after having some users, all those users will be deleted . Use -m to create new user for same repository.
Restart apache2 server to see the web console of svn
sudo /etc/init.d/apache2 restart.
sudo apt-get install subversion
Install apache module
sudo apt-get install libapache2-svn
Create Repository
--------------------
Repository is a central place where the data is stored and maintained in an organized way.
Command to create the repository.
sudo svnadmin create /svn
Edit the configuration file for the subversion webdav.
vi /etc/apache2/mods-enabled/dav_svn.conf
uncomment this element : this is the end tag of location
uncomment DAV svn
Location element in this file denotes the root directory where the subversion will be accessible from,
for example
http://YOUR-IP-ADDRESS/svn
uncomment SVNPath /svn
SVNPath should be set to the same place where you created your repository using svnadmin command
Basic Authentication.
Uncomment the following three lines to enable the basic authentication.AuthUserFile sets the password file
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Creating users for the repository:
Command to create user:
sudo htpasswd -cm etc/apache2/dav_svn.passwd
-c -- Create user for the first time.
-m -- Create another user for same repository.
If -c is given after having some users, all those users will be deleted . Use -m to create new user for same repository.
Restart apache2 server to see the web console of svn
sudo /etc/init.d/apache2 restart.
No comments:
Post a Comment