From 7911089b62a3eea2865b654bccc1dfdb6151462f Mon Sep 17 00:00:00 2001 From: fgerlits Date: Tue, 9 Jan 2007 16:08:11 +0000 Subject: [PATCH] wrote a howto about creating a repository CD --- campcaster/doc/release.html | 7 +- campcaster/doc/repositoryCdHowto.html | 100 ++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 campcaster/doc/repositoryCdHowto.html diff --git a/campcaster/doc/release.html b/campcaster/doc/release.html index d68a36b17..d6f245668 100644 --- a/campcaster/doc/release.html +++ b/campcaster/doc/release.html @@ -249,6 +249,11 @@ friends and contacts
  • Other mailing lists and friendly/relevant organizations
  • -
    + + +

    Other

    +You may want to create a repository CD, +too. +

    diff --git a/campcaster/doc/repositoryCdHowto.html b/campcaster/doc/repositoryCdHowto.html new file mode 100644 index 000000000..c3e628bc2 --- /dev/null +++ b/campcaster/doc/repositoryCdHowto.html @@ -0,0 +1,100 @@ + + + + + Campcaster repository CD creation process documentation + + + +

    Preface

    +This document is part of the Campcaster +project, Copyright © 2004 Media +Development Loan Fund, under the GNU GPL.
    + + + +

    Scope

    +This document describes the process of creating a repository CD containing +the Campcaster deb packages. + + +

    Introduction

    +A repository CD is a CD which contains the Campcaster deb packages, plus +all the other deb packages which Campcaster depends on. Such a CD can be +used to install Campcaster on computers with limited or no internet +connectivity. + +The repository CD creation process consists of the following steps:
    + + + +

    Collect the necessary deb packages

    +Start with a fresh Ubuntu system installed from the install CD, with no additional packages. Add the universe repository and the campware.org +repository +
    deb http://code.campware.org/ubuntu dapper main
    +to /etc/apt/sources.list. + +Type +
    sudo apt-get clean
    +to clean the package cache, and install Campcaster normally. Install any +other deb packages you want to be on the repository CD. Now copy the +packages into your home directory: +
    cd
    +mkdir repository
    +cd repository
    +mkdir dist
    +cp /var/cache/apt/archive/*.deb dist/
    + + +

    Create the package listing

    +Type +
    cd ~/repository
    +apt-ftparchive packages dist > Packages
    +gzip --best Packages
    +this will create a Packages.gz file containing the list of +packages. + + +

    Create the iso image

    +Type +
    cd ~/repository
    +mkisofs -J -r -pad -v -V "Campcaster repository CD" \
    +        -o ../Campcaster-repository.iso .
    +Note the space and dot at the end of the command. The volume label +(-V) can be up to 32 characters long. + +

    +It's OK to add more files to the CD; apt-cdrom (or, equivalently, +Synaptic's "Add CD-ROM" button) is smart enough to find the repository among +all the other stuff. + + +

    Test the iso image

    +Burn the iso file to a CD: +
    cdrecord -scanbus
    +cdrecord -v dev=ATA:1,0,0 ~/Campcaster-repository.iso
    +(change 1,0,0 to whatever scanbus told you, of course). Then try adding +the CD as a repository with +
    apt-cdrom add
    + +

    +You can also use Nautilus and Synaptic instead of mkisofs, cdrecord +and apt-cdrom. + +

    +TODO: it's probably possible to mount and check the iso without burning it +to a CD first. +

    + + +