🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ahn.tech.linux
Article #4087

Re: newbie asks how to print in Linux..

#4087
From: Me
Date: Fri, 27 Nov 1998 00:00
129 lines
4741 bytes
This is a multi-part message in MIME format.
--------------12ABA8967D1DE9FDF8B50D02
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

CStackmann wrote:

> I am running SuSE 5.2 on my computer.
> Though I have compiled Linux several times and run yast to install my
> printer (HP-Deskjet 550C) I still can't print anything.
> If someone could help me please.
> Thanks in advance
>     Christoph Stackmann

  Here you go.  Add these to your /etc/printcap and toss this filter in
your spool dir.
 ex.  /var/spool/lp1

Filter will filter it to print without staircase effect.  filter2 will
give great printing from
netscape and other programs under X windows which use postscript.  You
have
to install ghostscript for this to work.  I think it's in the ap
package.

Happy printing...



--------------12ABA8967D1DE9FDF8B50D02
Content-Type: text/plain; charset=us-ascii; name="printcap"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="printcap"

#
# 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
#
# 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
#
# Hp deskjet 855c text mode:
lp1:\
	:lp=/dev/lp1:\
	:sd=/usr/spool/lp1:\
	:if=/var/spool/lp1/filter2:\
	:lf=/var/spool/lp1/errs:\
	:sh:
# Hp deskjet 855c Raw mode with postscript filter
lp:\
	:lp=/dev/lp1:\
	:sd=/var/spool/lp1:\
	:mx#0:\
	:lf=/var/spool/lp1/errs:\
	:if=/var/spool/lp1/filter:\
	: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:




--------------12ABA8967D1DE9FDF8B50D02
Content-Type: text/plain; charset=us-ascii; name="filter"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="filter"

#!/bin/sh
/usr/bin/gs -dSAFER -dNOPAUSE -sPAPERSIZE=a4 \
	-sDEVICE=cdj550 -dBitsPerPixel=32 -dShingling=1 -dDepletion=1 \
	-sOutputFile=-  -q -


--------------12ABA8967D1DE9FDF8B50D02
Content-Type: text/plain; charset=us-ascii; name="filter2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="filter2"

#!/bin/bash
echo -ne \\033\&k2G
cat
echo -ne \\f

--------------12ABA8967D1DE9FDF8B50D02--
Technical Details
Message-ID: <365F2A08.240CAAB9@yahoo.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <73h9u0$f9o$1@black.news.nacamar.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11033e,86a62cd58343b43a
X-Google-Attributes: gid11033e,public
From: Me <spent1@yahoo.com>
Subject: Re: newbie asks how to print in Linux..
Date: 1998/11/27
Message-ID: <365F2A08.240CAAB9@yahoo.com>
X-Deja-AN: 416331568
References: <73h9u0$f9o$1@black.news.nacamar.net>
Content-Type: multipart/mixed; boundary="------------12ABA8967D1DE9FDF8B50D02"
Organization: MegsInet, Inc. - Low Cost, High Performance Internet Services
Mime-Version: 1.0
Newsgroups: ahn.tech.linux