I set up CUPS via the web interface and I can print from graphical apps. From command line i cannot use lpr and lpq. I get
lpr: Error - no default destination available
Please, can somebody tell me where to set the default destination. I've searched the wiki and forums but haven't found anything. This maybe a silly question for most users, but please just point me to where I can find the answer. I'll be more than happy to rtfm if I only knew where start reading.
Interestingly enough, I had a similar problem just today. I was trying to share a printer from one linux system to the other, and once one edits /etc/cups/client.conf to include the hostname of the system sharing the printer, the printer should show up when one uses the lpq command... which just wasn't happening, even if I opened my print server up to the world (temporarily). It gave me the exact same complaint it gave you. It seemed to just sort of fix itself after a while though (an hour after I gave up?), now the printer shows up when I issue the lpq command.
I set the same thing up months ago and didn't experience a delay in operation... I wonder if it kicks in after a while for you too?
Maybe try setting that printer as the default with the cups web interface or somehow else?
So, in conclusion, I don't have an explanation for you
go to http://localhost:631 and look for your printer. You should be able to set it to default there.
To find the available printers, at a terminal type
lpstat -p -d
Then to pick one as the default lpd printer, type at the terminal
lpoptions -d <printer>
You can copy and paste the <printer> from the list given by lpstat -p -d
to see if the printer you selected is now the default.