Every developer should have version control. It can be a simple process or a process supported by tools. One of the best versionĀ control tools is Subversion or SVN. Here’s how to set up your own SVN server on a Linux box.
Install or update Subversion: If you’re using Red Hat-type Linux: yum install subversion or yum update subversion. If you’re using Debian-type Linux: apt-get install subversion or apt-get update subversion. Others Linux flavors should have something similar.
Create your repository: svnadmin create /svnroot
Configure access: vi /svnroot/conf/svnserve.conf. In the [general] section, add:
anon-access = none
auth-access = write
password-db = passwd
Add users: vi /svnroot/conf/passwd and add:
<username> = <password>
Start Subversion as a daemon: svnserve -d.
Open up TCP port 3690 on your Linux box’s firewall.
Connect to your SVN server with the URL svn://<server name or ip>>/svnroot
Start using your SVN server. Here are some useful tips:
That’s it!