The installation of PaperBank on Raspberry PI will give you cheap offline-mode to print wallets with your USB thermal printer.

If you are lazy you can find a shorter install here

Things to do:

  • get a brand new sd card or do a safe format of one [PRO]
  • get NOOBS release from raspbian official website ! (check the sha [PRO]) and copy it to the sd
  • follow the raspbian installation procedure and run it
  • after install, open LXTerminal
  • install ssl-dev
sudo apt-get install libssl-dev -y
  • install ruby development files
sudo apt-get install ruby1.9.1-dev -y
  • install rmagick dependencies
sudo apt-get install libmagickcore-dev libmagickwand-dev -y
  • get the code
git clone https://github.com/makevoid/paperbank

You can switch branch at this point [PRO]

  • install ruby gems
$ sudo gem install escper         --no-ri --no-rdoc
$ sudo gem install rqrcode_png    --no-ri --no-rdoc
$ sudo gem install bitcoin-ruby   --no-ri --no-rdoc
$ sudo gem install ffi            --no-ri --no-rdoc

if you are truly paranoid you can make the above steps offline, by transferring this repo and the ruby gems via usb stick and installing them manually

sudo chmod 0666 /dev/usb/lp0`
  • test the printer
echo "\nOK MASTER\n\n\n" > templates/test.txt
cat templates/test.txt > /dev/usb/lp0