Benutzer-Werkzeuge

Webseiten-Werkzeuge


server:joel:gitweb:installation

Dies ist eine alte Version des Dokuments!


gitweb (git.feggm.de)

Installation

  1. install package through repository
    apt-get install gitweb
  2. create web-directory
    mkdir -p /var/www/git/cgi-bin
  3. create soft-link for gitweb.cgi
    ln -s /usr/lib/cgi-bin/gitweb.cgi /var/www/git/cgi-bin
  4. copy gitweb files to web-directory
    cp -a /usr/share/gitweb/* /var/www/git
  5. enable apache rewrite module
    a2enmod rewrite
  6. create vhost config-file
    vi /etc/apache2/sites-available/git
  7. enable virtual host
    a2ensite git
  8. add apache-user (e.g. www-data) to git-group (e.g. git)
  9. create softlink to public repo
    ln -s /var/git/repositories/sample.git /var/cache/git/
  10. add a description to the repository
    vi /var/git/repositories/sample.git/description
  11. set owner of repository
    vi /var/git/repositories/sample.git/config
    • [gitweb]
            owner = "Your name"
  12. restart apache
    service apache2 restart

<note>Repeat the steps 9 to 11 for all repositories which should be accessible through gitweb.</note>

Custom Theme

cd /var/www/git/
git clone https://github.com/kogakure/gitweb-theme.git
cd static
mv gitweb.css gitweb_original.css
mv gitweb.js gitweb_original.js
mv git-logo.png git-logo_original.png
mv git-favicon.png git-favicon_original.png
ln -s ../gitweb-theme/gitweb.css gitweb.css
ln -s ../gitweb-theme/gitweb.js gitweb.js
ln -s ../gitweb-theme/git-logo.png git-logo.png
ln -s ../gitweb-theme/git-favicon.png git-favicon.png

<note>The repository has been cloned to git.feggm.de</note>

server/joel/gitweb/installation.1355330053.txt.gz · Zuletzt geändert: (Externe Bearbeitung)