Newsgroup: it.comp.os.linux.iniziare
Titolo: [Slackware 8.1] lpd: strano comportamento

Ho configurato su una Slackware 8.1 la mia stampante Epson Stylus Color
440 con apsfilter (filtro di gimp-print, come consigliato su
linuxprinting.org
). La stampa di prova č andata a buon fine, ma a linea di
comando ottengo degli errori. Che puņ essere?
TEST RAW:
root@darkstar:~# cat backup.sh > /dev/lp0
root@darkstar:~#
(Tutto ok, lo stampa)
ERRORE:
root@darkstar:~# lpr -P aps1 /usr/share/cups/data/
testprint.ps
lpr: unable to print file: server-error-service-unavailable
(Subito dopo) TEST SUL DEMONE:
root@darkstar:~# ps aux | grep lpd
lp        2457  0.0  0.6  2072  880 ?        S    00:50   0:00 lpd Waiting
root      2485  0.0  0.3  1464  448 pts/0    S    01:20   0:00 grep lpd
CONFIG. PRINTCAP:
root@darkstar:~# cat /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.
# Generic printer:
lp:lp=/dev/lp0:sd=/var/spool/lpd:sh
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
aps1|stp/escp2-440;r=360x360;q=low;c=full;p=a4;m=auto:\
    :lp=/dev/lp0:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/aps1:\
    :lf=/var/spool/lpd/aps1/log:\
    :af=/var/spool/lpd/aps1/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this
CONFIG. ASPFILTER:
root@darkstar:~# cat /etc/apsfilter/aps1/apsfilterrc
#
# don't delete these settings
#
PRINTER='stp/escp2-440'
PAPERSIZE='a4'
METHOD='auto'
QUALITY='low'
COLOR='full'
RESOLUTION='360x360'
#
# additional configuration follows
# insert settings as seen in /etc/apsfilter/apsfilterrc
#
PERMESSI:
root@darkstar:/var/spool/lpd/aps1# ls -al
total 1
drwx------    2 lp       lp            208 Nov 12 00:34 ./
drwx------    4 lp       lp            256 Nov 12 00:34 ../
-rw-------    1 lp       lp              0 Nov 12 00:34 acct
-rw-------    1 lp       lp              0 Nov 12 00:34 
control.pr
-rw-rw-r--    1 lp       lp              0 Nov 12 00:34 lock
-rw-------    1 lp       lp              0 Nov 12 00:34 log
-rw-------    1 lp       lp              0 Nov 12 00:34 status
-rw-------    1 lp       lp              0 Nov 12 00:34 
status.pr
Grazie anticipate,
Alx
-- 
questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news
 segnala gli abusi ad 
ab...@newsland.it

 lpr: unable to print file: server-error-service-unavailable
Le tue impostazioni sembrano simili alle mie.
Hai impostato anche GS_FONTPATH e GS_LIB in apsfilterrc e in
/etc/profile ?
Magari non riesce semplicemente a trovare i font (a me capito').
-- 
Ciao
Gianluca

luca ha scritto:


Fatto, ma niente:
root@darkstar:~# echo $GS_FONTPATH
/usr/share/ghostscript/fonts
root@darkstar:~# echo $GS_LIB
/usr/share/ghostscript/7.05/lib
root@darkstar:~# lpr -P aps1 /usr/share/cups/data/
testprint.ps
lpr: unable to print file: client-error-not-found
root@darkstar:~# lpstat
Epson-3                 root             23552   Fri Nov 12 02:45:19 2004
root@darkstar:~# lpc status
Epson:
        printer is on device 'parallel' speed -1
        queuing is enabled
        printing is disabled
        no entries
        daemon present
Ovviamente mi stampa solo in modo raw
boh.
Grazie,


Ho notato che cups mi ha riscritto /etc/printacap con le sue impostazioni:
root@darkstar:~# cat /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.
Epson_IV|:rm=darkstar:rp=Epson_IV:
Main|Main:rm=darkstar:rp=Main:
Inoltre adesso lpc e lpstat si bloccano senza emettere output.
No è che cups litiga con qualcosa altro??


Ecco cosa dice l'error_log
root@darkstar:/var/log/cups# cat error_log
D [14/Nov/2004:18:46:54 +0100] ReadClient() 5 GET
/printers/Epson_IV?op=print-test-page HTTP/1.1
D [14/Nov/2004:18:46:54 +0100] CGI /usr/lib/cups/cgi-bin/printers.cgi
started - PID = 362
I [14/Nov/2004:18:46:54 +0100] Started
"/usr/lib/cups/cgi-bin/printers.cgi" (pid=362)
D [14/Nov/2004:18:46:54 +0100] SendCommand() 5 file=9
D [14/Nov/2004:18:46:54 +0100] AcceptClient() 8 from localhost:631.
D [14/Nov/2004:18:46:54 +0100] ReadClient() 8 POST /printers/Epson_IV
HTTP/1.1
D [14/Nov/2004:18:46:54 +0100] print_job: request file type is
application/postscript.
D [14/Nov/2004:18:46:54 +0100] check_quotas: requesting-user-name = 'root'
D [14/Nov/2004:18:46:54 +0100] print_job: requesting-user-name = 'root'
D [14/Nov/2004:18:46:54 +0100] Adding default job-sheets values
"none,none"...
I [14/Nov/2004:18:46:54 +0100] Adding start banner page "classified" to
job 15.
I [14/Nov/2004:18:46:54 +0100] Adding end banner page "none" to job 15.
I [14/Nov/2004:18:46:54 +0100] Job 15 queued on 'Epson_IV' by 'root'.
D [14/Nov/2004:18:46:54 +0100] Job 15 hold_until = 0
D [14/Nov/2004:18:46:54 +0100] StartJob(15, 0x8099db8)
D [14/Nov/2004:18:46:54 +0100] StartJob() id = 15, file = 0/2
E [14/Nov/2004:18:46:54 +0100] Unable to convert file 0 to printable
format for job 15!
I [14/Nov/2004:18:46:54 +0100] Hint: Do you have ESP Ghostscript installed?
D [14/Nov/2004:18:46:54 +0100] ProcessIPPRequest: 8 status_code=0
Ma io ghostscript ce l'ho!
root@darkstar:/var/log/cups# gs --version
7.05.2
Ri-boh.


 7.05.2
Ma probabilmente NON hai ESP ghostscript.
http://www.cups.org/ghostscript.php
-- 
           |Save our planet!
    Ciao   |Save wildlife!
   roberto |For your E-MAIL use ONLY recycled Bytes  !!
           |roberto poggi   
rpo...@softhome.net

 No è che cups litiga con qualcosa altro??
In effetti, cups litiga con LPRng. Una volta disinstallato tutto, ho
reinstallato cups. Adesso il comando 
root@darkstar:~# lpr -P Epson foo/foo.jpg
Produce l'effetto desiderato :)


 
http://www.cups.org/ghostscript.php
vero.
Ho controllato su 
linuxpackages.net
 ma non c'è traccia di espgs,
ora me lo compilo a manina.
Grazie
