歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu下ViewVC安裝配置

測試Linux系統:Ubuntu 8.04

在這裡我認為你已經安裝了Subversion和Apache,可以看這裡參見subversion apache 安裝配置。http://www.linuxidc.com/Linux/2012-04/59317.htm

ViewVC安裝

1. 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

2. 安裝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) []:

3. 配置(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.

 

ViewVC 的詳細介紹:請點這裡
ViewVC 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved