Skip to main content

Posts

Showing posts from June, 2012

Setup Svn Server in Few Minutes in Linux

Setting up svn for projects is a must. Installing it in linux is not a big task if the proper steps are followed. lets see how… Here i am skipping the download and installing steps of SVN, as you can directly use apt-get or yum for the purpose.

Firstly create the repo for your project …
#svnadmin create /myfirstrepo
Now to create a user you need to edit the below file…
#vi /svnrepos/conf/svnserve.conf
Now add these three lins in the above mentioned file…
anon-access = none
auth-access = write
password-db = passwd
Now create a password file to store the user credentials…
#vi /svnrepos/conf/passwd
and add the user in the below format…
myuser = asafepassword
Now it is the time for importing your project…….
#svn import /projects/myownproject file:///svnrepos/myfirstrepo
Now start your SVN as a Daemon…
#svnserve -d
and finally check your svn …
svn co svn://xxx.xxx.xxx.xxx/svnrepos/myownproject 
This will prompt for password as we have disabled the anon access in our configuration file.
Hope it helps…