Subversion version control for Linux and Windows environments SVN protocol for Enterprise Architecture Building

Source: Internet
Author: User
Tags version control system

1. Preface

1.1. Demand and purpose

The company requires the introduction of a version Management Server to manage two large objects:

1) version control of the developer's source code for the Windows environment.

2) version control for Linux server configuration files.

This chapter will use the SVN protocol to complete the file versioning.

If you have Linux system recommendations see:

http://cmdschool.blog.51cto.com/2420395/1710315

1.2. System Architecture Mode Description

1) server Side of Linux

Server side provides version control services via SSH protocol (port:tcp3690)

2) Client for Windows

Windows appears as a developer version control client role

2. Theoretical part

SVN is the abbreviation for Subversion, is an open source version control system, compared to RCS, CVS, it uses the branch management system, its design goal is to replace CVS. Many version control services on the Internet have migrated from CVs to subversion.

3. Practice part

3.1. Host information

Svnser:

ipaddress=10.168.0.176

Hostname=svnser


Windows Client:

ipaddress=10.168.0.x

Hostname=will2


3.2. Yum Pack the installation

In Svnser & Linux Client

Yum-y Install Subversion

Other Package Installation:

Yum-y Install tree

3.3. Configuration of Linux Server and client

3.3.1, Step1

In Svnser:

To define a warehouse folder:

Svnadmin CREATE/VAR/LOCAL/SVNLS/VAR/LOCAL/SVNTREE/VAR/LOCAL/SVN

Note the "Revprops" node (version control content)

3.3.2, Step2

In Svnser:

Define permission control (not required)

Ll/var/local/svngroupadd-g svngroupchgrp-r svngroup/var/local/svnll/var/local/svn/db/chmod g+w-r/VAR/LOCAL/SV N/db/chmod o=-r/var/local/svn/db/ll/var/local/svn/db/

Defines that only the Svngroup group has write permission to "/var/local/svn/db/", and no other user has any permissions

3.3.3, Step3

In Svnser

Start service and default boot boot

/etc/init.d/svnserve restart

Chkconfig Svnserve on

3.3.4, Step4

To turn on the firewall:

Vim Editor/etc/sysconfig/iptables

-A input-m state--state new-m tcp-p TCP--dport 3690-j ACCEPT

To restart the firewall:

/etc/init.d/iptables restart

3.3.5, STEP5

In Svnser:

Vim modification/var/local/svn/conf/svnserve.conf

[general]anon-access = noneauth-access = writepassword-db = Passwdauthz-db = Authz[sasl]

Modify anon-access to be equal to none

3.3.6, STEP6

In Svnser:

Define the SVN user name and password:

Vim modification/VAR/LOCAL/SVN/CONF/PASSWD

User1 = Passwd1user2 = Passwd2user3 = Passwd3user4 = Passwd4

Note: The password can be any character (quotation marks and other special characters character also, are recognized as the character of the password)

3.3.7, STEP7

In Svnser:

Define group permissions for the SVN group, group members, and directories:

Vim modification/var/local/svn/conf/authz

[Aliases] [GROUPS]GP1_RW = User1,user2gp1_r = USER3GP2_RW = User4gp2_r =[/] @gp1_rw = Rw@gp1_r = R[/dir2] @gp2_rw = Rw@gp2_r = R

Define groups, group members under [groups]

[/] table is defined with directory permissions

The [/DIR2] table is the right to define subdirectories Dir2 with the directory

@ Group name =RW table is a group with read and write permissions

The @ Group name =r table is the only read-only permission for the group

3.3.8, STEP8

In Svnser:

Start the service:

/etc/init.d/svnserve restart

3.4. Configuration of Windows Client

In Windows Client:

3.4.1, Step1

Download and install SVN

1) Download and install

Http://tortoisesvn.net/downloads.html

Since the installation of WINDOWSN is taught, this tutorial is omitted.

3.4.2, Step2

Checking Out Records

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/76/62/wKioL1ZSejLhO3rkAAGPxjZXa4Y325.png "title=" 001. PNG "alt=" Wkiol1zsejlho3rkaagpxjzxa4y325.png "/>

As shown in the following:

Folder Click [SVN checout]

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/76/63/wKiom1ZSekfAQgK9AACWEWI7Ysg716.png "title=" 002. PNG "alt=" Wkiom1zsekfaqgk9aacwewi7ysg716.png "/>

Fill in the Checkout path: "Svn://[email protected]/var/local/svn/"

Meaning of the above content:

Protocol: svn://

User name: User1

Path: 10.168.0.176/var/local/svn/

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/76/63/wKiom1ZSel7gCeYbAAFtERgUZLA353.png "title=" 003. PNG "alt=" Wkiom1zsel7gceybaafterguzla353.png "/>

As shown in the following:

File Check out ...

----------------------------------------------------------

See information:

Yum Installation Method:

Http://subversion.apache.org/packages.html#centos

Putty

Http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Windows communication settings with the server:

Http://wenku.baidu.com/link?url=Awhja8vSOiH5_ 1ync15p6yfmsq0zqqyp8s1avx7rar71jax0yhgqqgrfc82iviuxgioyzttfxp5ptednsrtgu1certuurn1gtcxpopxnkau

SVN privilege Control:

http://blog.csdn.net/jenminzhang/article/details/8665612

Solution for authentication failure:

Http://blog.sina.com.cn/s/blog_4b93170a0100leb2.html

How to use Apache MOD_DAV_SVN:

Http://www.uml.org.cn/pzgl/200908078.asp

Backup and Migration:

Http://www.iitshare.com/linux-svn-migration.html


This article is from the "Old Tan Linux Blog" blog, please be sure to keep this source http://cmdschool.blog.51cto.com/2420395/1715856

Subversion version control for Linux and Windows environments SVN protocol for Enterprise Architecture Building

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.