Custum DebianLive to Image PC’s

Requirements for this tutorial:

  • A PC or VMware machine with Debian installed on it
  • A PC with a static ip and windows share that requires no authentcation ( samba works as well )
  • A bunch of blank cd’s or VMware ( or any visualization software that can boot from an iso )

Setup Your DebianLive environment:

  1. apt-get install livehelper
  2. mkdir /debianlive
  3. cd /debianlive
  4. lh_config
  5. lh_build ( This will take a long time, It took a half hour on my 10 meg connection )

now your /debianlive directory should have a bunch of subdirectorys and files like binary  binary.iso  binary.list  binary.packages  cache  chroot  config  scripts the most important one that we are going to be using is the config directory, This is where debianlive allows us to set all the paramiters and what gets installed on the live cd. there are 20 or so subdirectory’s here, the ones we are going to be looking at ar the following.

  • chroot_local-includes ( how we add non .deb programs and scripts )
  • chroot_local-packageslists ( text files with lists of software to install )
  • chroot_local-hooks ( to the best of my knowlage this is scripts that run once in the chrooted enviroment )

Adding software to the image:

Now we can add the software required to make the images. The software I am going to be using is called partimage. Partimage creates an image that can be restored to a hardrive, It supports just about all file-systems ( they say ntfs is experimental but I have never had any issues with it ). If you had a lot more time to run the images and larger hardrive space you could also use dd to create your images. then you could mount the image’s without having to restore them to a hardrive ( mount /source.img /dest -o loop ).

Currently Under Construction

Leave a Reply