Hi! > >I just updated my SUSE 7.2 box from the old lpd to lprng with > >suse's lprng-3.8.12-37.rpm package. Since then I can not print anymore. > >Of course I adapted my apsfilter and printcap. > > > >Here is what happens after I use "lpr -V -Pmono a.ps": > > > >LPRng-3.8.12, Copyright 1988-2002 Patrick Powell, > <[EMAIL PROTECTED]> > >sending job '[EMAIL PROTECTED]' to [EMAIL PROTECTED] > >connecting to 'localhost', attempt 1 > >connected to 'localhost' > >requesting printer [EMAIL PROTECTED] > >job '[EMAIL PROTECTED]' transfer to [EMAIL PROTECTED] failed > > error 'ERROR TRANSFERRING DATA' > > sending str '^Bmono' to [EMAIL PROTECTED] > >job failed - error 'ERROR TRANSFERRING DATA' > > sending str '^Bmono' to [EMAIL PROTECTED] "
> The first line of your printcap entry doesn't look right to me. It > seems you want to have alias mono, default, lp but what you have(or > what the newer Lprng thinks you have) is alias mono,default,lp,hpijs - > which you probably don't want. Checkout the printcap howto that came > > with the most recent version of lprng. SuSE 7.2 *is* kinda old now > - > you might consider just upgrading everything, not just lpr. I am > using > the 8.0 verison and even it's still a bit archaic(but it does work). > I tried the things you both suggested. First I searched unsuccessful for old packages or leftovers with rpm and find. So as a result I did removed an old filters.rpm packages (I don't need it anyway). I also installed the new (suse >8) (aps) filter handler lpdfilter. In the last mail I forgot to add that my lprng package was taken from suse 8.1. Plus I installed the newest hpijs from sf (the gs driver for HP Printer), compiled apfl gs 8.0 and rewrote the apsfilter. This stuff all works on the lpd site of the connection and works just perfect (if I modify the /etc/hosts.x files as mentioned above). But as soon as I uncomment in /etc/hosts.deny the following line (which was set there by suse and is btw quite useful as I would like to restrict printing to my localhost) lpd: ALL EXCEPT LOCAL I cannot connect anymore. As soon as lpr start writing to the pipe (/var/run/lprng) it breaks, as strace shows: write(4, "\2mono\n", 6)= -1 EPIPE (Broken pipe) --- SIGPIPE (Broken pipe) --- I already got an unknown connection to my lpd from some portscaning freaks. Think lprng should be safe, but I don't want there printouts :) I also add one printcap entry created by /the new lpdfilter) lprsetup: mononew:\ :cm=lpdfilter drv=hpijs size=a4dj dpi=300 method=auto color=no:\ :lp=/dev/usb/lp0:\ :sd=/var/spool/lpd/mono:\ :lf=/var/spool/lpd/mono/log:\ :af=/var/spool/lpd/mono/acct:\ :if=/usr/lib/lpdfilter/bin/if:\ :la@:\ :tr=:cl:lk:sh: But this does not work at all for me. I does have a broken pipe and with the "working setup" on my hosts file it doesn't print at all. Probably due to my newer hpijs version. I did not looked to much in this problems, as the broken pipe is still in place. Please help me and thank you very much for your answers again! Best regards, Stefan. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
