Create an SVN Server in Ubuntu 14.04)

Source: Internet
Author: User
Tags svn client

Create an SVN Server in Ubuntu 14.04)

To learn how to build the SVN server, I set up an SVN server on the Ubuntu virtual machine, which can be used as the project development version and recorded to prevent forgetting it, at the same time, it can help more people.

I. Build an environment to view the Ubuntu system version information: the cat/proc/version command, the uname-a command, and the sb_release-a command can be used. Ubuntu: 14.04 64-bit SVN: Use apt-get to install 2: build step 1. run the following command to check whether your system has installed svn: svn is not installed. If the information indicates that it has been installed, run the following command to uninstall svn: sudo apt-get remove -- purge subversion (the-purge option indicates that the software and related files are permanently deleted.) 2. before installing svn, we recommend that you update z and install sudo apt-get updatesudo apt-get install subversion. Run the following command: svn help // -- svn help svn -- version // -- svn version svnserve -- version // -- svn server version 3. create SVN repository a: create a project directory and svn Repository: sudo mkdir/home/svnsudo mkdir/home/svn/repositorysudo chmod-R 777/home/svn/repositorysudo svnadmin create/home/svn/repository after executing the command, the following file will be generated under repository: Set database permissions: sudo chmod-R 777 db Note: if you do not execute the preceding command, the following error will be reported: this is because all operations are performed with the sudo permission. By default, only the root user has the write permission on the folder, because the root umask is 0022, and other users do not have the write permission. B: Set access permissions: modify the configuration file conf/svnserve. confsudo vim/home/svn/repository/conf/svnserve. conf Note: 1. all rows must have the top level; otherwise, an error is returned. C: add an access user: sudo vim/home/svn/repository/conf/passwd: Set User Permissions: sudo vim/home/svn/repository/conf/authz: admin = wang // The user wang belongs to the admin permission group @ admin = rw // The admin permission group has the read and write permissions * = r. All groups have the read permissions: test SVN server A: Start the server svnserve-d-r/home/svn [-- listen-host 192.168.1.16] Note:-d: Indicates running-r: specify the root directory of the server so that you can directly access the server using "svn: // server ip Address/repository. If the server has multiple ip addresses, use "listen-host" to specify the ip address of the listener. you can access the svn server through svn: // 192.168.1.16 on the svn client. You can run the following command to check whether svnserve is running: ps aux | grep svnserve, you can see that the svn server is already running in the background. B: Stop the server killall svnserveps aux | grep svnserve. You can see that the svn server is shut down. 4. Access the SVN server through the TortoiseSVN client to access the SVN server: create a local folder, enter the folder, and use TortoeseSVN to access the previously created SVN server repository. After entering the svn repository, you can try to submit a folder: Click OK or OK, and you will be prompted to enter the svn user name and password: this is done.

Set up SVN server SVN in Ubuntu 14.04 ://

CentOS 6.2 SVN setup (YUM installation)

Deploy Apache + SVN in CentOS 6.5

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build SVN service and migration method on Ubuntu Server

Subversion (SVN) Details: click here
Subversion (SVN): click here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.