玩蛇网提供最新Python编程技术信息以及Python资源下载!

Linux Ubuntu ViewVC安装流程

玩蛇网推荐图文教程:python 列表

这里的测试Linux系统为: 8.04,Linux Ubuntu ViewVC安装流程。在这里你要先确定自己安装了Subversion和Apache。Ubuntu ViewVC安装流程如下:

ViewVC安装开始啦!

首先,ViewVC需要的环境

    For CVS Support:

      * Python 1.5.2 or later
          (http://www.python.org/)
      * RCS, Revision Control System
          (http://www.cs.purdue.edu/homes/trinkle/RCS/)
      * GNU-diff to replace diff implementations without the -u option
          (http://www.gnu.org/software/diffutils/diffutils.html)
      * read-only, physical access to a CVS repository
          (See http://www.cvshome.org/ for more information)

    For Subversion Support:

      * Python 2.0 or later
          (http://www.python.org/)
      * Subversion, Version Control System, 1.3.1 or later
          (binary installation and Python bindings)
          (http://subversion.tigris.org/)

获取所需要的安装包:
apt-get install python-subversion
apt-get install python-pygments

开始正式的安装viewvc,如下:
tar zxvf viewvc-1.1.2.tar.gz
cd viewvc-1.1.2
./viewvc-install

两次回车安装到/usr/local/viewvc-1.1.2
Installation path [/usr/local/viewvc-1.1.2]:
DESTDIR path (generally only used by package maintainers) []:

配置viewvc.conf是一定要做的事情,参考如下:vi /usr/local/viewvc-1.1.2/viewvc.conf
简单配置只需更改root_parents
enable_syntax_coloration = 1 #语法高亮
allowed_views = annotate, diff, markup, roots, co, tar #允许的视图

Edit <VIEWVC_INSTALLATION_DIRECTORY>/viewvc.conf for your specific
 configuration.  In particular, examine the following configuration options:
     cvs_roots (for CVS)
     svn_roots (for Subversion)
     root_parents (for CVS or Subversion)#所有svn版本库的根目录
     default_root
     root_as_url_component
     rcs_dir
     mime_types_files

  There are some other options that are usually nice to change. See
  viewvc.conf for more information.  ViewVC provides a working,
  default look. However, if you want to customize the look of ViewVC
  then edit the files in <VIEWVC_INSTALLATION_DIRECTORY>/templates.
  You need knowledge about HTML to edit the templates.

Linux Ubuntu ViewVC简单安装流程如上,希望能对大家有帮助。

玩蛇网文章,转载请注明出处和文章网址:https://www.iplaypy.com/linux/l6953.html

相关文章 Recommend

玩蛇网Python互助QQ群,欢迎加入-->: 106381465 玩蛇网Python新手群
出炉日期:2017-01-06 14:05 玩蛇网 www.iplaypy.com

您现在的位置: 玩蛇网首页 > linux入门教程 > 正文内容
我要分享到:

必知PYTHON教程 Must Know PYTHON Tutorials

必知PYTHON模块 Must Know PYTHON Modules