APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > linux ghostscript postscript printing ––>Re:linux/printer driver
Printer Friendly Version




News Group Posts

linux ghostscript postscript printing



From: Tony Lawrence <tony@aplawrence.com>
Subject: Re: linux/printer driver
Date: Tue, 16 Apr 2002 20:00:25 GMT

Edward Jay Weiss wrote:
> I have Redhat Linux, Ver. 7, installed on my computer. I have an Epson
> Stylus, C80 printer.  When I try to print, all I get is text print
> directions, not my document.  Any suggestions ?  E.J. Weiss

Without knowing what you are seeing, I'm going to make a wild guess and 
assume you are seeing Postscript commands perhaps?



If you used the print-conf gui tool, go back into it and check your 
printer driver. It may be sending an option that Ghostscript doesn't 
recognize.  I had a similar problem with my Lasejet 6L

(from Moving from SCO to Linux)
Printing

My next task was to add a printer, using the Linux "printtool". This 
worked fine for text, but failed miserably for postscript (note when 
testing printers from printtool- if you make changes, you have to save 
them and restart lpd). That's what I have learned to expect with Linux; 
although the filters can handle this very well, there's something broken 
somewhere (at least with regard to my Laserjet 6L printer) because I 
have yet to have it work without manual editing. Actually, having the 
printer handle postscript isn't all that important to me because the 
only reason I need that is for printing from Netscape, and for that I 
can use the same "webprint" script I used on SCO:

#!/bin/bash
# webprint
gs -q -sDEVICE=ljet4 -r600 -sPAPERSIZE=letter -dNOPAUSE -dSAFER 
-sOutputFile="-" - > /dev/lp0

On the other hand, I'm stubborn. It's supposed to work, so why doesn't 
it? So I followed the trail and found that "magicfilter" is what's used 
here. Great- something I know nothing about. I did find its 
configuration for Postscript printing (it's a file with a ".foo" 
extension in /var/spool/lpd/lp if your printer is named "lp"), and I 
tried adjusting it, but still couldn't get it to work right. I guess 
I'll leave that for another day. Debugging this is a pain, because the 
only way to test is to try to print a Postscript file. That generates 
reams of paper when it fails, so you have to:

     * Pull the paper from the printer (the 6L has no "off-line" switch)
     * run lpc and then "stop all" and "lprm all" (assuming no other 
jobs, of course)
     * Unplug the printer to clear the buffer
* Run "start all" and go back to debugging.





The final resoluton of this was simple: change the printer driver (in 
Printtool) to Laserjet4. The printer is a 6L, but that screws up 
Ghostscript, whereas Laserjet 4 works fine.

-- 

Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: 
Free Unix/Linux Consultants list: /consultants.html


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?




More Articles by Tony Lawrence - Find me on Google+



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon
Versatile Site Map Generator $59.00
A1 Sitemap Generator

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

pavatar.jpg

This post tagged:

       - Linux
       - Printing
       - Troubleshooting




Unix/Linux Consultants

Skills Tests

Guest Post Here