debian live cd

easy method:

download from http://cdimage.debian.org/debian-cd/current-live/i386/bt-hybrid/
create a remaster: http://l3net.wordpress.com/2013/09/21/how-to-build-a-debian-livecd/

geeky method:

do all these with root user:
sudo su -

apt-get install xorriso live-build syslinux squashfs-tools
mkdir ~/livework && cd ~/livework
debootstrap –arch=i386 wheezy chroot

cd ~/livework
chroot chroot
mount none -t proc /proc
mount none -t sysfs /sys
mount none -t devpts /dev/pts
export HOME=/root
export LC_ALL=C
export PS1=”\e[01;31m(live):\W \$ \e[00m”
apt-get install stressapptest memtester iotop ethstats nethogs iftop iptraf mc vim nmap tcpdump lshw htop ssh dialog dbus linux-image-686 live-boot
dbus-uuidgen > /var/lib/dbus/machine-id
passwd root
vim /etc/hostname
apt-get clean
rm /var/lib/dbus/machine-id && rm -rf /tmp/*
umount /proc /sys /dev/pts
exit
cd ~/livework
rm -Rf binary
mkdir -p binary/live && mkdir -p binary/isolinux
cp chroot/boot/vmlinuz-3.2.0-4-686-pae binary/live/vmlinuz
cp chroot/boot/initrd.img-3.2.0-4-686-pae binary/live/initrd
mksquashfs chroot binary/live/filesystem.squashfs -comp xz -e boot
cp /usr/lib/syslinux/isolinux.bin binary/isolinux/.
cp /usr/lib/syslinux/menu.c32 binary/isolinux/.
vim binary/isolinux/isolinux.cfg
#==================================================
ui menu.c32
prompt 0
menu title Boot Menu
timeout 300

label live-686
menu label ^R&D Live (686)
menu default
linux /live/vmlinuz
append initrd=/live/initrd boot=live persistence quiet

label live-686-failsafe
menu label ^R&D Live (686 failsafe)
linux /live/vmlinuz
append initrd=/live/initrd boot=live persistence config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal

endtext
#==================================================

cd ~/livework
xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes \
-isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin -partition_offset 16 \
-A “Debian Live”  -b isolinux/isolinux.bin -c \
isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -o remaster.iso binary

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s