print with cups to remote LPD

Anonymous anonymous at easysw.com
Mon Oct 17 23:36:13 PDT 2005


Hey All

have everybody an idee why my  hp-queue  not work?

***********************************************************************
*  print with cups to remote LPD
***********************************************************************
LPD server
##########
rpm's
*****
MyFirst:~ #rpm -aq | grep 'lp'
  lprold-3.0.1-10
MyFirst:~ #

lpd's
*****
MyFirst:~ #find / -name 'lpd'
  /var/spool/lpd
  /sbin/init.d/lpd
  /usr/sbin/lpd
MyFirst:~ #

hosts
*****
MyFirst:~ #less /etc/hosts
  10.0.0.11 MyFirst.MyDomain  MyFirst
  10.0.0.21 MySecond.MyDomain MySecond
  10.0.0.31 MyThird.MyDomain  MyThird
  127.0.0.1 localhost
MyFirst:~ #

hosts.lpd
*********
MyFirst:~ #less /etc/hosts.lpd
  MySecond.MyDomain
  MyThird.MyDomain
MyFirst:~ #

queue
*****
MyFirst:~ #lpc status
  ascii:
    queuing is enabled
    printing is enabled
    no entries
    printer idle
  lp:
    queuing is enabled
    printing is enabled
    no entries
    printer idle
  lp-mono:
    queuing is enabled
    printing is enabled
    no entries
    printer idle
  raw:
    queuing is enabled
    printing is enabled
    no entries
    printer idle
MyFirst:~ #

MyFirst:~ #less /etc/printcap
  ascii|lp1|cdjcolor-a4-ascii-mono-300|cdjcolor a4 ascii mono 300:\
    :lp=/dev/lp1:\
    :sd=/var/spool/lpd/cdjcolor-a4-ascii-mono-300:\
    :lf=/var/spool/lpd/cdjcolor-a4-ascii-mono-300/log:\
    :af=/var/spool/lpd/cdjcolor-a4-ascii-mono-300/acct:\
    :if=/var/lib/apsfilter/bin/cdjcolor-a4-ascii-mono-300:\
    :la:mx#0:\
    :sh:
  lp|lp2|cdjcolor-a4-auto-color-300|cdjcolor a4 auto color 300:\
    :lp=/dev/lp1:\
    :sd=/var/spool/lpd/cdjcolor-a4-auto-color-300:\
    :lf=/var/spool/lpd/cdjcolor-a4-auto-color-300/log:\
    :af=/var/spool/lpd/cdjcolor-a4-auto-color-300/acct:\
    :if=/var/lib/apsfilter/bin/cdjcolor-a4-auto-color-300:\
    :la:mx#0:\
    :sh:
  lp-mono|lp3|cdjcolor-a4-auto-mono-300|cdjcolor a4 auto mono 300:\
    :lp=/dev/lp1:\
    :sd=/var/spool/lpd/cdjcolor-a4-auto-mono-300:\
    :lf=/var/spool/lpd/cdjcolor-a4-auto-mono-300/log:\
    :af=/var/spool/lpd/cdjcolor-a4-auto-mono-300/acct:\
    :if=/var/lib/apsfilter/bin/cdjcolor-a4-auto-mono-300:\
    :la:mx#0:\
    :sh:
  raw|lp4|cdjcolor-a4-raw|cdjcolor a4 raw:\
    :lp=/dev/lp1:\
    :sd=/var/spool/lpd/cdjcolor-a4-raw:\
    :lf=/var/spool/lpd/cdjcolor-a4-raw/log:\
    :af=/var/spool/lpd/cdjcolor-a4-raw/acct:\
    :if=/var/lib/apsfilter/bin/cdjcolor-a4-raw:\
    :la:mx#0:\
    :sh:
MyFirst:~ #

cups server
###########
ping
****
MyThird:~ # ping -c3 10.0.0.11
  PING 10.0.0.11 (10.0.0.11) 56(84) bytes of data.
  64 bytes from 10.0.0.11: icmp_seq=1 ttl=64 time=1.09 ms
  64 bytes from 10.0.0.11: icmp_seq=2 ttl=64 time=0.549 ms
  64 bytes from 10.0.0.11: icmp_seq=3 ttl=64 time=0.607 ms
  --- 10.0.0.11 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2002ms
  rtt min/avg/max/mdev = 0.549/0.749/1.092/0.244 ms
MyThird:~ #

port 515
********
MyThird:~ # netcat -z 10.0.0.11 515 && echo ok || echo failed
  ok
MyThird:~ #

lpd queue
*********
MyThird:~ # echo -e "\004lp" | netcat -w 2 -p 722 10.0.0.11 515
  no entries
MyThird:~ #

YAST printer
************
  +----------------------------------------------------------------------------+
  : Already installed printers and queues:                                     :
  : HP DeskJet 540C: Forwarding queue to lp on LPD server 10.0.0.11            :
  : Configured as:                                                             :
  : hp [test] - ready                                                          :
  +----------------------------------------------------------------------------+

printcap
********
MyThird:~ # less /etc/printcap
  # This file was automatically generated by cupsd(8) from the
  # /etc/cups/printers.conf file.  All changes to this file
  # will be lost.
  hp|hp:rm=MyThird:rp=hp:
MyThird:~ #

Printing Manager
****************
Information
+++++++++++
       Type:  Local printer
      State:  Idle(accepting jobs)
   Location:  MyFirst
Description:  hp deskjet
        URI:  ipp://mythird:631/printer/hp
     Device:  lpp://10.0.0.11:515/lp
      Model:  HP Deskjet 540C Foomatic/cdj500

Jobs
++++
Job ID  Owner Name    State     Size(KB)  Page(s) Priority  Billing Information
  1       root  <name>  Queued    15        1       50

Properties
++++++++++
General
=======
Printer name: hp
Location:     MyFirst
Description:  hp deskjet

Interface
=========
Printer type: Remote LPD queue
URI:          lpd://10.0.0.11:515/lp

Driver
======
Manufacturer:   HP
Printer model:  Deskjet 540C cdj500
Driver Info:    Deskjet 540C Foomatic/cdj500

Banners
=======
Staring banner: No Banner
Ending banner:  No Banner

Quotas
======
Period:         No quota
Size limit(KB): None
Page limit:     None

Users
=====
All users allowed

Instances
+++++++++
O (Default)
  [Test ...]

  --> Job Entry:  as below
  --> State:      Stopped(accepting jobs)
  --> MyThird:~ # echo -e "\004lp" | netcat -w 2 -p 722 10.0.0.11 515
        no entries
      MyThird:~ #
  ==> no printout ?

***********************************************************************





More information about the cups mailing list