Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2010-06-18 11:33:56
Size: 715
Editor: fruity
Comment:
Revision 6 as of 2010-06-18 12:02:55
Size: 1698
Editor: fruity
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
''works with ubuntu too...'' ''works with ubuntu too...'' [[https://help.ubuntu.com/community/LiveCDCustomization|Ubuntu Live CD Customization]]
------
Line 13: Line 14:
Just to be sure not to have locales problems during installation of new packages export 2 system variables:

{{{

export HOME=/root
export LC_ALL=C

}}}

Chroot:

{{{

sudo mount --bind /dev/ edit/dev
sudo chroot edit
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts

}}}

This is for some reasons connected with a couple of dbus bugs, so I'll go through it(as root):

{{{

dbus-uuidgen > /var/lib/dbus/machine-id

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

}}}

When you want to remove packages remember to use purge
I investigated a bit the matter, not enough to know whats going on but enough to know is a good practice.

Once in the chroot start poking:

{{{

apt-get update
apt-get install cinelerra sox twolame mpeg2dec a52dec libsox-fmt-all a52dec darkice darksnow

}}}

Remaster your own live installer, live iso

works with ubuntu too... Ubuntu Live CD Customization


Fetch your favorite iso, in the following examples we will take puredyne-911-carrot_and_coriander iso to show that this procedures can apply to a lot of different isos/systems.

The basic procedure is simple:

  • mount in a loop the iso;
  • copy the content of the image in a directory of choice except for the main squashfs filesystem (on ubuntu and debian named filesystem.squash, on dynebolic dyne.sys);
  • uncompress the squashfs into another directory of choice;
  • copy from the host system or edit manually /etc/resolv.conf to use working dns;
  • do a bind mount of dev,proc and sys into the uncompressed directory;

Just to be sure not to have locales problems during installation of new packages export 2 system variables:

export HOME=/root
export LC_ALL=C

Chroot:

sudo mount --bind /dev/ edit/dev
sudo chroot edit
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts

This is for some reasons connected with a couple of dbus bugs, so I'll go through it(as root):

dbus-uuidgen > /var/lib/dbus/machine-id

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

When you want to remove packages remember to use purge I investigated a bit the matter, not enough to know whats going on but enough to know is a good practice.

Once in the chroot start poking:

apt-get update
apt-get install cinelerra sox twolame mpeg2dec a52dec libsox-fmt-all a52dec darkice darksnow

fruity/debian-live/remastering (last edited 2010-07-16 21:43:41 by asbesto)