lundi 26 mars 2007

Svn server... out of the box... or almost ^^

Pardus Linux gives the opportunity to start your own local svn server very quickly !
Just launch Tasma, your friendly Pardus Configuration Center, and from the System module, click on the Service Manager.
Here you can see listed as an available service (but not currently running) the SVN server.
Click on it and then run it...
Wait young Jedi, you are not totally done yet ! ^^
If you type ps -eaf | grep svnserve in your Yakuake (I am in love with this terminal since the first day I launched it !), you will find something like this :
apache 3755 1 0 23:55 ? 00:00:00 /usr/bin/svnserve --foreground --daemon --root=/var/svn

Oh ho... has Pardus made it work directly...
well not really... Actually there is no such thing as /var/svn yet !
First thing first let's create the directory :
$ su
# mkdir /var/svn
In order to create repositories, you have to use svnadmin :
# svnadmin create /var/svn/repository

Have a look at http://svnbook.red-bean.com/en/1.1/ch06s03.html for more information as how to
administer your server...
Personnally I prefer accessing it through ssh.
In order to do that, use your Service Manager to fire the ssh server... and then you can access your svn server thanks to the url :
svn list svn+ssh://localhost/var/run/repository
It will ask you for a password and then will not give you any error message... meaning your server is ready for the initial import !!
Enjoy !

1 commentaire:

Ahmet AYGÜN a dit…
Ce commentaire a été supprimé par l'auteur.