Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to install and setup SVN on Ubuntu 14.04 ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 620
    Comment on it

    Before installing SVN let us know what is SVN first. SVN (Subversion) is an opensource version control system. Subversion is used to store previous changes of your project like coding, documents, files. It is used to identify and track the changes done to the files by whom.
     In this blog we will learn how to install and setup Subversion on Ubuntu 14.04. Following are the steps that need to follow:

     

    Step 1:  Update the package repositories

     

    sudo apt-get update
     
    Step 2: Installing SVN and apache to access SVN through http

     

    sudo apt-get install subversion apache2 libapache2-svn apache2-utils
     
    Step 3: Create directory and create a new repository in that directory

     

    sudo mkdir -p /svn/repos/
    sudo svnadmin create /svn/repos/testrepo

     

    Step 4:  Change ownership for the repository.

     

    sudo chown -R www-data:www-data /svn/repos/testrepo

     

    Step 5: Create a file testrepo.conf in /etc/apache2/sites-available/ and add the below lines for creating apache virtual host.

     

    <Location /svn>
     DAV svn
      SVNParentPath /svn/repos/
      AuthType Basic
      AuthName "Test Repo"
      AuthUserFile /etc/svnpasswd
      Require valid-user
    </Location>
     
    Step 6:  Enable the site

     

    sudo a2ensite testrepo

     

    Step 7: Reload apache web server

     

    sudo service apache2 reload

     

    Step 8: create user for accessing repository and add the user details to /etc/svnpasswd file.

    Command to create first user:

    sudo htpasswd -cm /etc/svnpasswd user1

     

    Step 9: Finally access your repository in your browser.

     

    Example: http://yourip/svn/testrepo

    All done!

     

    Thanks for reading the blog.

    How to install and setup SVN on Ubuntu 14.04 ?

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: