Get Started with SVN

There are 2 things you need to do to use SVN. Install the server and install the client software

Setting up the Server Part

This installation assumes Fedora Linux platform

  1. Create a user called svn
  2. Create a group called svngroup
  3. Edit /etc/services and add the following

    svn 3690/tcp # Subversion svn 3690/udp # Subversion

  4. Create a repository, let's call it my-repo

    svnadmin create /home/svn/my-repo

  5. Create subdirectories and import into the repository

    mkdir tmp/cust1/branches
    mkdir tmp/cust1/tags
    mkdir tmp/cust1/trunk
    vi tmp/cust/trunk/foo.c

    svn import tmp/project file:///home/svn/repository -m "initial import"

  6. Edit config file (all under conf/ directory)

    a. svnserve.conf
    [general]
    # password-db points to a file called "userfile" which contain uid & passwor password-db = userfile
    realm = example realm
    # anonymous users can only read the repository # anon-access = read
    # authenticated users can both read and write auth-access = write

    b. edit "userfile"
    [users]
    harry = foopassword
    sally = barpassword

  7. Run the svnserve server as follow:

    svnserve -d -r /home/svn/stm-repo

  8. Access the repository as follow:

    svn checkout svn://10.226.200.245/trunk

1
Hosted by www.Geocities.ws