[plug] trouble configuring printers under Redhat 7.2

Buddrige, David BuddrigeD at logica.com
Wed May 22 10:32:17 WST 2002


Hi all,

I am having some difficulty getting a network printer to work.  I am using
Redhat Linux 7.2.  I have been using printtool to try and configure the
printer.  However when I try to start the lpd daemon, I get the following
results:

[root at mit243linux init.d]# ./lpd start
Starting lpd: Traceback (innermost last):
  File "/usr/sbin/printconf-backend", line 7, in ?
    import printconf_backend
  File "/usr/share/printconf/util/printconf_backend.py", line 208, in ?
    pass
  File "/usr/share/printconf/util/printconf_backend.py", line 708, in
rebuild_queues
    for dir in map(lambda x: "%s/%s" % (lpd_spool_dir, x),
os.listdir(lpd_spool_dir)):
OSError: [Errno 2] No such file or directory
No Printers Defined                                        [  OK  ]



Below is the contents of my /etc/printcap - this was generated using
printtool.



[root at mit243linux init.d]# cat /etc/printcap
# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be
included.

############################################################################
###
## Everything below here is included verbatim from /etc/printcap.local
##
############################################################################
###
# printcap.local
#
# This file is included by printconf's generated printcap,
# and can be used to specify custom hand edited printers.

# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be
included.

lp:\
	:sh:\
	:ml=0:\
	:mx=0:\
	:sd=/var/spool/lpd/lp:\
	:af=/var/spool/lpd/lp/lp.acct:\
	:rm=10.0.2.15:\
	:lpd_bounce=true:\
	:if=/usr/share/printconf/util/mf_wrapper:

############################################################################
###
## Everything below here is included verbatim from /etc/printcap.local
##
############################################################################
###
# printcap.local
#
# This file is included by printconf's generated printcap,
# and can be used to specify custom hand edited printers.


Can anyone see what might be wrong here?

thanks heaps

David Buddrige.

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.



More information about the plug mailing list