1) Install Subversion
$ sudo apt-get install subversion2) Create directory for my repository
$ mkdir /home/dirn/svn $ cd /home/dirn/svn $ mkdir my-repo3) Create repository by using svnadmin command
$ sudo svnadmin create /home/dirn/svn/my-repo4) Create a new group called subversion
$ sudo groupadd subversion5) Add your username and www-data into the group
$ sudo usermod -a -G subversion www-data $ sudo usermod -a -G subversion user_name6) Set permission
$ cd /home/dirn/svn $ sudo chown -R www-data:subversion my-repo $ sudo chmod -R g+rws my-repo7) Edit svnserve.conf file
$ nano /home/dirn/svn/my-repo/conf/svnserve.conf8) Uncomment the following line and save the file
# [general]9) Edit passwd file
# password-db = passwd
$ nano /home/dirn/svn/my-repo/conf/passwd10) Add your svn username and password and save the file
username = password11) Run svnserve service
$ svnserve -d --foreground -r /home/dirn/svn12) To access the project repository, run the following command
$ svn co svn://hostname/my-repo my-repo --username user_nameNote:
Tested on Ubuntu 10.04 64-bit and Linux Mint 10 64-bit.
Not very related, but for my non-office-hours source code, I use Unfuddle. It's free, it's good, and it's on a server.
ReplyDelete