I have a HP5L and I think it should be compatable with 6L. Here is my printcap and filter.
On Tue, Jul 27, 1999 at 10:34:18PM +1000, Bill Shui wrote: > Shao Zhang wrote: > > On Tue, Jul 27, 1999 at 08:36:14PM +1000, Bill Shui wrote: > > > Hi, > > > I am having some problems with setting up my LPRng. > > > I was wondering if anyone could help me out here. > > > > If you just install lprng package and have a working printcap file, > > then it should be fine. > > Well, I didn't have a working printcap file, because I installed Debian > from the CD, and they weren't configured. And I wasn't sure which filter > to use, well, lpf wouldn't work for the PostScript, and I was trying to > use ifhp -Tstatus=off > but no luck with that either. > > > > > I have a HP 6L printer (ie it's a post script printer) > > I cannot agree with you on this. I don't think this is a postscript > > printer. > > Maybe not... but the issue is that it requires some kind of filter > programs to print postscript files, and I tried to filter it with lpf, > but instead, it printed lines of scripts. That's why I then tried to > install lprng again. and I wasn't sure whether they (lp* commands) were > mixed from different versions or not. So I deleted them all, and tried > to install the LPRng again. > > > > I just installed the LPRng (latest stable version, and the filters > > > that > > > go with it). > > > I deleted the original lpd and lp* commands (they used to reside in > > > /usr/bin and /usr/sbin <--- the lpd) > > > > Why do you remove the lp stuff?? If you have them already, then it > > may > > be provided by the old lpd package. You should just install lprng > > package > > and it will automatically remove the lpd package for you. > > Well, anything that I can do now to try to get my lpd started again? > > > > > and now I couldn't even start up my lpd.. > > try to start it from /etc/init.d/lpd > > I did, I substituted all the lines containg /usr/sbin/lpd with > /usr/local/bin/lpd > since lpd now resides in /usr/local/bin > and it still didn't work. > I wasn't sure if lprng file was meant to be in /etc/init.d/ too? > because I have both "lprng" and "lpd" sitting in my /etc/init.d/ > > > > I tried checkpc -f command, > > > and it prints "/var/run/lpd.printer permisson denied" > > > I looked into /var/run directory, and there was not a lpd.printer > > > present at all... > > > So I "touch"ed lpd.printer. and guess what, lpd can start again. > > > But after I rebooted my computer, the lpd.printer disappeared again. > > any ideas here? > > > > and also I think I'm having problem with my printcap file... > > Thanks. > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > > -- ____________________________________________________________________________ Shao Zhang - Running Debian 2.1 ___ _ _____ Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _____________________________________________________________________________
# # 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|lj|lp|shao:\ :lp=/dev/lp0:sd=/var/spool/lpd/lp:\ :sh:\ :mx#0:\ :if=/etc/magicfilter/hp5l-filter:\ :af=/var/log/lp-acct:lf=/var/log/lp-errs:
#! /usr/sbin/magicfilter # # Magic filter setup file for 600 DPI LaserJet 4 series without PostScript # (i.e. LJ 4P, 4, 4+, 4V or 4Si without PostScript option installed) # # This file has been automatically adapted to your system. # # PostScript 0 %! filter /usr/bin/gs -q -sDEVICE=ljet4 -I/usr/lib/ghostscript -I/usr/lib/ghostscript/fonts -r600 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER -sOutputFile=- - 0 \004%! filter /usr/bin/gs -q -sDEVICE=ljet4 -I/usr/lib/ghostscript -I/usr/lib/ghostscript/fonts -r600 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER -sOutputFile=- - # PDF 0 %PDF fpipe /usr/bin/gs -q -sDEVICE=ljet4 -I/usr/lib/ghostscript -I/usr/lib/ghostscript/fonts -r600 -sPAPERSIZE=a4 -dNOPAUSE -dSAFER -sOutputFile=- - # TeX DVI 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f # compress'd data 0 \037\235 pipe /bin/gzip -cdq # packed, gzipped, frozen and SCO LZH data 0 \037\036 pipe /bin/gzip -cdq 0 \037\213 pipe /bin/gzip -cdq 0 \037\236 pipe /bin/gzip -cdq 0 \037\240 pipe /bin/gzip -cdq # troff documents 0 .\?\?\040 ffilter `/usr/bin/grog -Tlj4 $FILE` 0 .\\\" ffilter `/usr/bin/grog -Tlj4 $FILE` 0 '\\\" ffilter `/usr/bin/grog -Tlj4 $FILE` 0 '.\\\" ffilter `/usr/bin/grog -Tlj4 $FILE` 0 \\\" ffilter `/usr/bin/grog -Tlj4 $FILE` # ditroff 0 "x T ps" pipe /usr/bin/grops 0 "x T dvi" pipe /usr/bin/grodvi 0 "x T ascii" pipe /usr/bin/grotty 0 "x T latin1" pipe /usr/bin/grotty 0 "x T lj4" filter /usr/bin/grolj4 # Portable bit-, grey- and pixmaps 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null 0 P6\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null # HP Printer Control Language (PCL) -- assume start with reset code 0 \033E\033 cat # HP Printer Job Language (PJL) 0 \033%-12345X cat 0 "@PJL " cat 0 @PJL\t cat 0 @PJL\r cat 0 @PJL\n cat # GIF files 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null # JFIF (JPEG) files 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm # TIFF files (the last two bytes of the "magic" is really a version number; # but the magic is really lame and as far as I have understood the version # number has never changed and never will, so we include it.) 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE # BMP files (even lousier magic -- Microsoft strikes again!) 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ /usr/bin/bmptoppm 2>/dev/null 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ /usr/bin/bmptoppm 2>/dev/null 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ /usr/bin/bmptoppm 2>/dev/null # Garbage delivered from Windows via Samba # (donated by Andree Leidenfrost <[EMAIL PROTECTED]>) # 300 \033\052\157 cat # later changed to # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) 0 \000\000\000\000\000 cat # Sun rasterfiles 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null # SGI Imagelib (IRIS RGB) files 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null # FIG files; reported by Steven P. Hill <[EMAIL PROTECTED]> 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy # # Standard rejects... things we don't want to print # # Various archive formats 257 ustar\0 reject Attempted to print a tar file. 257 "ustar \0" reject Attempted to print a tar file. 0 07070 reject Attempted to print a cpio file. 0 PK\3\4 reject Attempted to print a zip file. 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. # Binaries (Linux): reject with email message 0 \013\1d\0 reject Attempted to print a compiled binary. 0 \100\1d\0 reject Attempted to print a compiled binary. 0 \007\1d\0 reject Attempted to print a compiled binary. 0 \314\0d\0 reject Attempted to print a compiled binary. 0 \177ELF reject Attempted to print an ELF object. 0 \007\001\0 reject Attempted to print an object file. 216 \021\001\0\0 reject Attempted to print a core dump file. 0 !<arch> reject Attempted to print an archive. 0 =<ar> reject Attempted to print an archive. # Don't confuse this one with troff! 0 .snd reject Attempted to print Sun/NeXT audio data. # optimistic troff magic 0 . ffilter `/usr/bin/grog -Tlj4 $FILE` # wacko troff magic 0 ''' ffilter `/usr/bin/grog -Tlj4 $FILE` # wild guess: PCL control codes start with <ESC> 0 \033 cat # Default entry -- for normal (text) files. MUST BE LAST. default cat \eE\e&k2G\e(0N \eE