Ubuntu16.04 to build SVN

Source: Internet
Author: User
Tags chmod svn svn client
1, uninstall SVN

See if you've installed SVN

Svn


The illustration above shows that you have installed and you can uninstall with the following command

sudo apt-get remove--purge subversion
(–purge option indicates a complete deletion of the software and related files)
2. Install SVN

Update before installing

sudo apt-get update
Next Install

sudo apt-get install subversion

3. Create SVN version library

Create an SVN folder under Home

sudo mkdir  /home/svn
Create an repository folder under SVN

sudo mkdir  /home/svn/repository
Change repository permissions (the first build does not give permissions, the client Access server is denied)

sudo chmod-r 777/home/svn/repository
Create a version library

sudo svnadmin create/home/svn/repository
When finished, the following files are generated under the Repository folder

Then permissions are set on DB

sudo chmod-r 777 db
To set access permissions: You need to modify the files under the Conf folder

① Modify configuration file conf/svnserve.conf

sudo vim/home/svn/repository/conf/svnserve.conf

#匿名用户可读
Anon-access = Read (can be changed to none, that is, unreadable)
#权限用户可写
auth-access = Write
#密码文件为passwd
Password-db = passwd
#权限文件为authz
Authz-db = Authz

(Remove the front #, and below, or it may be an error)

② Add Access User conf/passwd


③ Set user Permissions Conf/authz

sudo vim/home/svn/repository/conf/authz

admin = Smwang//user Smwang belong to admin permission group
@admin = RW//admin Permission group permissions are read and write
* = RW all groups have read and write permissions

4. Test SVN server

① Boot Server

Svnserve-d-R/HOME/SVN
(-D: Indicates running in the background,-r: Specifies the root directory of the server)

Use the following command to see if Svnserve is already running

PS aux | grep svnserve

(indicates that the server is already running in the background, this time I do not have access to the server via the svn://server ip/repository from the SVN client)

② Stop Server

If you need to shut down the server, use the following command

Killall Svnserve

5. Access server from Eclipse

① Install SVN

Open Eclipse--> help--> Eclipse Marketplace--> Enter Subclipse search--> in Find subclipse click Install


② Connection SVN server

Windows-->show view-->other--> Double-click the SVN repository to mediate the SVN repository view

Right-key white space--> new--> repository location, enter server SVN address

③ Submit Project

Right-click your own project-->team-->share project--> Select type for SVN

Using an existing resource pool

Then finish--> right project--> submit

④ download project from the server to the local

Click the directory below the SVN repository view to see the items

Right-click to download the Project--> check out for

⑤ Update code from server

Right-project-->team--> synchronization with repository

⑥ restore items to the same as when downloading

Right-project-->team--> Restore

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.