💡 Update: You should probably use Git rather than Subversion nowadays.

To create a repository:

svnadmin create ~/Documents/MySVN
  • Edit the conf/ files:
    • into svnserve.conf, remove comments before:
      • anon-access = read,
      • auth-access = write
      • and password-db = passwd
    • add a user/password into passwd
  • To run your SVN server, run:
svnserve -d -r ~/Documents/MySVN