Staircase Network Printing- /etc/printcap !!!

Staircase Network Printing- /etc/printcap !!!

Post by anil kumar m » Sun, 07 Jan 1996 04:00:00



i am having a very annoying problem.

i am running linux slackware on a 486Dx2.

i have configured a HP Laserjet 4 Plus Network Printer.

i am using lpd BSD spooling system.
i am able to print PostScript files correctly.
all my ascii files come staircased.

also i get two copies of all my printouts (both ascii & PS)

enclosed is the /etc/printcap file i am using.
i have also tried using the filters lpf one and two
unsuccessfully.

my printer name is "laser" and the network name is "hpq".

could someone please help me out !

thanks in advance
anil kumar m p

----------------------------------------------------------------
my /etc/printcap file
#
# 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.
#

#
# DecWriter over a tty line.
#lp|ap|arpa|ucbarpa|LA-180 DecWriter III:\
#       :br#1200:fs#06320:tr=\f:of=/usr/lib/lpf:lf=/usr/adm/lpd-errs:
#lp:lp=/dev/lp0:sd=/usr/spool/lp0:of=/usr/lib/lpf: lf=/usr/adm/lpd-errs
#
# Generic printer:
#lp:lp=/dev/lp1:sd=/usr/spool/lp1:sh
#
# typical remote printer entry
#ucbvax|vax|vx|ucbvax line printer:\
#       :lp=:rm=ucbvax:sd=/usr/spool/vaxlpd:lf=/usr/adm/lpd-errs:
#varian|va|Benson Varian:\
#       :lp=/dev/va0:sd=/usr/spool/vad:mx#2000:pl#58:px#2112:py#1700:tr=\f:\
#       :of=/usr/lib/vpf:if=/usr/lib/vpf:tf=/usr/lib/rvcat:cf=/usr/lib/vdmp:\
#       :gf=/usr/lib/vplotf:df=/usr/local/dvif:\
#       :vf=/usr/lib/vpltdmp:lf=/usr/adm/lpd-errs:
#versatec|vp|Versatec plotter:\
#       :lp=/dev/vp0:sd=/usr/spool/vpd:sb:sf:mx#0:pw#106:pl#86:px#7040:py#2400:\
#       :of=/usr/lib/vpfW:if=/usr/lib/vpsf:tf=/usr/lib/vcat:cf=/usr/lib/vdmp:\
#       :gf=/usr/lib/vplotf:vf=/usr/lib/vpltdmp:lf=/usr/adm/lpd-errs:\
#       :tr=\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
#\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
#\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n:
#
#lp|panasonic:lp=/dev/lp1:sd=/usr/spool/lp/panasonic:lf=/usr/bin/mail:mc#1:\
#             ft=$$c$$p$$r$$f:hl#2:fl#3:ht=$$c$$n$$r$$t:sh:
#
# HP Laser jet plus
#lp|hpj:\
#        :lp=/dev/lp1:\
#        :sd=/usr/spool/lp1:\
#        :mx#0:\
#        :of=/usr/spool/lp1/hpjlp:
#        :lf=/usr/spool/lp1/hp-log:
#
#lp|Generic dot-matrix printer entry:\
#        :lp=/dev/lp1:\
#        :sd=/var/spool/lp1/lp:sh:\
#        :if=/usr/bin/lpf:\
#        :df=/var/spool/lp1/filter.ps:\
#        :tf=/var/spool/lp1/filter.ps:\
#        :af=/var/spool/lp1/lp-acct:\
#        :lf=/var/spool/lp1/lp-err:
#
laser:\
      :lp=:rm=hpq:sd=/var/spool/laslpd::if=/usr/lib/lpf:lf=/var/adm/lpd-errs:

-------------------------------------------------------------------------
contents of one of the lpf files.

#!/bin/sh
if [ "$1" = -c ]; then
cat
else
sed -e s/$/ /
fi
# the ``echo -ne'' assumes that /bin/sh is really bash
echo -ne \\f

-------------------------------------------------------------------------
contents of  the other file.

#!/bin/sh
# Filter for HP printers to treat LF as CRLF
# the ``echo -ne'' assumes that /bin/sh is really bash
echo -ne \\033\&k2G
cat
echo -ne \\f

 
 
 

1. Printing staircases to network printer

Hello,

   I've setup printing to a stand alone Lexmark Optra S1855 printer with
the following:

  lpadmin -p lex1 -s <ip-address>
  lpadmin -d lex1

   and prints are arriving at this printer via the lp command, except that
the text is stair-cased (ie the print head is not doing a carrage return
after each line), what can I do to sort this?

   Also does anyone now of any online docs that explain how the Sys-V
printing system works, as I have no idea of the meaning of
models/filters/printwheels etc. I presume that I'll need some sort of
filter to fix the problem above but how? why? where?

Thanks in advance

Tony Singleton

2. WinBook dual boot problem

3. Need help with HPDJ720, printing script file and /etc/printcap

4. 3C509-TP won't receive

5. Please help find a program to print on remote printer (not using /etc/printcap)

6. linux

7. Duplex printing option in /etc/printcap

8. From system log to alert sounds

9. Help with Slackware 7, /etc/printcap, filters, and TCP/IP Printing

10. Converting /etc/printcap -> /etc/lp/*

11. help with printcap (printing on network printer)

12. Staircase Effect-free me from printing in windows.

13. Staircase Effect on Printing!