1

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.

0

2 Answers 2

2

You can use the command:

lpstat -a

This returns a list of installed printers.

1
  • 2
    thanks for the info but the printer is not currently installed. It looks like what I was looking for was lpinfo -v.
    – DQdlM
    Apr 13, 2011 at 1:18
1

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.

3
  • 2
    The printer wasn't installed yet. I prob. should have made that more clear in the question. Thanks for the info though. I think lpinfo -v is what I was looking for.
    – DQdlM
    Apr 13, 2011 at 1:25
  • If it's not installed yet, it probably doesn't have a name and you can't do much with it then.
    – geekosaur
    Apr 13, 2011 at 2:17
  • yeah it looks like I was biting off a bit more than I thought when I asked the question. Since @Christi and you essentially answered the question I asked (and not the one in my head) I am accepting the answer from @Christi since I think she was first. Thanks.
    – DQdlM
    Apr 13, 2011 at 13:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .