[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference nlfdc::linux-users

Title:Linux, the Free Operating System
Notice:New here? Sign in on topic 2
Moderator:EST::DEEGAN
Created:Fri Feb 11 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:609
Total number of notes:2862

603.0. "Looking for gs la75-filter" by SSDEVO::FIALA (Me, I'm just a recycler.) Wed May 21 1997 22:56

I have RH Linux 4.1 and best 9 pin filter I could find was an epson.
Its not great on my LA75. I see references to, but cannot locate
[or build?] a thing called la75-filter. Apparently its part
of ghostscript?. Anyone have one or a pointer to same?.
Is is a shell script or an executeable?.

I have my HP DJ870 setup with a DJ550C filter that appears
to be just fine. Is there a proper/better one for the 870?.
T.RTitleUserPersonal
Name
DateLines
603.1NEWVAX::PAVLICEKUpgrade your PC: Install LinuxThu May 22 1997 04:259
    In your filter, you'll need a line that includes something like:
    
    	gs -q -sDEVICE=la75 [... and other stuff...]
    
    If you have a filter in /usr/spool/lpd/lp/ (or wherever) that uses
    ghostscript (gs) to process things, use the "-sDEVICE=la75"
    specification instead of whatever is there.
    
    -- Russ
603.2I dont know if gs does or doesnt ?SSDEVO::FIALAMe, I'm just a recycler.Thu May 22 1997 23:278
Er um, but #gs -help doesnt have an "la75" entry.
gs appears to include or be built with la75 stuff
then I see references to makefiles.....
From what I can read it appears that if
gs -help doesnt have what you need you need to add
it [with a rebuild??].
Where does gs get its device list from?, just looking
at files in a directory or is it hardcoded.???
603.3What version of gs are you using?NEWVAX::PAVLICEKhttp://www.boardwatch.com/borgtee2.jpgFri May 23 1997 00:1717
    This is interesting indeed!
    
    I'm running Red Hat 3.0.3 which uses ghostscript 2.6.2 which has
    support for an la75 (and LOTS of other things).
    
    I did some hacking on ghostscript for VMS many years back for la75
    support (before someone added one for real).  Adding a protocol might
    be simple if the code is there but not included in the build.  It
    would be decidedly non-trivial if the code is not there at all.
    
    Maybe the first thing to try is to grab a 2.6.2 version of gs and put
    it on your box as 'gs_la75' or somesuch and have the filter use that
    instead.  Otherwise, you might need to poke around the gs makefile and
    see if you can rebuild with the la75 code included in the current
    version.
    
    -- Russ
603.4From the Printing HOWTONEWVAX::PAVLICEKhttp://www.boardwatch.com/borgtee2.jpgFri May 23 1997 02:2314
    From a version of the Printing HOWTO:
    ------------------
    
    To print ps, first determine your driver name with `gs -help' which
    lists installed drivers. If the device you need is not listed, you must
    compile gs yourself from the source distribution (do not panic. Do
    follow the instructions in make.doc. You will need 5 or 6 megs of space to
    build it in.) Then type `gs -dNOPAUSE -sDEVICE=??????
    -sOutputFile=/dev/???? file.ps' and your output should (hopefully)
    appear at your printer.
    
    ------------------
    
    -- Russ
603.5NEWVAX::PAVLICEKhttp://www.boardwatch.com/borgtee2.jpgFri May 23 1997 02:4611
    I just looked at some net docs of the latest Ghostscript and I
    see what you mean -- it appears that at least one common variant
    doesn't have the la75 support built-in (by default, at least).
    
    But, you can try one of the kits from: 
    
    	ftp://ftp.cs.wisc.edu/ghost/gnu/
    
    if needed.
    
    -- Russ
603.6I have 3.0.3 hanging around...SSDEVO::FIALAMe, I'm just a recycler.Fri May 23 1997 02:4711
In fact the la75 worked under 303 :-)
[I seem to remember the printtool listed it explicitly]

Could I just copy the la75 filter from 3.0.3?
[I have no idea what the filter is [part of gs, a script,
 some overlay to gs]...

I saw a reference on the debian site to "la75-filter" but
couldnt find any such file.

Perhaps is should just remake gs?
603.7NEWVAX::PAVLICEKhttp://www.boardwatch.com/borgtee2.jpgFri May 23 1997 03:0244
    The "filter" is (often) a desperately simple script.  Here's one on my
    box (RH 3.0.3) called /usr/spool/lpd/lp/filter.ljetplus :
    
    --------------------------
    #!/bin/sh
    
    DEVICE=ljetplus
    RESOLUTION=300x300
    PAPERSIZE=letter
    SENDEOF=
    
    nenscript -TUS -ZB -p- |
    if [ "$DEVICE" = "PostScript" ]; then
            cat -
    else
            gs -q -sDEVICE=$DEVICE \
                    -r$RESOLUTION \
                    -sPAPERSIZE=$PAPERSIZE \
                    -dNOPAUSE \
                    -dSAFER \
                    -sOutputFile=- -
    fi
    
    if [ "$SENDEOF" != "" ]; then
            printf "\004"
    fi
    
    exit 0
    ---------------------------
    
    The key to an la75 filter is la75 support from gs.
    
    What I'd do:
    
    	1. get a gs executable that supports the la75
    	2. change the line above to DEVICE=la75 (and don't forget to change
    	   the 'gs' to 'gs_la75' or whatever if you use another version of
    	   Ghostscript).
    	3. name the modified file /usr/spool/lpd/lp/filter
    	4. make sure the 'lp' entry in /etc/printcap is correct (3.0.3 has
    	   something called printtool that can aid in this; I don't know
    	   what 4.x has to help you).
    
    -- Russ
603.8NEWVAX::PAVLICEKhttp://www.boardwatch.com/borgtee2.jpgFri May 23 1997 03:0412
    I just found my old la75 entry in /etc/printcap:
    
    ----------------
    la75|serial|lp: \
            :lp=/dev/ttyS2: \
            :br#4800: \
            :sb=true: \
            :sh=true: \
            :lf=/dev/console:
    ----------------
    
    Make sure the tty and baud rate are set properly.