Monday, August 18, 2008

Customization using live-helper

Linux live cd are very useful installation disks and rescue disks are the main application of the technologies used to make a live cd i am going to talk about how to make a debian linux live cd in this how-to i will  cover how to use the application called live-helper first thing you need is a installation of debian it is best to use a debian sid host system to build the iso with live-helper using debian sid ensures that you have all the newest tools and the latest features fixes of live-helper to simplify this write-up i will assume you are using debian sid if you wish to use debian etch or lenny then you can set up apt pinning it will allow you to grab the newest packages for live-helper and all the dependencies so you can keep your precious stable system and still have the latest version of live-helper start off by updating the apt aptitude database and then upgrade any packages on your sid system to the newest possible version. I have used Qemu for running live CD

  1. su apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade
    next tell apt to grab the latest live-helper

    Add following line to 
    deb sid/snapshots main contrib non-free

  4. apt-get install live-helper 

    Basic Command for live-helper

    • lh_config - creates the configuration file this is where you specify desktop architecture extra software include installer and so forth
    • lh_build - command to start the build other important commands
    • lh_clean --binary use this to clean things up before building another image using the same
    • config lh_clean use this to clean things up before building another image when the config has changed
    • lh_clean --purge use this to do a super-clean this will purge all packages from the cache some
    • lh_config options
                    -p specify a package list from usr share live-helper lists or specify your own file 
                    --packages specify packages you want to include
                    -d specify the distribution etch lenny sid
                    -a specify the architecture i386 amd64
                   --debian-installer businesscard include the business card installer
                   --debian-installer enabled include the standard installer 
  5. mkdir livebuild
  6. cd livebuild 
  7. su lh_config -d sid -a i386 -p gnome-core --packages list of packages
  8. lh_build
    (when it is done look in the livebuild folder for the binary.iso )
  9. qemu -m memory_size -cdrom -filename iso
    (To run test iso )

No comments: