wiki:doc/DebianLive

If you really want to you can build your own Debian based Tor live-cd. Here's generally how you can do it. For additional and, very likely, more up to date or correct information see http://live.debian.net/ or visit on IRC @ irc://irc.oftc.net/#debian-live.

  1. Add the repository from 'http://live.debian.net/debian lenny-snapshots main'
  1. Install the Debian package 'live-build'
  1. Navigate to some empty build area
  1. Build a script file (with execution privileges!) or just enter you configuration directives like:
    lh config -b iso -a i386 -d lenny --apt apt -p gnome --username liveuser--packages "tor polipo vidalia"
    
    (inside the --packages quotes throw in whatever other packages you fancy)

Use additional commands to create the path where we're going to dump various configuration files:

mkdir -p config/chroot_local-includes/etc/polipo
mkdir -p config/chroot_local-includes/etc/tor
mkdir -p config/chroot_local-includes/home/liveuser/.vidalia

Now dump the contents where they belong:

cp polipo.conf config/chroot_local-includes/etc/polipo

(assuming you already copied the correct polipo configuration file from here)

cp torrc config/chroot_local-includes/etc/tor

(assuming you already have your favorite torrc waiting for you in the build area)

cp vidalia.conf config/chroot_local-includes/home/liveuser/.vidalia

(assuming you already configured all necessary passwords and vidalia configurations and copied it over to the build area)

Now add the Tor repository so the program can install Tor from the 'net:

echo "deb http://deb.torproject.org/torproject.org lenny main" > config/chroot_sources/tor.chroot

Add the Tor gpg key:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 > tor.gpg
cp tor.gpg config/chroot_sources/tor.chroot.gpg

Finish with the build command and order the output to save to a log file:

lh build 2>&1 | tee build.log
  1. Wait an hour or so and it just might work. An emulator that works well for testing purposes is 'virtualbox.'

There are tons of neat customizations you can do with this. You can copy over firewall rules and make yourself a transparent proxy server on a disk; also customize the browser by removing your user's .mozilla folder, opening up iceweasel and bookmarking sites or editing browser settings and copying the new .mozilla folder over to the build environment for inclusion into the build process and add 'iceweasel' and whatever other add-ons to the packages list.

Last modified 6 years ago Last modified on Sep 20, 2011, 4:20:09 PM