Build and use Linunx svn and set up linunxsvn

Source: Internet
Author: User
Tags svn client

Build and use Linunx svn and set up linunxsvn

Set up and enable Linunx svn ........ Pure hand ..

1. Preparations before installation 1.1 configure the yum Library

1) attach a cd

 

2) Go to the/etc/yum. repo. d directory.

3) Copy rhel-debuginfo.repo TO my. repo"

 

4) modify the my. repo File

5) modify the red box Annotation

 

Save the modification and exit: wq

1.2 install the telnet remote connection Tool

1) run the yum command to install the remote tool.

2) the installation is successful.

 

3) run the vi command to edit the telnet configuration file located in/etc/xinetd. d.

 

4) modify the content in the red box. Change "yes" to "no ".

 

5) Add the user "liuwei" and grant the "liuwei" password "liuwei ".

6) use the vi command to edit the user permission file/etc/password

 

7) edit the user permission file and change the last line to liuwei: x: 0: 0:/home/liuwei:/bin/bash to make it an administrator user.

8) Save and exit after modification.

 

1.3 configure the network

1) run the vi command to modify the/etc/sysconfig/network-scripts/ifcfg-eth file.

 

2) edit the NIC file as shown in.

 

Save the modification and exit.

3) use the service network restart and service sshd restart commands to restart the service.

 

Ii. Installation of svn server and Related Services

1) enable putty on windows.

2) in the Host Name text box, enter the linux address "192.168.1.159 ". Select "SSH" for the single-region connection type.

Click Open. (Disable the firewall on the client and Server before connection)

Enter the pre-added remote user "zhangsan"

Enter the password "zhangsan"

 

3) install svn

 

4) install mysql-server

 

5) install (for codestriker) related software

6) install the relevant software (for managing SVN servers through WEB)

 

7) install the software (used to configure the user to send an email notification after the code is submitted)

 

Iii. SVN Server Configuration

1) create a directory to store all SVN files.

 

2) create a version Repository

3) initialize the directory in the version Repository

(Create a temporary directory)

"Initialize SVN Directory"

(Delete temporary directories)

 

4) Add a user
Edit the/home/svn/project/conf/passwd file

Add the svn account and password to the file. The account name is on the left and the account password is on the right.

 

5) modify the User Access Policy

Edit the/home/svn/project/conf/authz File

Add the added user to the l2 group and record the user's access policy. Only the L2 user group has the permission to read and write the root directory. R indicates that the directory has read permission, w indicates that the directory has write permission, and rw indicates that the directory has read and write permissions. * = In the last row indicates that no one except the user group with the preceding permissions is allowed to access this directory.

 

6) edit the/home/svn/project/conf/svnserve. conf file to improve the efficiency of user and policy configuration.

 

Shows how to modify a file.

7) Start the server

Note: If the svn configuration is modified, restart the svn Service as follows:

8) test Server

Enter the root password

 

Enter one of the usernames and passwords added

 

Enter yes to save the Unencrypted Password

(Svn construction has been completed so far)

4. Configure http support for the svn Server

1. Convert the svn server password.

The content is as follows:

1) Create the PtoWP. Pl file in the/home/svn/project/conf/file.

2) input the following content in the file.

 

3) Apache configuration file

 

4) append the content at the end of httpd. conf.

 

5) change the owner of the svn directory to an apache account:

 

6) Restart Apache

 

7) create user group l2 and members

 

8) and set the password

 

9) add seven users to the l2 Group

 

10) Use vim to open the/etc/group file.

 

11) Add the append user after l2: x: 501

 

Added

V. Install the svn client and use the 5.1 client and Language Pack

Install the above two tools on the client

 

5.2 check out

Check out is used to copy the content on the server to the specified check out directory.

1) Right-click the folder that stores the check-out files and select Check-out.

 

2) Specify the check-out directory, right-click and select "check out". There are four check-out methods. Select "Full recursion" and click "OK.

 

3) enter the svn directory of the server and click "OK.

 

Check Result

5.3 Update

1) Select a directory, right-click and select "Update", and enter the user name and password in the displayed "authentication" dialog box.

2) Click OK.

 

Update result

5.4 submit

1) Create the above directory in the svn directory

 

2) as shown in, select the check box before the new directory. Click OK

 

3) enter the user name and password and click "OK ".

The result is submitted successfully.

Use of browsers in version 5.5

 

1) Select the svn directory, right-click, select TortoriveSVN, and select version browser"

 

2) Enter authentication information

 

3) You can view the submitted directory information, the author size and date of the relevant version, and other information.

You can also edit the information here to modify the file or directory.

4) create a file in the local directory

 

5) in the browser, go to the "Bank of Chongqing small and micro enterprise system online banking" directory, right-click and choose "add File ".

6) in the pop-up dialog box, select the previously created file and click the OPEN button.

 

7) Click OK.

 

Result added successfully

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.