Subversion setup with svnserve
After using bazaar for some time I decided to turned back to subversion. The main reason is time. For some reasons my webservers bazaar version is way of my laptop version. So here is my laptop svn configuration. Not clean, not finished.
(This solution with svnserve is not workable in an open source enviroment. People need shell access for this method)
On the server side do
# Make the storage mkdir /var/lib/svn # Make sure nobody can read your repo directory chmod o-rwx /var/lib/svn cd /var/lib/svn # Make a test repo svnadmin create test # Add test user echo test = secret >> test/conf/passwd # uncomment anon-access and change it to none # uncomment auth-access and password-db vi test/conf/svnserve.conf # start deamon for testing svnserve -d -r /var/lib/svn
As a client
svn checkout svn://test@localhost/test # password : secret cd test touch README.txt svn add README.txt svn commit -m "Initial checkin"
Now make sure it survives every laptop boot. That's about init-script, inetd, init, /etc/init.d and /etc/rcX.d or the fast and easy way /etc/rc.local
#!/bin/sh -e # -snip- /usr/bin/svnserve -d -r /var/lib/svn exit 0