Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What is the most basic set of steps required to set up SVN on a fresh installation of Slackware 12?

share|improve this question
'set up' what? the client? the server? a repo? sharing of a repo over WEB-DAV? a web-based repository browser? Without more details, most of your answer is going to be 'read the svn docs' –  pjz Jun 12 '09 at 6:12

3 Answers 3

Subversion already exists in Slackware 12, so you can just install it at setup time. Or you can install it later using installpkg subversion-1.4.4-i486-1.tgz

To start svn server automatically at boot time i'm wrote this script. Name it rc.svnserve and put into /etc/rc.d/ dir. Then insert call 'rc.svnserve start' in script rc.inet2 or rc.local at your flavour.

# Start/stop/restart svn server.

# Start svnserve:
svnserve_start() {
  CMDLINE="/usr/bin/svnserve -d -r /home/svn/repositories "
  echo -n "Starting SVN daemon:  $CMDLINE"
  $CMDLINE --pid-file /var/run/svnserve.pid

# Stop svnserve:
svnserve_stop() {
  echo -n "Stopping SVN daemon..."
  kill `cat /var/run/svnserve.pid`
  sleep 1
  rm -f /var/run/svnserve.pid

# Restart svnserve:
svnserve_restart() {
  sleep 1

case "$1" in
  echo "usage $0 start|stop|restart"
share|improve this answer
Personally I've done it even simpler, I simply added /usr/bin/svnserve -d -v /home/svn to /etc/rc.d/rc.local, but your version is cleaner :) –  wazoox Jul 30 '09 at 11:37

1) Download. (http://subversion.tigris.org/)
2) Follow installation instructions.

There you go, that's just about the most basic set of steps I can think of. =:)

share|improve this answer

Download svn, and do a ./configure && make install.

Choose a directory to be the root of your subversion server (we'll pretend you chose /var/svn and you're logged in as root) and call 'svnadmin create /var/svn/'. Create a subversion user and do a 'chown -R subversion /var/svn/'.

Now that you've got your directory ready to roll, start the subversion server with 'sudo -u subversion svnserve -dr /var/svn/'. To have it start up at boot, add that line to /etc/rc.d/rc.local.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.