Setup SVN on local machine environment

To install SVN: $sudo apt-get install subversion
To setup SVN repository:

1
2
3
$svnadmin create ~/Documents/svn_repository
$SVNREPO=~/Documents/svn_repository
$vim $SVNREPO/conf/svnserve.conf

and add the following:

1
2
3
anon-access = none
auth-access = write
password-db = passwd

To add user name and password:

1
$vim $SVNREPO/conf/passwd

and add your user name and password in the format:

1
userName = password
1
2
3
4
5
6
7
8
9
$svn mkdir file:///$SVNREPO/project1 -m "my first project"
$svn mkdir file:///$SVNREPO/project1/branches -m ""
$svn mkdir file:///$SVNREPO/project1/tags -m ""
$svn mkdir file:///$SVNREPO/project1/trunk -m ""
$svn mkdir file:///$SVNREPO/project2 -m "my second project"
$svn mkdir file:///$SVNREPO/project2/branches -m ""
$svn mkdir file:///$SVNREPO/project2/tags -m ""
$svn mkdir file:///$SVNREPO/project2/trunk -m ""
...
1
$svn import project1/src file:///$SVNREPO/project1/trunk -m "import from project1 to repository"
1
2
$cd project1/src
$svn co file:///$SVNREPO/project1/trunk .

Done.

Reference:
Subversion Cheat Sheet **