apt-get install subversion. Distributions other then Debian, Ubuntu and all based on APT package systems have different command to install this software. You can always download newest version and do magic sequence: ./configure && make && make install
- create user for subversion:
useradd -g bin -s /bin/bash -c 'Subversion' /home/subversion -m svn
passwd svnJust to protect this directory. You will never use this password after configuration process.
- create an init script from Subversion + Tracd post. Be aware, that in the script is an assumption, that user name (svn) and home directory (subversion in our current case) are the same. Change it to your own settings
- svnserve.conf: uncomment auth and non-auth access and line with passwd file
- passwd: add your name and password. Its clear text file, please don't copy your any real password from others accounts.
- on svn account create repository:
svnadmin create /home/subversion/repo
- as root start svnserve
/etc/init.d/svnserve start(this script should contain setting from you real environment)
- test from your regular account (not root nor svn):
svn mkdir svn://127.0.0.1/trunk -user your_user_name_in_repo_passwd -m "Your comment to this operation"
If you found anything unclear or missing, you would consider to comment or sent me an e-mail.