Raspberry Pi - Printer

Install Printer

Operationg system is a 2014-01-07-wheezy-raspbian.

uname -a
Linux pi-drucker 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux

Basic installation

 apt-get update
 apt-get install python-serial python-imaging python-unidecode netatalk git


Change /boot/cmdline.txt

 vi  /boot/cmdline.txt
 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


Remove line from /etc/inittab. It is usually the last line in the file.

 vi /etc/inittab

 # T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Install Printer Application

 cd /opt/
 git clone https://github.com/adafruit/Python-Thermal-Printer

Test printer

 cd /opt/Python-Thermal-Printer
 python printertest.py

Auto start at after booting

Before the final "exit 0" line in /etc/rc.local, add these two lines:

 vi /etc/rc.local

 cd /opt/Python-Thermal-Printer
 python alarm.py &
 exit 0