I am trying to set the default printer on a machine running xubuntu from the command line. It looks like I need: lpoptions -d "printer_name"
but I do not know the name of the printer. How can I find this information?
Thank you.
You can use the command:
lpstat -a
This returns a list of installed printers.
lpinfo -v
.
Probably something like lpstat -p
or lpstat -a
. Some information you might only be able to get by visiting http://localhost:631/printers
, though; I don't see a way to get the location or description from the command line offhand.
lpinfo -v
is what I was looking for.