Ubuntu server10.10 SVN install configuration

2011-07-05  来源:本站原创  分类:OS  人气:97 

The first version (the test can be used):

1, the subversion server and apache2 server
sudo apt-get install subversion subversion-tools
sudo apt-get install apache2
sudo apt-get install libapache2-svn

2, configure subversion server
1> Add User Group
sudo addgroup subversion
2> the www-data user groups added to subversion
sudo usermod-G subversion-a www-data
3> in the home following the establishment of svn directories used to store a different svn repository
sudo mkdir / home / svn
4> Create a directory / home / svn / java-projects
sudo mkdir / home / svn / java-projects
5> for this directory authority, the group of users to add into the subversion
sudo chown-R www-data: subversion / home / svn / java-projects
6> Create a new svn repository
sudo svnadmin create / home / svn / java-projects
7> The svn repository can be assigned read and write access
sudo chmod-R g + rws / home / svn / java-projects
8> in the specified location to increase user account and password file
sudo htpasswd-c / etc / subversion / passwd thinksoar
The above statement is to create a new passwd file, which by default adds a thinksoar account, Enter, will twice asked for a password when you need to add a svn user, do remember to remove the-c This option, otherwise it will Create a new passwd file and overwrite the original account will thinksoar this statement is correct to remove: sudo htpasswd / etc / subversion / passwd daihaixiang
Modify user password:
sudo htpasswd / etc / subversion / passwd daihaixiang
Delete a user: (use the uppercase D)
sudo htpasswd-D / etc / subversion / passwd daihaixiang
9> configure svn repository configuration file java-projects
sudo pico / nano / home / svn / java-projects / conf / svnserve.conf
This is inside the following lines to remove the preceding # comments
# [General]
# Password-db = passwd
# Authz-db = authz

3, configuration apache2
sudo pico / etc/apache2/mods-available/dav_svn.conf
On the bottom, add the following configuration
<Location /svn/java-projects>
DAV svn
SVNPath / home / svn / java-projects
AuthType Basic
AuthName "thinksoar subversion repository"
AuthUserFile / etc / subversion / passwd
AuthzSVNAccessFile / home / svn / java-projects / conf / authz
Require valid-user
</ Location>
Explained: thinksoar subversion repository here text is in the dialog box above the text, can be set

4, the last step, configure the svn repository license file and password file
1> configure the authorization file
sudo pico / home / svn / java-projects / conf / authz
First set of configuration groups, the earlier in the second step, the eighth section where additional users are assigned to different groups, such as:
The thinksoar assigned to the admin group, group name can be their own take, the daihaixiang users assigned to test group,
Then in the svn repository java-projects of the [/] root directory where configure the appropriate permissions to read and write, r means read, w said the write-only, rw that can read and write the last sentence is that other users read-only, as may be passwd file there is also other users.

( Note line do not have extra spaces )

[Aliases]
[Groups]
admin = thinksoar
test = daihaixiang
[/]
@ Admin = rw
@ Test = rw
* = R
After removal of comments, paste the above into the text.
2> configure the password file
sudo pico / home / svn / java-projects / conf / passwd
[Users]
daihaixiang = daihaixiang
thinksoar = thinksoar
In java-projects inside the warehouse, the number of users, add in the number of users here. The password can be clear

At this point, you can access svn up via http
http://192.168.203.129/svn/java-projects/
Prompted to enter the account password, use the turtle with mold can also be submitted and software detected.
Of course, you can svn protocol, https and other protocols for access, you need to do some configuration below to continue to talk about how to configure the svn protocol and the https protocol to access:
svn protocol configuration:
Start the daemon services: the next knock at the $ sudo svnserve-d - foreground-r / home /, try to start the server directly inflicted start

In this way, you can svn co svn: / / 192.168.203.129/svn/java-projects / this visit

The second version looks more detailed, but also accept it:

Step One: Install apache2 libapache2-svn subversion
sudo apt-get install apache2
sudo apt-get install subversion
sudo apt-get install libapache2-svn
After installation follow the prompts
Run '/ etc/init.d/apache2 restart' to activate new configuration!
Restart apache2
Step two: Create the SVN repository and project
sudo mkdir / home / svn / / Create the SVN repository
sudo svnadmin create / home / svn / project / / create a project Step 3: Create groups and add members
sudo addgroup subversion / / create a group called the subversion repository to have the directory where the system prompts: Adding group "subversion" (GID 1001) ...
Complete.
sudo usermod-G subversion-a www-data / / will own and "www-data" (Apache User) by adding group members to view: more / etc / group | grep subversion
Prompted: subversion: x: 1001: www-data
The third step: modify the project authority
sudo chown-R root: subversion / home / svn / project
sudo chmod-R g + rws / home / svn / project / / give the group members to the document repository for all new files have the appropriate permissions to view txn-current-lock the file permissions and user and group information
ls-l / home / svn / myproject / db / txn-current-lock
System prompt:-rw-rwSr - 1 root subversion 0 2011-01-25 17:47 / home / svn / project / db / txn-current-lock
Step 4: command to access library
sudo svn co file: / / lodalhost / home / svn / project / / The first method, the host name is used when
sudo svn co file: / / / home / svn / project / / The second method, when the uncertain fate when the host used, this is the file :///, with three slashes prompted: remove version 0.
Own version can be removed, indicating that the SVN server has been running, the next interview from the webdav access Step Five: Configure apache2
Modify / etc/apache2/mods-available/dav_svn.conf
sudo vim / etc/apache2/mods-available/dav_svn.conf
Add the following code:
================================
<Location /svn/project>
DAV svn
SVNPath / home / svn / myproject
AuthType Basic
AuthName "project subversion repository"
AuthUserFile / etc / subversion / passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</ LimitExcept>
</ Location>
If you need to have carried out each time a user logs in the user password authentication, it will <LimitExcept GET PROPFIND OPTIONS REPORT> and </ LimitExcept> comment out two lines of code added to restart apache2
=================================
Step Six: Create / etc / subversion / passwd file, this file contains the details of the user authorized to add users
sudo htpasswd-c / etc / subversion / passwd [user_name] / / first add the user parameter "-c" added later do not need a warehouse to access files
svn co http://hostname/svn/project project - username [username]

OK! The web pages accessed through the repository, the next version of the interview about import libraries to import repository to / var / www / import the contents of the next version in:
sudo svn import-m "First Import" / var / www http://192.168.0.5/svn/project
========================================
Prompted:
Certification areas: <http://192.168.0.5:80> myproject subversion repository
"Root" password:
Certification areas: <http://192.168.0.5:80> myproject subversion repository
User name: test
"Test" password:
Add / var / www / index.html
-------------------------------------------------- ---------------------
Note! Your password for authentication realm:
<http://192.168.0.5:80> myproject subversion repository
Can only be stored in clear text on disk! If possible, consider configuring your system, so that Subversion
Can be saved encrypted password. See the documentation for more information.
You can be in the "/ home / icedot / .subversion / servers" option set "store-plaintext-passwords" to "yes" or "no",
To avoid this warning again.
-------------------------------------------------- ---------------------
Save your password unencrypted (yes / no)?
Please enter 'yes' or 'no': yes

Submitted version 1.
==========================================
Finally, in the windows and web pages accessed by TortoiseSVN successfully.
==========================================
During the experiment, there have been errors detected repository error:
sudo svn co http://192.168.0.5/home/svn/project
svn: OPTIONS method fails in the "http://192.168.0.5/home/svn/myproject": 200 OK (http://192.168.0.5)
The error in the online search for a long time, nothing to learn from data, fuzzy feel may be right that the user names and permissions to be confirmed later
sudo svn co file: / / localhost / home / svn / project
svn: can not open a URL ra_local session
svn: Unable to open repository "file: / / localhost / home / svn / projcet"
This error should be and the same error on a user's rights issue of the larger, later confirmed to be tried

相关文章
  • Ubuntu server10.10 SVN install configuration 2011-07-05

    The first version (the test can be used): 1, the subversion server and apache2 server sudo apt-get install subversion subversion-tools sudo apt-get install apache2 sudo apt-get install libapache2-svn 2, configure subversion server 1> Add User Group s

  • ubuntu 8.10 to install a comprehensive guide to Oracle 10G Enterprise Edition 2011-01-03

    ubuntu 8.10 to install a comprehensive guide to Oracle 10G Enterprise Edition First, the system update to the latest (there may be need to manually install a package libaio1) 1. Increase the swap partition (as required to determine whether to add) In

  • ubuntu 9.10 sever install oracle10g 2011-03-11

    Following the installation process has been verified. First, the platform and software environment ubuntu 9.10 sever jdk6.0 oracle10g (10201_database_linux32.rar) Xmanager 3 boardcast way Second, the relevant pre-installed software 1, with the apt-ge

  • Ubuntu 9.10 + mysql + freeradius configuration notes 2010-04-03

    Configuring the environment: VitualBox virtual machine under Ubuntu 9.10 Step 1: Install Mysql # Useradd mysql-g mysql Here you will be prompted for the root user password, where you can temporarily set to 123456 Step2: Install freeradius-server-2.1.

  • Ubuntu 9.10 grub2 startup configuration file grub.cfg 2010-04-20

    After upgrading to Ubuntu 9.10, it is necessary contacts grub2, and it and the previous version had a lot of different. Here is a basic tutorial. 1, grub2 startup configuration file grub.cfg grub2 startup configuration file grub.cfg is / boot / grub

  • In XP under Vmware running Ubuntu server10.10 install vmware tools, the problems encountered 2011-05-25

    Open the CD folder, and extract the compressed file into the tools directory run the command sudo ./vmware-install.pl Enter all the way Problems in one: The path "/usr/src/linux/include" is not an existing directory. What is the location of the

  • ubuntu 9.10 to install a small penguin input 2010-02-03

    First, install: $ Sudo apt-get install im-switch libapt-pkg-perl fcitx If you need to uninstall the SCIM input method that comes with ubuntu $ Sudo apt-get remove scim Second, set to the default input method: $ Im-switch-s fcitx (if you want to set t

  • ubuntu server 10.04 Network Configuration 2011-09-29

    Quote From http://hi.baidu.com/zuoshixiaolin/blog/item/5185520c5ec9543b6159f36a.html ubuntu 10.04 under the network configuration issues ... Common methods: Google ... Keywords A: ubuntu network configuration " $ Sudo pico / etc / network / interface

  • Ubuntu 9.10 samba server configuration instructions 2010-03-23

    User mode: Case Description: A user group: used for group file sharing, you can write files to the public directory of a guest user: can only access the public directory, and only has read access. But can write files to the guest user directory. 1, s

  • In XP under Vmware running Ubuntu server10.10 when installing vmware tools, some of the problems encountered 2011-05-25

    Open the CD directory, unzip the compressed package files into the tools directory run the command sudo ./vmware-install.pl Enter all the way Problems in one: The path "/usr/src/linux/include" is not an existing directory. What is the location o

  • ubuntu server10.10 installation AmFast 2010-12-04

    Installation using the command easy_install amfast last always prompt: error: Setup script exited with error: command 'gcc' failed with exit status 1 This page: http://www.rmansuri.net/2009/11/20/setup-script-exited-with-error-command-gcc-failed-with

  • ubuntu 9.10 manually install jdk 2010-03-22

    1. Download jdk http://java.sun.com/javase/downloads/index.jsp I downloaded the jdk-6u18-linux-x64.bin. Help files into the directory you want to put for example: / home / chenguang / java 2. Console switch to the directory $ cd / home / chenguang /

  • Ubuntu 9.10 installation Little Penguin input 2010-03-11

    ubuntu 9.10 to install a small penguin input Articles Category: Operating system First, install: $ Sudo apt-get install im-switch libapt-pkg-perl fcitx If you need to uninstall the SCIM input method that comes with ubuntu $ Sudo apt-get remove scim S

  • Ubuntu 9.10-amd64 to install JavaFX SDK 2010-04-18

    Ubuntu 9.10 amd64 install the JavaFX SDK The more you use Xp slower recently, and interest on Vista has much to complain. Also decided to try under Linux (Ubuntu before experienced the Live CD), but still unfamiliar, out of a night, ready for the sys

  • ubuntu 9.10 internet problems resolved 2010-04-25

    ubuntu 9.10 network card configuration strange, using its own network manager can not access how to configure, and later heard that bug ~ ~ ~, then the following two kinds of ways to configure network card. Do not use native network manager, use wicd

  • Hard drive to install ubuntu 9.10 2010-03-04

    First of all we want is ubuntu 9.10 under the CD-ROM http://www.ubuntu.org.cn/getubuntu/download/ Here recommended CD to install, I tried to use DVD to install, a lot of wasted time, DVD is a lot of the default installation is fully installed, then u

  • ubuntu svn server configuration 2010-05-29

    Original Source: https: / / wiki.ubuntu.com / SubVersion Original author: ubuntu.com Installation Fortunately, Subversion has been included in the main warehouse. Therefore, to install Subversion, you only need a simple operation: $ sudo apt-get inst

  • ubuntu svn service configuration 2010-11-24

    ubuntu svn service configuration 1, add the user group sudo addgroup subversion sudo usermod-G subversion-a www-data apt-get install subversion View the results of configuration $ Cat / etc / group | grep subversion subversion: x: 1001: www-data, exp

  • Ubuntu 9.10 install and configure the JDK environment variable 2011-03-31

    I am here to Ubuntu 9.10, for example (1) To download JDK, here using (jre-6u24-linux-i586.bin) is not recommended. RPM because the Ubuntu deb under the rpm should be converted to use, but many more steps. (B) start the Ubuntu open terminal, switch t

  • redmine in ubuntu server 10.04 installation and configuration under 2011-03-21

    Consider redmine to manage the current project, to find a lot of redmine installation configuration information. In fact, on the ubuntu server install redmine is very easy to do. Here I am finishing the installation and configuration process to write