Printer Server

From richmondmakerlabs.uk
Revision as of 07:48, 24 January 2016 by Amunizp (talk | contribs) (test before you)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

For advanced settings like used in little house for the label printer check out Labelwriter

First update the system and install cups and cups-pdf (the latter is to be able to print to PDF allways handy:

$ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install cups cups-pdf

Then there is some stuff about making your user some sort of special admin. (not sure how safe this is)

$ sudo usermod -a -G lpadmin pi

where pi is your user name (in the raspberry your user name is pi) If you are using your computer without a screen it might be a good idea to install a text base browser e.g.

$ sudo apt-get install elinks

visit the website: http://localhost:631 or

$ elinks http://localhost:631

There you can add the printer and share it in the network. Might be worth testing a document print from within the computer that actually has the printer plugged in.

It should work right? did not for me.

Well it does now. I was trying to make it more complicated than it seemed. All I had to do is run

$ ifconfig 

on the rasperry pi. this gives me an IP address 192.168.0.20

So now in your add printer via uri and add this in my case. http://192.168.0.20:631/

on and Android phone: jfcupsprint service app. add a new printer. scan hosts or sca mdns. ( or both, don't remember)