You are not logged in.

#1 2009-04-21 11:16:22

rzodkiewka
Member
Registered: 2009-04-19
Posts: 41

[solved]lpr - where to find printer name?

I'm trying to set up my LaserJet 1220 USB printer. Installed hplip (as recommended), run cups. My system sees the printer:

# tail /var/log/messages.log
Apr 21 13:00:09 yubaba kernel: Clocksource tsc unstable (delta = -269655282 ns)
Apr 21 13:00:54 yubaba kernel: usb 3-2: new full speed USB device using uhci_hcd and address 2
Apr 21 13:00:54 yubaba kernel: usb 3-2: configuration #1 chosen from 1 choice
Apr 21 13:00:55 yubaba kernel: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417
Apr 21 13:00:55 yubaba kernel: usbcore: registered new interface driver usblp
Apr 21 13:10:16 yubaba kernel: usb 3-2: USB disconnect, address 2
Apr 21 13:10:16 yubaba kernel: usblp0: removed
Apr 21 13:10:19 yubaba kernel: usb 3-2: new full speed USB device using uhci_hcd and address 3
Apr 21 13:10:19 yubaba kernel: usb 3-2: configuration #1 chosen from 1 choice
Apr 21 13:10:19 yubaba kernel: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0417

it's in /dev/usblp0 (echo "blah" > /dev/usblp0 as root prints "blah").
Now trying to use lpr:

$ lpr para.f 
lpr: Error - no default destination available.

I guess I have to add some -P option but have no idea where to look for or set the printer name.

Last edited by rzodkiewka (2009-04-21 19:13:05)

Offline

#2 2009-04-21 12:30:40

windtalker
Member
Registered: 2008-03-17
Posts: 220

Re: [solved]lpr - where to find printer name?

Go to the hplip page and make sure all of the dependencies are available and installed, then follow their instructions for setting the printer up.
It's always worked for me, especially here in Arch.
Your printer should then be named and found when you run hplip-setup if the proper driver is selected.

Offline

#3 2009-04-21 14:31:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved]lpr - where to find printer name?

Lpr needs a destination by default:

[stijn@hermes ~]$ LC_MESSAGES=EN lpr
lpr: Error - no default destination available.

It doesn't complain about any input - just about nothing to output to wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-04-21 19:11:54

rzodkiewka
Member
Registered: 2009-04-19
Posts: 41

Re: [solved]lpr - where to find printer name?

Got it. In the large pages of hplip documentation I didn't notice that I just need to
1. plug the printer in
2. type

# hp-conf

And now it works smile

Last edited by rzodkiewka (2009-04-21 19:17:21)

Offline

Board footer

Powered by FluxBB