Here is a quick guide for setting up a basic svn server on a linux platform. If you are looking for a detailed configuration, please refer to the manual of svn.
- yum -y intall subversion  #install svn
 
- svnadmin create /xx/svn_repository/plancky_code   #create a repository
 
- cd /xx/svn_reposity/plancky_code and then modify server.conf, passwd   # add user and password
 
- vim server.conf and uncomment "password-db = passwd"
 
- vim passwd and add an item "username=password"
 
- svnserve -d -r /xx/svn_repository/plancky_code   # start svn server
 
- svn import /xx/plancky svn://localhost/plancky_code -m initial import --username username --password password  #import plancky to repository
 
- svn co svn://localhost/plancky_code --username username --password password  #check out code from repository
 
- ERROR: If meeting Error"SVN: could not use external editor to fetch log message", we need to add a SVN_EDITOR to bash configuration
 
-       vim ~/.bash_profile
 
-       export SVN_EDITOR="/usr/bin/vim"
 
-       reopen the terminal to load the bash configuration