Paranoid Penguin - Customizing Linux Live CDs, Part II
And now, the moment of truth. To use your encrypted TrueCrypt volume with an Ubuntu live CD, such as the one we modified last month, simply boot a system off that CD; insert the USB drive; execute the truecrypt binary from the USB drive or from the CD, if you installed TrueCrypt on your custom image; and mount your encrypted volume, specifying a mountpoint of /home/ubuntu/Documents (Figure 4).
If TrueCrypt prompts you for an administrative password, leave it blank and click OK. By default, the ubuntu account on Ubuntu CDs has no password.
This brings me to the topic of next month's column: further securing and customizing your encrypted-Documents-enabled live CD image. Until then, be safe!
Appendix
Here's the complete procedure I described last month for adding and removing packages in a custom Ubuntu live CD, in the form of a raw list of all commands described in this article. The $ prompts indicate commands executed as an unprivileged user; the # prompt shows 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
The TrueCrypt Home Page: www.truecrypt.org
Tombuntu's “Disk Encryption with TrueCrypt 5 on Ubuntu” HOWTO: tombuntu.com/index.php/2008/02/07/disk-encryption-with-truecrypt-5-on-ubuntu
Some hints on automatically mounting a TrueCrypt 5.0 volume as your home directory on Ubuntu systems: ubuntuforums.org/showthread.php?t=645247
Mark Longair's enlightening “HAL and Device Management”, a concise and helpful introduction on how GNOME automounts devices: www.mythic-beasts.com/~mark/random/hal
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”.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
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
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| 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 |
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Home, My Backup Data Center
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?





1 hour 45 min ago
2 hours 13 min ago
3 hours 11 min ago
4 hours 40 min ago
5 hours 49 min ago
6 hours 35 min ago
6 hours 56 min ago
13 hours 11 min ago
18 hours 49 min ago
1 day 49 min ago