`
hillmover
  • 浏览: 34025 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

Installation - Subversion

阅读更多

1. 环境

  • Cent OS 4.7

2. 前提

已安装:

  • Apache 2(--enable-ssl)

     安装文档参考: Installaction - Httpd

  • Neon (--with-ssl)

     安装文档参考该文档附录: Neon的安装。

3. 步骤

subversion.tigris.org 下载 subversion-1.5.5.tar.bz2安装包。

 

shell> ./configure \
--prefix=/work/tools/subversion \
--with-apxs=/work/tools/apache2/bin/apxs \
--with-apr=/work/tools/apache2 \
--with-apr-util=/work/tools/apache2 \
--with-neon=/usr/local \
--with-ssl

 

shell> make

 

shell> make install

4. 配置

shell> vi /etc/profile

SVN_HOME=/work/tools/subversion
PATH=$SVN_HOME/bin:$PATH
export $PATH

 

shell> source /etc/profile

 

shell> mkdir -p /work/repositories

 

shell> svnadmin create --fs-type fsfs /work/repositories/repo1

 

shell> cd /work/tools/apache2


shell> vi conf/httpd.conf

<Location /svn>
  DAV svn
  SVNListParentPath on
  SVNParentPath /work/repositories
  AuthType Basic
  AuthName "Hillmover Code Repositories"
  AuthUserFile svnpasswd
  AuthzSVNAccessFile svnaccess
  Require valid-user
</Location>

 

shell> bin/htpass -c svnpasswd scm

New password: xxxx

Re-type new password: xxxx

shell> bin/htpass svnpasswd hillmover

New password: xxxx

Re-type new password: xxxx

shell> bin/htpass svnpasswd anotherDev1

...

shell> bin/htpass svnpasswd guest

...

 

shell> vi svnaccess

[groups]
admin = scm
dev = hillmover, anotherDev1

# Default access rule for ALL repositories
# Everyone cannot access, admins can read/write.
[/]
* =
@admin = rw

# Allow developers complete access to their project repos
[repo1:/]
@dev = rw

 

shell> service httpd restart

 

5. 校验

Case 1:

摘要:用户hillmover可以读写代码库repo1。

步骤:

   1. User opens the web browser(IE/Firefox), go to page:  http://localhost/svn/repo1/
   2. Web browser pop-ups a dialog for authentication
   3. User inputs 'hillmover '/'password'

期望结果:

   1. Web browser displays the contents of repo1.
 

 

Case 2:

摘要:用户guest不可以读/写代码库repo1。

步骤:

   1. User opens the web browser(IE/Firefox), go to page:  http://localhost/svn/repo1/
   2. Web browser pop-ups a dialog for authentication
   3. User inputs 'guest '/'password'

期望结果:

   1. Web browser displays a warning about failed authentication, and no any contents of repo1 are displayed.
 

附: Neon的安装

  1. webdav.org 下载neon-0.28.3.tar.gz安装包.
  2. shell> ./configure --with-ssl
  3. shell> make & make install
分享到:
评论

相关推荐

    ubuntu subversion 离线安装包

    tar -xvf subversion_1.9.3_offline_installation_package.tar.gz ``` 2. **安装依赖**:离线安装包可能不包含所有依赖项,所以需要先确保系统已安装必要的依赖。在Ubuntu 16.04中,你可以使用以下命令检查并安装...

    samba4-howto

    - 通过TarBall或Subversion下载Samba源码。 2. **编译源码**:使用`./configure && make`命令进行配置和编译。 3. **安装**:执行`make install`命令完成安装过程。 #### 九、结论 Samba 4.0 是一个强大的工具,...

    Subversion+Trac+Installation+Manual

    《Subversion+Trac+Installation+Manual》配置指南 Subversion和Trac是两种在软件开发领域广泛应用的工具。Subversion是一款开源的版本控制系统,它允许团队协作开发,跟踪文件和目录的变更历史,便于代码管理和...

    Subversion Installation guide

    《Subversion安装指南》 Subversion(简称SVN)是一款流行的开源版本控制系统,它用于管理软件项目的源代码,便于团队协作和代码版本控制。本文将详细介绍如何在Windows环境下安装Subversion,包括Subversion服务器...

    windows下svn服务器端的配置

    通过命令行模式运行这个文件,如`D:\software installation\Setup-Subversion-1.6.16.msi`,按照提示进行安装。假设安装目录为`D:\Program Files\Subversion`。 2. **创建仓库**:安装完成后,使用`svnadmin`命令...

    SVN_Installation_Guide

    tar -jxvf subversion-x.x.x.tar.bz2 cd subversion-x.x.x ``` 3. 编译和安装: ```bash ./configure --prefix=/usr/local/svn make sudo make install ``` ### 2. 创建用户和仓库 #### **创建用户** 1....

    VisualSVN Server 3.5.4 破解补丁

    The installation process is extremely simple and allows you to setup a full-featured and ready to use Subversion server in just a few clicks. Upgrades to newer versions are simple too. Learn more... ...

    apr-util-1.3.9.tar

    2. 配置环境:通常需要先安装 APR,然后运行 `cd apr-util-1.3.9` 和 `./configure --with-apr=/path/to/apr/installation` 3. 编译源代码:`make` 4. 安装库:`sudo make install` 5. 在项目中链接 APR-util:通过 ...

    eclipse工具插件jetty_svn

    在此案例中,用户只需将解压后的jetty_svn插件文件放在Eclipse的根目录下,然后通过Eclipse的“Help” -&gt; "About Eclipse" -&gt; "Installation Details" -&gt; "Plug-ins"来查看和确认插件是否正确安装。 【标签】...

    gtk-engines-

    subversion repository: http://svn.gnome.org Bugs ==== GTK+ engines are a vital part of the desktop and should be very stable. A bug in the engine can easily cause random application crashes and ...

    R语言教程英文版:R Installation and Administration.pdf

    同时,用户也可以从源代码中编译R语言,使用Subversion和rsync获取最新的补丁和开发版本。 2. 安装R语言 R语言可以在多种操作系统上安装,包括Unix-alikes、Windows和macOS。安装R语言需要先编译源代码,然后安装...

    eric5-5.3.1

    Installation Installing eric5 is a simple process. Just execute the install.py script (type python install.py -h for some help). Please note that the installation has to be performed using the ...

    myEclipse---svn插件

    1. `installation_guide.html` - 安装指南 2. `configuration_steps.txt` - 配置步骤说明 3. `plugin_eclipse.rar` - myEclipse svn插件的安装文件 4. `sample_project.zip` - 使用svn的示例项目 5. `quick_start....

    SVN使用详解

    SVN(Subversion)是一个版本控制系统,用于维护与发展文件、代码等信息的变更历史,广泛用于软件开发团队中。版本控制系统是一种记录文件变化的方式,可以让团队成员协同工作于同一文件集合,同时能够追溯和还原...

    配置Linux操作系统.docx

    - 安装Subversion服务:`yum -y install subversion`。 - 创建版本库并配置权限。 - 启动SVN服务。 **9. Webmin** - 安装Webmin控制面板:`yum -y install webmin`。 - 配置Webmin服务。 - 通过Web界面管理服务器。...

    Manning - Eclipse In Action.pdf

    - **Version Control Integration**: How to integrate version control systems like Git or Subversion directly into Eclipse for seamless source code management. **Chapter 5: Building with Ant** - **...

    inux centos下配置mysql,Java,SVN文本叙述

    sudo mysql_secure_installation ``` 根据提示操作,包括设置新密码、删除匿名用户、禁止远程root登录等。 二、配置Java Java是跨平台的编程语言,用于开发和运行各种应用程序。在CentOS上安装OpenJDK(开源Java...

    Eclipse 常用技巧功能

    - Eclipse的生态系统中有大量的插件,如Mylyn(任务管理)、Maven插件(构建管理)、Subversion或Git(版本控制)等,这些插件极大地扩展了Eclipse的功能。 7. **项目管理和构建**: - 通过Project Explorer或...

    maven学习.docx

    - 重启 Eclipse 后,通过 Help &gt; About Eclipse &gt; Installation Details 检查已安装的软件列表,确认 m2eclipse 是否安装成功。 - 在 File &gt; New &gt; Other 中查找 Maven 相关选项,确认是否能够创建 Maven 项目。 ...

Global site tag (gtag.js) - Google Analytics