Information Technology Reference
In-Depth Information
You want to install and run the web application cgit. This is a CGI script written in C.
It is an alternative to Gitweb. You want to allow browsing in all the repositories under
the git-recipes directory.
Solution
Initialize the virtual machine:
# Host OS (e.g., Windows, Linux, OS X)
$ cd git-recipes
$ mkdir 11-09
$ cd 11-09
Create the Vagrantfile shown in Listing 11-7 . Remember that you may need to ad-
just the folder. Then boot the virtual machine and open the ssh session:
# Host OS (e.g., Windows, Linux, OS X)
$ vagrant up
$ vagrant ssh
Update the system packages and install git, apache2, and all the tools and libraries
necessary to compile cgit:
# Guest OS (Ubuntu 12.04)
$ sudo apt-get update -y
$ sudo apt-get install -y git
$ sudo apt-get install -y apache2
$ sudo apt-get install -y make libssl-dev libz-dev
gettext libexpat1-dev libcurl4-openssl-dev
Download cgit sources:
# Guest OS (Ubuntu 12.04)
$ git clone --recurse-submodules --depth 1
git://git.zx2c4.com/cgit
Compile and install cgit with the following commands:
Search WWH ::




Custom Search