2010-07-14

cgit - on Debian Apache2

cgit - a very fast web frontend for git repositories

installation to Apache2 on debian lenny

  • Setup git server by gitosys. ref.-link1(lang_JP),link2(lang_EN)
  • add permission by chomod 755 to git repo for cgit exec .git.(Maybe chmod 755 -R /home/git/repositories/)
  • build & install cgit.(I had error curl for getting git and extract tar.bz2 at make get-git.)
  • config file:/etc/cgitrc
  • virtual-root=/cgi-bin/

    # Enable caching of up to 1000 output entriess
    cache-size=1000

    # Show extra links for each repository on the index page
    enable-index-links=1

    # Show number of affected files per commit on the log pages
    enable-log-filecount=1

    # Show number of added/removed lines per commit on the log pages
    enable-log-linecount=1

    # Enable statistics per week, month and quarter
    max-stats=quarter

    # Set the title and heading of the repository index page
    root-title=tknv git repositories

    # Set a subheading for the repository index page
    root-desc=tracking the tknv development

    # Include some more info about foobar.com on the index page
    root-readme=/var/www/htdocs/about.html

    # Allow download of tar.gz, tar.bz2 and zip-files
    snapshots=tar.gz tar.bz2 zip

    ##
    ## List of common mimetypes
    ##

    mimetype.gif=image/gif
    mimetype.html=text/html
    mimetype.jpg=image/jpeg
    mimetype.jpeg=image/jpeg
    mimetype.pdf=application/pdf
    mimetype.png=image/png
    mimetype.svg=image/svg+xml


    ##
    ## List of repositories.
    ## PS: Any repositories listed when section is unset will not be
    ## displayed under a section heading
    ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
    ## and included like this:
    ## include=/etc/cgitrepos
    ##


    repo.url=SuperEngine
    repo.path=/home/git/repositories/SuperEngine.git
    repo.desc=the SUperEngine repository
    repo.owner=foo@bar.com

    repo.url=OSGi-module
    repo.path=/home/git/repositories/OSGi-module.git
    repo.desc=the OSGi-module repository
    repo.owner=foo@bar.com
  • config file:/etc/apache2/httpd.conf

  • ServerName halryporya.co.foo
    DocumentRoot /var/www/htdocs/cgit/
    ScriptAlias /cgi-bin/ "/var/www/htdocs/cgit/cgit.cgi/"

    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all

    Alias /cgit.png /var/www/htdocs/cgit/cgit.png
    Alias /cgit.css /var/www/htdocs/cgit/cgit.css
    Alias / /var/www/htdocs/cgit/cgit.cgi/

  • check by w3m http://localhost/cgi-bin/

http://halryporya.co.foo/cgi-bin/

by browser

watching CGIT site...

0 件のコメント:

BCM4321 on Latitude D430

At kernel 3 find wireless hardware lspci | grep -i wireless  check using current kernel module with PCI bus address lspci -vv -s 0c:...