Creating an iHRIS ISO
From IHRIS Wiki
Note: This contains out of date information
While I haven't yet found a way to create a single installation CD containing everything needed to install the complete system, the following method creates an "Update CD" for Ubuntu LTS that contains all the packages necessary to install iHRIS Manage as well as all Operating System Updates. I used these steps to create this ISO image.
I recommend using a freshly installed Ubuntu LTS system for this. Using VMWare or VirtualBox OSE is useful for this. Ubuntu's Gutsy release includes the virtualbox-ose that provides a GUI for setting up
- Install apt-move (aptitude install apt-move). This tool will take the package cache and build Debian archive that we can burn to disk.
- Change the COPYONLY in /etc/apt-move.conf so that it reads COPYONLY=yes
- Add the IntraHealth repository by editting /etc/apt/sources.list and adding the line: deb http://www.intrahealth.org/debian/ ./
- Download all the updates without installing them. We avoid installing them to save time. (apt-get update; apt-get --download-only update)
- Download all packages necessary to install ihris-manage and mysql-server. (apt-get --download-only ihris-manage mysql-server)
- Create the repository. (apt-move update)
- Set up Disk metadata. (mkdir /mirrors/debian/.disk; echo 'IntraHealth Updates' > /mirrors/debian/.disk/info)
- (Skipped: Creating a GPG key and signing the Release. I want to have an official IntraHealth Key for this. And I erased the one I used.)
- Create the ISO. (aptitude install mkisofs; mkisofs -r -A 'IntraHealth Update' -o intrahealth-update.iso /mirrors/debian/)
- Burn the ISO to Disk
On the target system
- Add the disk's key to Apt's keyring.
- Add the disk to the list of disks available (apt-cdrom add)
- Install mysql-server (aptitude install mysql-server)
- Install ihris-manage (aptitude install ihris-manage)
(TODO: Figure out the keyring. I would like to have one that "just works", but I want to do this the right way.)