Create workspacesd Image with Raspbian Wheezy

If you have already created a 32GB workspace image (workspacesd) with dm-crypt/LUKS and LVM2, you can skip this step, and setup workspacesd with Tor Browser and other apps. Otherwise, the following instructions cover creating an unencrypted 32GB workspacesd image.

Download the Raspbian (Debian Wheezy) image archive from http://www.raspberrypi.org/downloads/ and extract the image. Put a 32GB class 10 microSDHC card in a slot or USB adapter, and write the Raspbian wheezy image to it. When you insert the card, it will probably be mounted. Assuming that your system is on /dev/sda, first unmount /dev/sdb1.

$ sudo umount /dev/sdb1

Then write the image to the 32GB microSDHC card.

$ sudo dd bs=4M if=/home/user/Pi_Stuff/2015-02-16-raspbian-wheezy.img of=/dev/sdb

Now put the card in your Pi 2, and powerup by attaching the micro-USB power cable. At first boot, you get the raspi-config screen. Select "Expand Filesystem" to expand the image to fill your SD card. Then select "Change User Password" (default being "raspberry"). Select "Internationalisation Options" to configure language, timezone and keyboard layout. Using "Advanced Options", change the hostname (perhaps to "gatewaysd") and enable SSH server. Also "Enable Boot to Desktop". Finally, tab to "Finish", let the Pi reboot, and open a terminal.

If you haven't updated the Pi's firmware recently, do so, and then let the Pi reboot.

$ sudo rpi-update

Now update and install required packages, and allow saving the default iptables rules.

$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install host openvpn iptables-persistent

Then reboot the workspace Pi.

$ sudo reboot

Now setup the workspace image with Tor Browser and other apps.