Linux configuration svn and TORTOISESVN installation and use
Here's a quick summary of the configuration of the SVN server and the use of TORTOISESVN
HTTPd and Subversion. HTTPD is a Web server that is used to access subversion through the Web
Here I set the IP address of the server to 192.168.1.110
First, install and configure Web services
Considering the Linux installation of the RPM package will have a lot of dependencies, so here I use Yum to install, configuration Yum here is not explained in detail
(1) in the terminal to execute the command yum install httpd, waiting for the installation to complete the
(2) cd/var/www/html, after the implementation of Vim index.html, casually write some content in
(3) Finally open HTTPd Services, service httpd start
(4) Open the browser, enter http://192.168.1.110/index.html
If access to index.html means that the Web server is already configured
(ii) Configure SVN server
(1) The first thing to download is subversion-1.3.1.tar.bz2
Download Address: http://www.linuxfromscratch.org/blfs/view/6.2.0/basicnet/subversion.html
(2) Because of the need to use some of the parameters of SVN, so here to install the following required package
Yum Install gcc*
Yum Install httpd*
Yum Install *ssl*
Yum Install *zlib*
Because there is no screening package for convenience, direct use *
(3) My subversion-1.3.1.tar.bz2 on the desktop
cd/root/desktop/
tar-xjvfsubversion-1.3.1.tar.bz2
Wait for the decompression to complete with a folder named subversion-1.3.1
CD subversion-1.3.1
./configure--with-apxs=/usr/sbin/apxs--prefix=/usr/local/subversion--with-apr=/usr/--with-apr-util=/usr/- With-ssl--with-zlib--enable-maintainer-mode
Wait...
Make
Wait...
Make install
Wait...
After several screens, SVN is finally installed.
(4) Create warehouse "test"
Mkdir-p/home/svnroot/repository/test
Cd/usr/local/subversion/bin
./svnadmin Create/home/svnroot/repository/test
(5) Submit revised version 1
Mkdir/root/desktop/mydocument
Vim/root/desktop/mydocument/01.txt, just write some stuff in there.
Cd/usr/local/subversion/bin
Execute command:./svn/root/desktop/mydocument/file:///home/svnroot/repository/test
Submitted successfully
(6) Modify httpd.conf
Vim/etc/httpd/httpd.conf
Add the following at the end:
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
<Location/svn>
DAV SVN
svnparentpath/home/svnroot/repository/
Authzsvnaccessfile/home/svnroot/repository/authz.conf
AuthType Basic
AuthName "Subversion.zoneyump"
Authuserfile/home/svnroot/repository/authfile
Require Valid-user
</Location>
This is the configuration of SVN's warehouse directory, permissions, and user login password and URL access address
(7) Restart the Apache server
Showing the following means success:
(8) Because there is no user, browser access can only see a user name and Password dialog box
HTPASSWD [-c]/home/svnroot/repository/authfile Sai
Enter two password to indicate successful user creation
/home/svnroot/repository/authfile This path is added to the httpd.conf inside the Authuserfile/home/svnroot/repository/authfile
Vim/home/svnroot/repository/authfile will be able to see the username and encrypted password
(9) Permission configuration
Vim/home/svnroot/repository/authz.conf
[test:/]
Sai = RW
Here conveniently put repository permission to change together: Chmod-r 777/home/svnroot/repository; here to simplify the direct change to 777, the specific rights distribution according to the actual situation
(8) Open browser access, see the screen is successful
Installation and use of TORTOISESVN:
(1) Windows Installer estimated that there is no problem, choose your own installation directory is OK
(2) Create a new TESTSVN folder on the desktop
Right------SVN Checkout------Enter the address of the server
Determine------Enter user name and password
This will download the files on the server.
When we modify the downloaded file, the modified file will have an exclamation mark, which means that the server version is different.
We right-click on this file--------choose SVN Update and upload it to the server.
Upload successful
This is the version of the server that has become version 2:
--------------------------------------------------------------------------------------------------------------- --------------------------------
Use of Linux clients
Of course, the client will need to install more than one virtual machine, installed on the Linux system
Configure Yum to perform yum install GCC
(1) Install SVN
is still the above mentioned subversion-1.3.1.tar.bz2, as the client needs to download more than one additional package neon-0.25.5.tar.gz
Download the address for http://www.webdav.org/neon/neon-0.25.5.tar.gz, paste directly into the browser's address bar will be downloaded;
If Linux does not have a graphical interface, you can use wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
First TAR-XJVF subversion-1.3.1.tar.bz2
Wait for the decompression to complete with a folder named subversion-1.3.1
With the command TAR-ZXVF neon-0.25.5.tar.gz decompression, get a folder named neon-0.25.5, move this folder to the subversion-1.3.1 directory
Enter subversion-1.3.1, execute./configure--prefix=/usr/local/subversion
Wait...
Make
Wait...
Make install
(2) Configure environment variables
Of course it's not configurable, but you'll need to write the full path every time you perform an SVN update, SVN commit, etc command
Vim/etc/profile
Add this line at the end:
Export path= $PATH:/usr/local/subversion/bin
Save exit
Source/etc/profile
(3) Create a new name for TESTSVN on the desktop
Go into this directory and perform SVN co http://192.168.1.110/svn/test
The first time you need to enter the user name and password, type in the SVN server created Sai and the corresponding password, you can check out the server files
Then enter the test inside the TESTSVN, you can see 01.txt
(4) When we have modified 01.txt, need to submit, execute SVN commit-m ""
To update on SVN udpate
Want to add a file is also very simple, in this test directory, a new 02.txt, inside the content of the random
Execute SVN add 02.txt, then SVN commit, commit successfully
Of course we perform SVN--help to see a lot of subcommand, because I am also the learning phase, so the rest of the subcommand will slowly test and update this article