How-to run Tor, Vidalia and Polipo from USB:

This guide details how to easily run Tor, Vidalia and Polipo from a USB.

Download and compile:

1a. Download and compile Tor, Vidalia and Polipo.

1b. When you compile Tor use the following line in place of "./configure":

"LDFLAGS="-static" CFLAGS="-static" ./configure --prefix=/tor"'

1c. Compiling Tor as above creates a static Tor binary without the dependency upon Libevent1 or other external libraries.

1d. Note: If you update openSSL you must then re-compile Tor. Thanks to Simon B. for the static build info

Prepare the USB:

1. Create the following directories in the root of the USB:

Copy compiled binaries to the USB:

1. Copy the compiled binaries to the appropriate directories on the USB:

Create Tor configuration file "torrc" on USB:

1a. Copy over your current torrc to /media/usbdisk/Vidalia/datadir/

1b. Add these line to your torrc:

DataDirectory /media/usbdisk/Tor/datadir

AvoidDiskWrites 1

Or...

2a. Create an empty file titled "torrc" in /media/usbdisk/Vidalia/datadir/

2b. Add these lines to the empty torrc file:

DataDirectory /media/usbdisk/Tor/datadir

AvoidDiskWrites 1

Create Polipo configuration file "config" on USB:

1. Copy over your current Polipo configuration file to /media/usbdisk/Polipo/ and rename to "config"

Or...

2a. Create an empty file titled "config" in /media/usbdisk/Polipo/

2b. Copy/paste the following text into /media/usbdisk/Polipo/config

#-General

cacheIsShared = false

socksParentProxy = "localhost:9050"

socksProxyType = socks5

#-DNS

dnsQueryIPv6 = no

#-Cookies (Optional-Disable cache of cookies)

dontCacheCookies = true

#-Local web server (Optional-Disable local web server)

localDocumentRoot = ""

#-Memory (Optional-Disable on-disk cache)

diskCacheRoot = ""

#-Memory (Optional-Use a _very_ small amount of RAM)

#chunkHighMark = 819200

#objectHighMark = 128

Setup Vidalia:

1a. Open a terminal window and type:

cd /media/usbdisk/Vidalia

./vidalia -datadir "./datadir"

1b. When Vidalia starts it will open a window titled "Error Starting Tor"

1c. Click the button "Show Settings"

1d. Under the title "Tor Executable" enter the path to the Tor binary:

/media/usbdisk/Tor/tor

1e. Click the button "Save"

1d. Right-click on the Vidalia icon and scroll to "Start"

1f. After Vidalia starts all required files will be created in /media/usbdisk/Vidalia/datadir/ and /media/usbdisk/Tor/datadir/

Run programs:

1. Polipo: Open a terminal window and type:

cd /media/usbdisk/Polipo

./polipo -c config

2. Vidalia: Open another terminal window and type:

cd /media/usbdisk/Vidalia

./vidalia -datadir "./datadir"

Regards: LightZoo

noreply: TheOnionRouter/TorUsb (last edited 2007-12-09 16:51:44 by cypherpunks)