Public domain
root@uranus:~# groupadd svn
root@uranus:~# adduser svn
Login name for new user: svn
User ID ('UID') [ defaults to next available ]:
Initial group [ users ]: svn
Additional groups (comma separated) []:
Home directory [ /home/svn ] /svn
Shell [ /bin/bash ]
Expiry date (YYYY-MM-DD) []:
New account will be created as follows:
---------------------------------------
Login name.......:  svn
UID..............:  [ Next available ]
Initial group....:  svn
Additional groups:  [ None ]
Home directory...:  /svn
Shell............:  /bin/bash
Expiry date......:  [ Never ]
This is it... if you want to bail out, hit Control-C.  Otherwise, press
ENTER to go ahead and make the account.
Creating new account...
Changing the user information for svn
Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Changing password for svn
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Re-enter new password:
Password changed.
Account setup complete.
root@uranus:~# passwd -l svn
Password changed.
root@uranus:~# svnadmin create /svn/depo
root@uranus:~# vi /svn/depo/conf/svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
realm = My First Repository
root@uranus:~# vi /svn/depo/conf/passwd
[users]
harry = harryssecret
sally = sallyssecret
root@uranus:~# vi /etc/inetd.conf
svn stream tcp nowait svn /usr/bin/svnserve svnserve -i -r /svn/depo
root@uranus:~# /etc/rc.d/rc.inetd restart
root@uranus:~# svn import /root/project file:////svn/depo/  -m "Initial import"
svn checkout svn://172.16.20.100/prj-name
BY: Pejman Moghadam 
TAG: svn 
DATE: 2008-03-09 22:57:06