--- As a program developer, even if you write a program yourself, you should have an SVN version control system to effectively manage the development code.
A few days ago, I finally installed a dual system on my computer. Although I didn't do any development on this computer before, I still set up a simple SVN server on XP. Unbutu can access files in XP without any difficulty, but XP normally cannot access files in the unbutu system. After installing the dual system, I have been thinking about the version library that shares SVN. Before that, I only knew that I could import an existing version Library (I did not consider it before, but I thought about it carefully, import is not a simple reference ). It's really easy to build the svn server in Ubuntu. You only need to install SVN. (Of course, this method does not support web access and you will learn how to build Web access later ). The following steps describe the entire build process and record it.
1. Set up the svn server in Windows XP
This is a simple solution. This SVN server is free of charge and supports WindowsNT, 2000, XP
And2003 and other environments, the installation is very simple.
During installation, you can select the svn Protocol over HTTP or HTTPS. the HTTP protocol is faster, while the HTTPS protocol is secure. Both of them can directly access the svn project from a browser.
Similar to General Windows software. After the installation is complete, you can see a Microsoft MMS management interface, in which you can easily add configuration items. You can use Windows users or create new users separately. If you have a SVN data, you can import the original SVN data on the interface.
The SVN client still recommends using tortoisesvn in windows, which works very well together.
2. Install Ubuntu on Windows XP hard disk and set the startup Item.
3. Install Svn in Ubuntu
Because the version library is a version Library Under XP, the configuration file with user permissions is already in the root directory of the version library.AlthoughThe configuration files in Ubuntu are not the same, but they are still available. Therefore, you do not need to configure permissions.
At first, I got it wrong. It's not the configuration file ubuntu.By default, anonymous users have the permission to read and write data. Therefore, an error is reported during submission:
SVN: submission failed (details are as follows ):
SVN: authentication failed
Permission configuration is required. Once the svn service is enabled to specify a version library, the conf folder and the three files in it are automatically generated under the version Library:
Svnserve. conf, passwd, authz. All the three automatically generated configuration files have rich comments. You only need to follow the prompts to remove # Open the corresponding commented rows. the rows of the configuration item must be the top level; otherwise, an error is reported. After you modify the configuration, You need to restart SVN to make it take effect.
Start SVN Service
Svnserve-d-r/home/SVN
Description:
-D indicates that svnserver runs in "daemon" process mode
-R specifies the root location of the file system (the root directory of the version library). In this case, the client can access the version library without entering the full path.
For example, SVN: // localhost/docs
Currently running in the Multi-version library mode, you can access multiple version libraries. To run in the Multi-version library mode, you only need to specify a specific project, as shown below: svnserve
-D-r/home/SVN/docs
Check whether the svn server has been started (SVN uses port 3690 by default): netstat-an | grep 3690
Stop Service: killall svnserve
Permission part reference: http://www.cnblogs.com/wuhou/archive/2008/09/30/1302471.html
In this way, the single-host dual-system SVN version library can be used normally. Next learning svnapache
Build an SSL-based SVN server.