Download Lofter Client
1, first install SVN this software
Apt-get Install Subversion
2. Create a folder named SVN in the home directory (the name of the folder is random)
Mkdir/home/svn
3. Create a Data warehouse (you can create as many as you want)
Svnadmin Create/home/svn/test
4. Start SVN Network Service
Svnserve-d-R/HOME/SVN
Where the-D parameter lets Svnserve run in the background, the-R parameter limits the data warehouse to the address that can be accessed on the network.
/HOME/SVN Specify the location of the directory where the SVN data warehouse resides
5. Set SVN: Access permissions for the way
In each data Warehouse directory there are a bunch of directories, enter CONF and open svnserve.conf This file, find the following lines,
and remove the previous note symbol ' # ', and be careful not to leave any spaces in front of each line.
Anon-access = Read
auth-access = Write
Password-db = passwd
Where anon-access and auth-access are anonymous and privileged users, the default is to read-only permissions for anonymous users.
But if you want to deny access to anonymous users, simply change the anon-access read to none to achieve the goal.
The passwd after password-db is the file path that defines the user name and password. This file defaults to snvserve.conf
The same directory, see below How to configure the contents of the passwd file.
[User]
# Harry = Harryssecret
# sally = Sallyssecret
Harry and Sally each define the user name and password of the user who can write to repo. We can add the following
Your user name and password, such as
TESTSVN = Tester
This gives the user TESTSVN permission to write to repo. After saving, the SVN server can be run even if it is official!
Put all the projects that need to be managed in the/HOME/SVN directory and build the Data Warehouse with the Svnadmin create command as normal.
This allows the SVN client to pull the data warehouse on the server to local using the SVN Co SVN://IP address/Data Warehouse directory.
Recently upgraded the next Linode, found that SVN can not be submitted and updated, reported svn:E000061:Unable to connect to a repository at URL such errors, later looked up some information, it is SVN port is not open, SVN default port is 3690, in Ubuntu View port open situation, command is NETSTAT-ANP, the SVN service is restarted under it, command for svnserve-d-R/HOME/SVN
Build SVN server under Ubuntu