livecd

Ubuntu LiveCD quick tweaks

GoTo: Applications > Accessories > Terminal

# Adobe Flash
#wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb -P /tmp && \
#sudo dpkg -i /tmp/install_flash_player_10_linux.deb
sudo add-apt-repository ppa:sevenmachines/flash
sudo apt-get update
sudo apt-get install flashplugin64-installer

# Skype
wget http://www.skype.com/go/getskype-linux-beta-ubuntu-32 -P /tmp/ && \
sudo dpkg -i /tmp/skype*.deb || \
sudo apt-get install -f -y

# Nvidia graphic driver

Ubuntu emergency LiveCD from harddisk (boot from iso file)

sudo su
 
mkdir /boot/iso
wget http://cdimage.ubuntu.com/daily-live/current/karmic-desktop-i386.iso -P /boot/iso
 
cat <<EOF>> /boot/grub/grub.cfg
menuentry "Ubuntu LiveCD" {
 loopback loop /boot/iso/karmic-desktop-i386.iso
 linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/karmic-desktop-i386.iso noprompt --
 initrd (loop)/casper/initrd.lz
}
EOF

MultiBoot USB with Grub2 (boot directly from iso files)

DEVICE=/dev/sdb
VOLUME=MultiBootUSB
 
 
# create filesystem on usb pen
sudo mkfs.vfat -n ${VOLUME} ${DEVICE}1
 
 
# mount usb
mount ${DEVICE}1 /mnt/
 
 
# install grub2 on usb pen
grub-install --no-floppy --root-directory=/mnt ${DEVICE}
 
 
# create grub config
cat <<EOF> /mnt/boot/grub/grub.cfg
menuentry "Ubuntu Live 11.04 64bit" {
        loopback loop /boot/iso/ubuntu-11.04-desktop-amd64.iso
        linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-11.04-desktop-amd64.iso noeject noprompt --
        initrd (loop)/casper/initrd.lz
}
 
menuentry "Ubuntu

Ubuntu MID USB boot

DEVICE=/dev/mmcblk0
IMG=ubuntu-8.10-mid-lpia.img
VOLUME=SDCARD_2GB
 
wget http://releases.ubuntu.com/8.10/${IMG} -P /tmp
 
mkfs.vfat -n ${VOLUME} ${DEVICE}p1
syslinux -f ${DEVICE}p1
 
install-mbr ${DEVICE}
 
mount ${IMG} /mnt/ -o loop
cp -a /mnt/* /media/${VOLUME}
cp -a /mnt/.disk/ /media/SDCARD_2GB
umount /mnt
 
sync
umount /media/${VOLUME}
 
 
 
# netboot
LABEL linux
   MENU LABEL Ubuntu MID 
   KERNEL ubuntu-8.10-mid/casper/vmlinuz
   APPEND initrd=ubuntu-8.10-mid/initrd.img boot=casper netboot=nfs nfsroot=192.168.1.2:/tftpboot/ubuntu-8.10-mid file=/cdrom/preseed/mid.seed p

syslinux.cfg

# create usb disk
cp /usr/lib/syslinux/vesamenu.c32 /mnt    
cp /usr/lib/syslinux/memdisk /mnt
 
# tinycorelinux
wget ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.1.iso -P /tmp
mount /tmp/tinycore_2.1.iso /mnt/ -o loop
cp /mnt/boot/bzImage /mnt/boot/tinycore.gz  /media/USB_MINI/boot/tinycore/
 
# netinstall
mount mini.iso /mnt/ -o loop
cp /mnt/initrd.gz /mnt/linux /media/USB_MINI/boot/netinstall/
 
 
 
# syslinux.cfg
default boot/vesamenu.c32
timeout 100
menu title Multi Boot USB
 
LABEL Localboot
localboot 0x80
 
LABEL Ubuntu
KERNEL /c

Create LiveCD with Debian live-helper

# test
 
apt-get install live-helper cdebootstrap
 
cat <<EOF>> /usr/share/cdebootstrap/suites
Suite: hardy
Config: generic-ubuntu
Keyring: ubuntu-archive-keyring.gpg
EOF
 
# sed
/usr/bin/lh_chroot_sources
${LH_DISTRIBUTION}/updates
${LH_DISTRIBUTION}-updates
 
mkdir ~/live && cd ~/live
 
lh_build
 
http://clemensfam.org/john/?p=39

Create Ubuntu LiveCD from Squash

#!/bin/bash
 
# last version
# http://dl.dropbox.com/u/4170695/scripts/mkTSClient.sh
 
# http://ubuntuforums.org/showpost.php?p=5175091&postcount=27
 
# version: 2009-09-09
 
# todo
# configure locales
# configure hostname
# clean up "fglrx"
# check install_lirc
# umount all from chroot envirement, rm: Entfernen von Verzeichnis „$HOME/xbmc-XXX-livecd-hardy-i386/chroot/lib/modules/2.6.24-21-generic/volatile“ nicht möglich: Device or resource busy
 
# parameter
# architecture: i386, amd64
ARCH=i386
# distribution: hardy, intrepid, jaunty, karmic
DISTRIB_CODENAME=karmic
 
# chec

Remaster Ubuntu CD (TEST)

sudo apt-get install squashfs-tools mkisofs qemu
 
-- wget ubuntu-8.04-desktop-i386.iso
sudo mount download/iso/ubuntu-8.04-desktop-i386.iso /mnt/ -o loop
 
mkdir ~/live
cd ~/live
 
mkdir extract-cd
#rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
 
mkdir squashfs
sudo mount -t squashfs -o loop /mnt/casper/filesystem.squashfs squashfs
 
mkdir edit
sudo cp -a squashfs/* edit/
 
sudo cp /etc/resolv.conf edit/etc/
 
sudo cp /etc/hosts edit/etc/
 
sudo mount --bind /dev/ edit/dev
 
sudo mount --bind /dev/ edit/dev
 
sudo chroot edit
mount -t proc none /proc
mount -t

Instal KVM (Kernel-based Virtual Machine)

# install kvm
sudo apt-get install -y qemu kvm ubuntu-vm-builder
 
# install PXE boot ROM
apt-get install kvm-pxe
http://rom-o-matic.net/etherboot/etherboot-git/etherboot.git/contrib/rom-o-matic/
1. NIC/ROM type: e1000:e1000-0x1026-82545gm-copper -- [8086,1026]
2. ROM output format: Binary ROM Image(.zrom)
3. Configure, ASK_BOOT: -1
4.

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!


Syndicate content