[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

can't open lp device



I've returned to this problem after struggling with other matters. I'm
running kernel 2.6.8-2-686 with sarge. I've installed lprng.

I plug in the usb cable into a hub I know is working, and find:

in kern.log:

  kernel: usb 2-4.1: new full speed USB device using address 6
  teufel kernel: ehci_hcd 0000:00:02.1: qh f6b1f200 (#0) state 1
  kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer 
	dev 6 if 0 alt 0 proto 2 vid 0x043D pid 0x0052

in syslog:

  kernel: usb 2-4.1: new full speed USB device using address 6
  kernel: ehci_hcd 0000:00:02.1: qh f6b1f200 (#0) state 1
  kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer 
	dev 6 if 0 alt 0 proto 2 vid 0x043D pid 0x0052
  usb.agent[5644]: usblp: already loaded

in messages:

  kernel: usb 2-4.1: new full speed USB device using address 6
  kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer 
	dev 6 if 0 alt 0 proto 2 vid 0x043D pid 0x0052
  usb.agent[5644]:      usblp: already loaded

I check printcap: 

  # checkpc -p
  Warning - lp: cannot open lp device '/dev/lp0' - No such device or
    address 

  $ ls -l /dev/lp0
  crw-rw----  1 root lp 6, 0 Jul 31 18:54 /dev/lp0

I'm very uncertain about printcap. Any obvious errors here?

  # cat /etc/printcap
  lp|Generic dot-matrix printer entry:\
        :lp=/dev/lp0:\
        :filter=/usr/lib/lprng/filters/lpf:\
        :ifhp=model=lexmark_optra_e312:\
        :sd=/var/spool/lpd/lp:\
        :af=/var/log/lp-acct:\
        :lf=/var/log/lp-errs:\
        :pl#66:\
        :pw#80:\
        :pc#150:\
        :mx#0:\
        :sh:

  $ cat /etc/group | grep lp
  lp:x:7:brownh

In /var/spool/lpr/lp, the print job sits. The file associated with the
job is:

  A=root@teufel+826
  attempt=0x2
  C=A
  D=2005-09-06-17:42:19.553
  datafile_count=1
  datafiles=dfA826teufel.hartford-hwp.com 
  error_time=0x0
  file_hostname=teufel.hartford-hwp.com
  filenames=/opt/tmp/test.txt
  H=teufel.hartford-hwp.com
  held=0x0
  hf_name=hfA826
  hfdatafiles=copies=0x1dftransfername=dfA826teufel.hartford-hwp.com \ 		format=fN=/opt/tmp/test.txtsize=5
  hold_class=0x0
  hold_time=0x0
  J=/opt/tmp/test.txt
  job_time=0x431e0d3b
  job_time_usec=0x87cce
  number=826
  P=root
  printable=0x1
  priority=A
  Q=lp
  remotehost=localhost.localdomain
  remoteport=0x0
  server=5837
  size=5
  start_time=0x431e0dd1
  unixsocket=0x1
  update_time=2005-09-06-17:44:49.540
 
  $ lsmod | grep parport_pc 
  parport_pc             36900  0 
  parport                41800  2 parport_pc,lp

I worry that in my zeal to block ports in my firewall, I may have
killed the ability of the print server to communicate.

Haines Brown
 



Reply to: