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

lpq no abre conexión con lp@localhost



Hola,
 el filtro para mi impresora (hp dj 690c) lo creé con el MagicFilter y me ha
funcionado siempre correctamente, pero hoy he decidido añadir tres impresoras
"extra" para imprimir PostScript en modos econofast, normal y optima como en
W95. Cosa que pueden comprobar en el printcap que les adjunto, las tres últimas
impresoras son las que hoy he añadido.

Aparte de crear la configuración necesaria en el printcap tambien he creado los
directorios en /var/spool/lpd, haciendo un cp -r del directorio de la impresora
actual a la nueva impresora.

Tambien he añadido los filtros en /etc.

Una vez hecho lo anterior he hecho un lpq y me ha listado el estado de la
impresora por defecto luego he echo un lpq -P nueva_impresora1 y me ha dicho que
no existía por lo que he decidido reinicializar la máquina.

Una vez reiniciada he hecho un lpq y me ha dicho:

[~]$ lpq
Host 'localhost' - cannot open connection to `lp@localhost' - Connection refused
[~]$ 

luego un lpq -A y me ha vuelto ha decir lo mismo. Tambien he hecho un lpc, como
root,  y me ha dicho:

lpc>active
cannot open connection to `lp@localhost' - Connection refused
lpc>

Finalmente he decidido hacer:

[~/doc]$ lpr get
connection to 'localhost' failed - Connection refused
job 'cfA325Estruch' transfer to lp@localhost failed
[~/doc]$ 

Que he hecho mal?
Como lo soluciono?

Un saludo,
  Josep Parera
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#	@(#)etc.printcap	5.2 (Berkeley) 5/5/88
#
# > This file was generated by /usr/sbin/magicfilterconfig. <
#
lp|dj|hpdj|HP DeskJet 690C:\
	:lp=/dev/lp1:sd=/var/spool/lpd/hpdj:\
	:sh:pw#80:pl#72:px#1440:mx#0:\
	:if=/etc/magicfilter/dj550c-filter:\
	:af=/var/log/lp-acct:lf=/var/log/lp-errs:
# HP DeskJet 690C (PostScript calidad borrador)
econofast:\
        :lp=/dev/lp1:\
        :sd=/var/spool/lpd/psjet0:\
        :lf=/var/log/lp-errs:\
        :if=/etc/psjetfilter0:\
        :mx#0:\
        :sh
# HP DeskJet 690C (PostScript calidad normal)
normal:\
        :lp=/dev/lp1:\
        :sd=/var/spool/lpd/psjet1:\
        :lf=/var/log/lp-errs:\
        :if=/etc/psjetfilter1:\
        :mx#0:\
        :sh
# HP DeskJet 690C (PostScript calidad presentación)
optima:\
        :lp=/dev/lp1:\
        :sd=/var/spool/lpd/psjet2:\
        :lf=/var/log/lp-errs:\
        :if=/etc/psjetfilter2:\
        :mx#0:\
        :sh

Reply to: