layout |
---|
pages |
See wiki for OS installation on your Raspi with Raspian.
Start your Raspi, login via desktop or remote via SSH with default user Pi with password
raspberry
Initial configuration:
- Change the default password after first login and note it somewhere!
- Set Timezone
- Setup internet connection (via WLAN oder Ethernet)
- Run raspi-config > 7 Advanced Options to enable SSHD
- Install Updates
$ sudo apt-get install libcups2
$ sudo apt-get install libcups2-dev libcupsimage2-dev git build-essential cups system-config-printer
// start CUPS
$ sudo /etc/init.d/cups start
You can reach the CUPS Webinterface via http://localhost:361
To allow your pi user to add printers:
$ sudo usermod -aG lpadmin pi
$ sudo service cups restart
sudo apt-get install sqlite3 ruby-sqlite3 libsqlite3-dev
If you use a ZJ-58 thermal printer via USB, you need to install the CUPS filter via github.com/klirichek/zj-58, since the built-in filter does not work! (Of course you can use any other printer, that is installed/accessible with your system)
$ git clone https://github.com/klirichek/zj-58.git
$ cd zj-58
$ make
$ sudo ./install
Then go to CUPS at https://localhost:631/ + select "Adding Printers and Classes", then "Printers: Add Printer" and add printer connected via "usb://Unknown/Printer".
To allow the Raspeberry default user "pi" to access the CUPS admin features:
$ sudo usermod -aG lpadmin pi
$ sudo service cups restart
See scruss.com/blog/2015/07/12/thermal-printer-driver-for-cups-linux-and-raspberry-pi-zj-58 for a detailed description.
Put together the pushputton on a breadboard to trigger the printer
PRNSTN is the script that turns this setup into an internet printing station.
See github.com/ut/PRNSTN for a description of the installation and usage.