Paranoid Penguin - Customizing Linux Live CDs, Part III
Appendix
Here's the complete procedure I described in Part I for adding and removing packages in a custom Ubuntu live CD, in the form of a raw list of all commands described in that article. The $ prompts indicate commands executed as an unprivileged user; the # prompts show commands that are executed by root:
00-$ dd if=/dev/cdrom of=./ubuntu-7.10-desktop-i386.iso
01-$ mkdir -p ./isomount ./isonew/squashfs ./isonew/cd
↪./isonew/custom
02-$ sudo mount -o loop ./ubuntu-7.10-desktop-i386.iso ./isomount/
03-$ rsync --exclude=/casper/filesystem.squashfs -a ./isomount/
↪./isonew/cd
04-$ sudo modprobe squashfs
05-$ sudo mount -t squashfs -o loop
↪./isomount/casper/filesystem.squashfs ./isonew/squashfs/
06-$ sudo rsync -a ./isonew/squashfs/ ./isonew/custom
07-$ sudo cp /etc/resolv.conf /etc/hosts ./isonew/custom/etc/
08-$ sudo cp /etc/apt/sources.list ./isonew/custom/etc/apt/
09-$ sudo chroot ./isonew/custom
10-# mount -t proc none /proc/
11-# mount -t sysfs none /sys/
12-# export HOME=/root
13-# apt-get remove --purge `dpkg-query -W --showformat='${Package}\n'
↪|grep openoffice`
14-# apt-get remove --purge `dpkg-query -W --showformat='${Package}\n'
↪|grep gimp`
15-# apt-get update
16-# apt-get install tor privoxy
17-# apt-get dist-upgrade
18-# apt-get clean
19-# rm -rf /tmp/*
20-# umount /proc/
21-# umount /sys/
22-# exit
23-$ chmod +w ./isonew/cd/casper/filesystem.manifest
24-$ sudo chroot ./isonew/custom dpkg-query -W --showformat='${Package}
↪${Version}\n' > ./isonew/cd/casper/filesystem.manifest
25-$ sudo cp ./isonew/cd/casper/filesystem.manifest
↪./isonew/cd/casper/filesystem.manifest-desktop
26-$ sudo mksquashfs ./isonew/custom
↪./isonew/cd/casper/filesystem.squashfs
27-$ sudo rm ./isonew/cd/md5sum.txt
28-$ sudo -s
29-# cd ./isonew/cd
30-# find . -type f -print0 | xargs -0 md5sum > md5sum.txt
31-# exit
32-$ cd ./isonew/cd
33-$ sudo mkisofs -r -V "Ubuntu-Live-PrivateSurf" -b
↪isolinux/isolinux.bin -c isolinux/boot.cat -cache-inodes
↪-J -l -no-emul-boot -boot-load-size 4 -boot-info-table
↪-o ~/Ubuntu-Live-7.10-PrivateSurf.iso .
Resources
Ubuntu Community Wiki Page on How to Customize Ubuntu Live CDs: https://help.ubuntu.com/community/LiveCDCustomization
Information about Zeroconf and Avahi on Ubuntu: https://help.ubuntu.com/community/HowToZeroconf
The Hidden Volume Information Page on the Official TrueCrypt Web Site: www.truecrypt.org/hiddenvolume.php
The Debian Live Wiki: wiki.debian.org/DebianLive
Download Site for the NoScript Plugin for Firefox: https://addons.mozilla.org/en-US/firefox/addon/722
Download Site for the RefControl Plugin for Firefox: https://addons.mozilla.org/en-US/firefox/addon/953
Mick Bauer (darth.elmo@wiremonkeys.org) is Network Security Architect for one of the US's largest banks. He is the author of the O'Reilly book Linux Server Security, 2nd edition (formerly called Building Secure Servers With Linux), an occasional presenter at information security conferences and composer of the “Network Engineering Polka”.
- « first
- ‹ previous
- 1
- 2
- 3
Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
| Trying to Tame the Tablet | May 08, 2013 |
| Dart: a New Web Programming Experience | May 07, 2013 |
- New Products
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Home, My Backup Data Center
- Trying to Tame the Tablet
- RSS Feeds
- New Products
- What's the tweeting protocol?
- Dart: a New Web Programming Experience
- Reply to comment | Linux Journal
1 hour 54 min ago - Drupal is an Awesome CMS and a Crappy development framework
6 hours 33 min ago - IT industry leaders
8 hours 56 min ago - Reply to comment | Linux Journal
1 day 1 hour ago - Reply to comment | Linux Journal
1 day 4 hours ago - Reply to comment | Linux Journal
1 day 5 hours ago - great post
1 day 6 hours ago - Google Docs
1 day 6 hours ago - Reply to comment | Linux Journal
1 day 11 hours ago - Reply to comment | Linux Journal
1 day 12 hours ago
Free Webinar: Linux Backup and Recovery
Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.
In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.




Comments
Upgrading kernel in the live-cd
I followed all the instruction to create a "customized live cd"
form ubuntu-8.10-desktop-i386.iso
It had 2.6.27-7 kernel. In the process, I upgraded the kernel
to 2.6.27-11, but the end CD still boots with 2.6.27-7.
What else do I need to do to be able to boot with the new
kernel?