brandonleon
6/25/2013 - 6:51 PM

Secure Pi

PROCESS

- install Raspian
- expand filesystem
- get on wifi

(zfec dependencies)

$ sudo apt-get install python-dev
$ curl http://python-distribute.org/distribute_setup.py | sudo python

(get zfec working)

$ git clone git://github.com/richardkiss/py-zfec.git
$ cd py-zfec
$ python setup.py build
$ sudo python setup.py install

(electrum)

from http://electrum.org/download.html

$ sudo apt-get install python-pip python-qt4 pyqt4-dev-tools
$ sudo pip install ecdsa slowaes
$ git clone git://github.com/spesmilo/electrum.git
$ pyrcc4 icons.qrc -o gui/icons_rc.py
$ python mki18n.py
(failed)
$ sudo python setup.py install

(Chromium)

$ sudo apt-get install chromium-browser

(uuencode)

$ sudo apt-get install sharutils

(printer) http://www.penguintutor.com/linux/printing-cups

$ sudo apt-get install cups
$ sudo usermod -a -G lpadmin pi
$ sudo getweb 1020

ssh -L9999:localhost:631 pi@192.168.1.10X

http://localhost:631/ and "manage printers"

(wodim)

$ sudo apt-get install wodim

- go offline

- create gpg key
$ gpg --gen-key

- create electrum offline wallet

- burn keys to CD with wodim

RESTORE
-------

$ sudo apt-get install python-dev python-pip python-qt4 pyqt4-dev-tools chromium-browser sharutils cups wodim

(get zfec working)
$ git clone git://github.com/richardkiss/py-zfec.git
$ cd py-zfec
$ python setup.py build
$ sudo python setup.py install

(electrum)
$ sudo pip install ecdsa slowaes
$ git clone git://github.com/spesmilo/electrum.git
$ pyrcc4 icons.qrc -o gui/icons_rc.py
$ python mki18n.py
(failed)
$ sudo python setup.py install

(printing)

$ sudo usermod -a -G lpadmin pi
$ sudo getweb 1020
ssh -L9999:localhost:631 pi@192.168.1.10X
http://localhost:9999/ and "manage printers", "add printer", "make default"

go offline

copy files from CD-ROM to /tmp/cd

$ gpg --import < /tmp/cd/sec*gpg