System Setup: Printer

  SlashDot  Python Home

 

Configuration
Hardware
Linux
Disks
X Windows
Printer
Modem
Sound
Network
Scanner
CD-RW
Windows
Other

Table of Contents

Printer

1999-12-18 As part if installing SUSE 6.3, I tried to use YaST's solution, but it did a horrible job on my old HP DeskJet 660C. Ended up with DJ 500C, which just didn't do the job. Since I was happy with printing on redhat, I decided to copy that environment.

First, go back to the web and download Aladdin's ghostscript 5.50 and fonts as rpm's. Had to "--force" install on top of the SUSE-supplied 5.10. Maybe I should have removed the 5.10 rpm first. Also, put in /etc/profile.local:

#---ghostscript----------
export GS_LIB="/usr/share/ghostscript/5.50:usr/share/ghostscript/fonts"

Next, copy from redhat:

  • /etc/printcap
  • /var/spool/ldp/lp (copied as suse:/var/spool/lpd/postscript)
  • /usr/lib/rhs/rhs-printfilters (copied with that naming)

Then fix the printcap to point to the correct device. Apparently (per SUSE manual), as of 2.2.x, we get multi-use parallel ports, and that means we use /dev/lp0 instead of the old /dev/lp1.

Of course, it took a bit of stumblimg around before I figured this all out...

2000-08-30 Did a simple /var/lib/apsfilter/SETUP for cdj550C. Works great. Completely cleaned up all my hacks.

/etc/printcap

#
# Please don't edit this file directly unless you know what you are doing!
# Be warned that the control-panel printtool requires a very strict format!
# Look at the printcap(5) man page for more info.
#
# This file can be edited with the printtool in the control-panel.


###PRINTTOOL3## LOCAL cdj550 300x300 letter {} DeskJet550 1 {}
##lp|ps|PS|Postscript|djps:\
#	:sd=/var/spool/lpd/postscript:\
#	:mx#0:\
#	:sh:\
#	:lp=/dev/lp0:\
#	:if=/var/spool/lpd/postscript/filter:
#
# Fax-Printer for SuSEFax
#
fax|faxprint:\
        :lp=/dev/null:\
        :sd=/var/spool/lpd/faxspool:\
        :lf=/var/spool/lpd/faxspool/err.log:\
        :if=/var/spool/lpd/faxspool/filter:\
        :mx#0:\
        :sh:\
        :sf:









### BEGIN apsfilter: ### cdj550 letterdj color 300 ###
#   Warning: Configured for apsfilter, do not edit the labels!
#            apsfilter setup Wed Aug 30 21:52:16 PDT 2000
#
cdj550-ascii|lp1|cdj550-letterdj-ascii-mono-300|cdj550 letterdj ascii mono 300:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/cdj550-letterdj-ascii-mono-300:\
	:lf=/var/spool/lpd/cdj550-letterdj-ascii-mono-300/log:\
	:af=/var/spool/lpd/cdj550-letterdj-ascii-mono-300/acct:\
	:if=/var/lib/apsfilter/bin/cdj550-letterdj-ascii-mono-300:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
lp|Postscript|lp2|cdj550-letterdj-auto-color-300|cdj550 letterdj auto color 300:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/cdj550-letterdj-auto-color-300:\
	:lf=/var/spool/lpd/cdj550-letterdj-auto-color-300/log:\
	:af=/var/spool/lpd/cdj550-letterdj-auto-color-300/acct:\
	:if=/var/lib/apsfilter/bin/cdj550-letterdj-auto-color-300:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
lp-mono|lp3|cdj550-letterdj-auto-mono-300|cdj550 letterdj auto mono 300:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/cdj550-letterdj-auto-mono-300:\
	:lf=/var/spool/lpd/cdj550-letterdj-auto-mono-300/log:\
	:af=/var/spool/lpd/cdj550-letterdj-auto-mono-300/acct:\
	:if=/var/lib/apsfilter/bin/cdj550-letterdj-auto-mono-300:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
cdj550-raw|lp4|cdj550-letterdj-raw|cdj550 letterdj raw:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/cdj550-letterdj-raw:\
	:lf=/var/spool/lpd/cdj550-letterdj-raw/log:\
	:af=/var/spool/lpd/cdj550-letterdj-raw/acct:\
	:if=/var/lib/apsfilter/bin/cdj550-letterdj-raw:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
### END   apsfilter: ### cdj550 letterdj color 300 ###

Next, check the dvips settings. Make sure the first "@" default size is letter. We also uncomment to use the bakomo fonts. Then fix the autogenerated rc file so itgoes to letter instead of a4:

/home/hgg9140/.dvipsrc

% Paper size information.  First definition is the default.
%
%

@ letterSize 8.5in 11in

@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter
@+ letter
@+ %%EndPaperSize


%%%%%%%%%%%%%%%%%%
%%% sanskrit via ITRANS
%%%%%%%%%%%%%%%%%

% H: search for PS header files..(font files, etc)
% I think the : here makes dvips look into standard places first
H :/home/hgg9140/ITRANS/lib:/home/hgg9140/ITRANS/lib/fonts
%
% add the following psfonts.map file ...
p +/home/hgg9140/ITRANS/lib/psfonts.map
%
% R: use these font sizes if any font size missing
R 300 329 432
%
% f: run as a filter
% f
%o [filename] put output in given file (no-name -> <fname>.ps, !lpr does !lpr)
o 
% turn off partial downloading of fonts - that breaks ItxGuj etc
% for newer dvips's only
%j0




Bring up gv and go to State...gv options...Fallback Paper Size...Letter. Save and quit. This is stored in ~/.gv.

Next, need to connect from remote printer. On fred, installed lprold and aspfilter. Then ran /var/lib/aspfilter/SETUP (as root), and chose remote printer per SUSE manual. Result was:

fred:/etc/printcap

### BEGIN apsfilter: ### remote wilma lp ###
#   Warning: Configured for apsfilter, do not edit the labels!
#            apsfilter setup Sun Aug 27 12:37:01 PDT 2000
#
remote|lp|lp1|wilma-lp|wilma lp:\
	:lp=:\
	:rm=wilma:\
	:rp=lp:\
	:sd=/var/spool/lpd/wilma-lp:\
	:lf=/var/spool/lpd/wilma-lp/log:\
	:af=/var/spool/lpd/wilma-lp/acct:\
	:ar:bk:mx#0:\
	:tr=:cl:sh:
#
### END   apsfilter: ### remote wilma lp ###
 
Creator: Harry George
Updated/Created: 2001-01-07