Getting lp, lpq and lpstat to work…
I want to be able to use lp and print from command line, not just from gui. My Linux box (Debian, running FLWM as window manager), prints fine from applications with print dialogues, for example LibreOffice or evince, but I want to be able to use lp, a2ps, maybe print from xFig, and these all use the lp command line interface, and that is not set up.
I know I can go ($ is command line prompt)
$ lpadmin -d [printer-name]
but what is ‘printer-name’? I have a couple of printers attached by USB, not network.
It’s actually very simple.
$ lpstat -a FUJI_XEROX_DocuPrint_CP305_d accepting requests since Wed 02 Nov 2016 13:26:34 AEDT HL5340D accepting requests since Wed 14 Dec 2016 17:33:54 AEDT Stylus-TX100 accepting requests since Tue 13 Dec 2016 20:19:20 AEDT $ lpadmin -d HL5340D