Your SlideShare is downloading. ×

Os Bernier

753

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
753
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Wrapping Your own Live CD
    • Robert Bernier,
    • PostgreSQL Business Intelligence Analyst
    • Time: 1:45PM - 2:30PM
    • Location: E143-144
    • Track: Linux
    • [email_address]
  • 2. Talk Summary
    • What's a Live CD?
    • How does it work?
    • An overview of customizing the Ubuntu live CD
    • Creating pg_live
    • Lessons Learned / Tips
    • Issues not covered
    • References
    • [email_address]
  • 3. What's a Live CD?
    • A live CD is an operating system distribution that is executed upon boot from a read only medium, without it being first installed on a hard drive.
    • It's a CD or DVD medium that can be read by an optical device!
    • The machine/pc must be capable of booting off the device
    • Live CDs work on any hardware architecture
    • Examples: - ubuntu / kubuntu / xubuntu - Knoppix - FreeSBIE - others (http://www.livecdnews.com/)
    • [email_address]
  • 4. How does the Ubunutu Live CD work?
    • El Torito, http://en.wikipedia.org/wiki/El_Torito_(CD-ROM_standard)
    • Boot Loader (ISOLINUX)
    • Virtual harddrive in RAM (linux kernel)
    • Filesystem, write over read only medium (UNION FS)
    • Compressed filesystem, squashfs
    • Hardware discovery (plug and play) and autoconfiguration
    • Debian's APT package system
    • [email_address]
  • 5. An Overview of Customizing the Ubuntu Live CD
    • The Steps
    • Choosing the workstation's OS
    • The target distribution / flavour (Ubuntu, Kubuntu, Xubuntu)
    • The development environment
    • Copying the CD to the hardrive
    • Access the squashed filesystem
    • Making changes
    • Regenerating the squashed filesystem (order out for pizza)
    • [email_address]
  • 6. An Overview of Customizing the Ubuntu Live CD
    • The Steps, cont'd
    • Making menu changes - isolinux - gfx (bootlogo creator for gfxboot compliant boot loaders)
    • Create the ISO image
    • Burn the ISO to a CD/DVD
    • Some Example Scripts...
    • [email_address]
  • 7. An Overview of Customizing the Ubuntu Live CD
    • Sample scripts:
    • create block device dd if=/dev/zero of=./iso.ubuntu-fs bs=1MB count=3000
    • mount squashed filesystem mount -t squashfs -o loop $FS $MNT
    • mount block device ISO=`pwd`/iso.ubuntu-fs.1 MNT=/mnt/pg_live mount -o loop $ISO $MNT cp /etc/resolv.conf $MNT/etc/ mount -t proc --bind /proc $MNT/proc chroot $MNT
    • [email_address]
  • 8. An Overview of Customizing the Ubuntu Live CD
    • Sample scripts, cont'd:
    • regenerate squashed filesystem ISO=`pwd`/ISO/casper MNT=/mnt/pg_live chroot $MNT dpkg-query -W --showformat='${Package} ${Version} ' > $ISO/filesystem.manifest rm $MNT/etc/resolv.conf rm $ISO/filesystem.squashfs umount $MNT/proc cd $MNT dd if=/dev/zero of=$MNT/dummyfile rm $MNT/dummyfile mksquashfs . $ISO/filesystem.squashfs cd $ISO;cd ../../
    • [email_address]
  • 9. An Overview of Customizing the Ubuntu Live CD
    • Sample scripts cont'd:
    • generate ISO ISO=`pwd`/ISO cd $ISO find . -type f -print0 | xargs -0 md5sum | tee md5sum.txt cd .. mkisofs -o completed.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -V "pg_live" -cache-inodes -J -l ISO
    • [email_address]
  • 10. An Overview of Customizing the Ubuntu Live CD
    • Sample scripts cont'd:
    • Burn DVD growisofs -dvd-compat -Z /dev/dvd=completed.iso
    • [email_address]
  • 11. An Overview of Customizing the Ubuntu Live CD
    • Command line utilities:
    • cd
    • cp
    • chroot
    • dd
    • [email_address]
    • find
    • growisofs
    • mkisofs
    • mksquashfs
    • mount
    • umount
  • 12. An Overview of Customizing the Ubuntu Live CD
    • [email_address]
  • 13. An Overview of Customizing the Ubuntu Live CD
    • [email_address]
  • 14. Creating pg_live, issues
    • Selecting the distribution (Xubuntu)
    • Choosing the medium, CD, but testing on rewriteable DVD burner
    • Setting up the development environment
    • Removing and adding packages
    • Update the distribution?
    • Adding source compilation of postgresql
    • Testing the services: http, postgresql, SSH
    • Testing the live CD environments: R, java, tlc, python, perl, ruby, php
    • Adding and configuring the postgresql data cluster
    • Configuring the skel file (home accounts)
    • Changing the default language, edit the “lang” file in the isolinux directory
    • [email_address]
  • 15. Lessons Learned / Tips
    • [email_address]
  • 16. Issues not covered
    • isolinux
    • gfx
    • [email_address]
  • 17. Reference URLS
    • pglive: http://www.nycbug.org/index.php?NAV=Library;SUBM=10101
    • http://www.ubuntu.com/getubuntu/download https://help.ubuntu.com/community/LiveCDCustomization
    • http://en.wikipedia.org/wiki/El_Torito_(CD-ROM_standard) http://en.wikipedia.org/wiki/Live_CD http://en.wikipedia.org/wiki/Isolinux
    • http://syslinux.zytor.com/ http://www.linux-boot.net/InitRD/Howto/
    • http://uck.sourceforge.net/ (Ubuntu Customization Kit)
    • [email_address]
  • 18.
    • THE END
    • [email_address]

×