Linux SVN build and use (text detailed) _linux

Source: Internet
Author: User
Tags svn svn client

Linunx SVN's build and use ... It's made of pure hands. Concrete into the following:

First, the preparation before installation

1.1 Configuring the Yum Library

1) Load CD

2) into the/ETC/YUM.REPO.D directory

3) Copy "Rhel-debuginfo.repo" as "My.repo"

4) Modify My.repo file

5) Modify the Red Box callout Section

After the change is completed save exit: Wq

1.2 Installing Telnet Remote connection tool

1 Use the Yum command to install Remote Tools.

2) Successful installation.

3) Use VI command to edit the telnet configuration file located under/etc/xinetd.d

4) Modify the contents of the red box. Change "yes" to "no".

5) To increase the user "Liuwei" and give "Liuwei" password "Liuwei".

6 Edit user Rights file with vi command/etc/password

7 Edit the user rights file, and the last line is changed to Liuwei:x:0:0::/home/liuwei:/bin/bash to make it an administrator user.

8 after the modification, save exit.

1.3 Configuring the Network

1 Modify/etc/sysconfig/network-scripts/ifcfg-eth file with vi command

2) Edit the card file as shown below.

Save exit after modification is complete

3 Services Network Restart, service sshd Restart two commands to restart.

Two, SVN server side and the installation of related services

1 Open putty at Windows end

2 Enter the Linux address "192.168.1.159" in the Host Name text box. Connection type Radio box select the SSH option.

Click the Open button. (Shut down the client and server-side firewalls before connecting)

Enter the remote user "Zhangsan" that was added earlier

Enter Password "Zhangsan"

3) Install SVN

4) Installation Mysql-server

5) installation (for Codestriker) related software

6 Installation (to support Web management of SVN server) related software

7) installation (used to configure the user to send the code after the mail reminder) of the relevant software

Three, SVN server configuration

1 Create a new directory to store all SVN files

2 Create a new version warehouse

3 Initialize the catalog in the version warehouse

(Create a temporary directory)

"Initialize SVN directory"

(delete the temporarily established directory)

4) Add Users
Edit/HOME/SVN/PROJECT/CONF/PASSWD File

Add the SVN account and password to the file. The equal sign to the left is the account name, the right is the account password.

5) Modify User access Policy

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

Add users to the L2 group, record the user's access policy, only L2 user group has the root directory of read and write rights. R indicates that there is read access to the directory, W indicates that there is write access to the directory, and RW indicates that there is read and write access to the directory. The last line of * = indicates that no one else is allowed to access this directory except for the user group with the permissions set above.

6 Edit the/home/svn/project/conf/svnserve.conf file, let the user and the strategy configure the promotion effect.

Modify the file as shown in the following figure

7) Start the server

Note: If you modify the SVN configuration, you need to restart the SVN service as follows:

8) test Server

Enter root password

Enter one of the user names and passwords added

Enter Yes to save unencrypted password

(SVN has been built so far)

Iv. Configuring HTTP support for SVN servers

1. Convert SVN server password.

The contents are as follows

1 Create ptowp.pl file under/home/svn/project/conf/file

2 Enter the content in the file

3 Apache configuration file

4) The final additions to the httpd.conf

5 to modify the owner of the SVN directory for the 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 Open/etc/group file with vim.

11 after the l2:x:501 plus the additional user

Add complete

Five, SVN client installation and use

5.1 Client and Language pack installation

Install on the client as two tools

5.2 Check out

Checkout is used to copy content from the server to the specified checkout directory.

1 Right-click to store the Checked-out Files folder and select Check out.

2 Specify checkout directory, right-click to select "Check out", as shown in four checkout ways, select "Full recursion" click "OK" button.

3 Enter the server SVN directory and click "OK" button.

Check out the results as shown

5.3 Update

1 Select the directory, right click to select "Update", in the Identified "Authentication" dialog box, enter the username and password

2) Click "OK" button.

Update results as shown in the figure

5.4 Submit

1 Create a new directory in the SVN directory

2 Check the box before the newly created directory as shown above. Click OK button

3 Enter username and password click OK.

Results submitted successfully

Use of version 5.5 browsers

1) If you choose the SVN directory, right-click, select "Tortorivesvn", select "Version Browser"

2) Enter the authentication information

3 You can see information such as the directory information previously submitted and the relevant version author size date.

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, enter the previously created "Chongqing Bank small Micro Enterprise system network silver End" directory, right-click Select "Add File".

6 in the Pop-up dialog box, select the file you created previously, and click the Open button.

7) Click "OK" button.

Results added successfully

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Related Article

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.