Ghostscript, HP LaserJet 6L, Windows 2000 and Print Services for Unix

Ghostscript, HP LaserJet 6L, Windows 2000 and Print Services for Unix

Post by Fred Randal » Sun, 04 Nov 2001 12:58:22



I have an HP LaserJet 6l attached to a pc running Windows 2000.  It is an
old 100Mhz Pentium that I don't mess with so it is good for a print server,
always up and running when I need to print.  I have installed Print Services
for Unix to make it available to my Solaris 8 and 7 systems.

I can add the printer via admintool and print ascii text to it without a
problem (lp /etc/hosts works great) but anything else comes out as garbage.
I downloaded and installed the ghostscript package from SunFreeware.com
(ghostscript-6.0-sol8-sparc-local.gz) and tried to set up a print filter.
Searching the archives on deja.com gave me many examples of printing through
ghostscript to a local printer or a printer with a direct network connection
(jet direct for example), however I was unable to find instructions for
printing to a printer attached to another host.  Here is what I have tried:

modifying the /usr/lib/lp/model/netstandard file by removing if/if section
for the filter and adding:

FILTER="/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 -sOutput
File=- -"

Then adding the printer through this command:

lpadmin -p HPlaser -i /usr/lib/lp/model/netstandard -v /dev/null -o
dest=192.168.0.50 -I postscript
enable HPlaser
accept HPlaser

All of the commands complete without error.  Then I set the printer as
default through admintool.  When I try to print even simple ascii text
through lp, I get the following error:

UX:lp: ERROR: There is no filter to convert the file content.
TO FIX:     Use the lpstat -p -l command to find a
                   printer that can handle the file type
                   directly, check your filters using lpfilter -f and l, or
                   consult with your system
                   administrator.

The lpstat command gives me this:

printer HPlaser is idle. enabled since Fri Nov  2 22:48:41 EST 2001.
available.
        Form mounted:
        Content types: postscript
        Printer types: unknown
        Description:
        Connection: direct
        Interface: /usr/lib/lp/model/netstandard
        On fault: write to root once
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Banner required
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port settings:
        Options: dest=192.168.0.50

I added all filters with the lpfilter -f and l command.

Can anyone shed some light on what I am doing wrong?  Thanks in advance for
any help.

fred

 
 
 

Ghostscript, HP LaserJet 6L, Windows 2000 and Print Services for Unix

Post by Greg Andre » Sun, 04 Nov 2001 13:23:25



>I have an HP LaserJet 6l attached to a pc running Windows 2000.  It is an
>old 100Mhz Pentium that I don't mess with so it is good for a print server,
>always up and running when I need to print.  I have installed Print Services
>for Unix to make it available to my Solaris 8 and 7 systems.

>I can add the printer via admintool and print ascii text to it without a
>problem (lp /etc/hosts works great) but anything else comes out as garbage.
>I downloaded and installed the ghostscript package from SunFreeware.com
>(ghostscript-6.0-sol8-sparc-local.gz) and tried to set up a print filter.
>Searching the archives on deja.com gave me many examples of printing through
>ghostscript to a local printer or a printer with a direct network connection
>(jet direct for example), however I was unable to find instructions for
>printing to a printer attached to another host.

The filter definition given in the Solaris on Intel FAQ, question 6.4,
would have worked.  I believe I've posted the general steps on how
to use that filter with the netstandard interface in the past.

Quote:

>modifying the /usr/lib/lp/model/netstandard file by removing if/if section
>for the filter and adding:

>FILTER="/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 -sOutput
>File=- -"

>Then adding the printer through this command:

>lpadmin -p HPlaser -i /usr/lib/lp/model/netstandard -v /dev/null -o
>dest=192.168.0.50 -I postscript
>enable HPlaser
>accept HPlaser

Oops.  "-I postscript" ?!?  But the printer doesn't support Postscript
or you wouldn't be setting up ghostscript, would you?

Quote:

>UX:lp: ERROR: There is no filter to convert the file content.

That's right.  You said the printer should receive only Postscript
(-I postscript), and you tried to send a text file.  Since you've
bypassed all the normal filtering by embedding the gs command in
the netstandard interface, you don't want Solaris to think a filter
is needed.

Try:  lpadmin -p HPlaser -I any

so Solaris will think the printer can take any kind of print job.

You will probably still have trouble.  The bsd print protocol spoken
when the netstandard interface is selected lacks one parameter by
default.  It's a protocol parameter that a network printer doesn't
need.  You're not delivering the print job to a network printer,
though.  You're delivering it to a Windows print server, and Windows
is expecting that parameter.

Make sure you're up to date on your Solaris print patch version.
If you needed to apply the latest patch, then you'll need to delete
and re-add the printer again to use the latest netstandard script.
(that script won't have your FILTER command anymore - that's why
it's better to use the FAQ answer than hack the netstandard script)

Then, after you've re-added the printer per the above info, type
this command:

  lpadmin -p HPlaser -o data-file-type=l

  -Greg
--

I have a map of the United States that's actual size
                 -- Steven Wright

 
 
 

Ghostscript, HP LaserJet 6L, Windows 2000 and Print Services for Unix

Post by Fred Randal » Mon, 05 Nov 2001 12:43:16


Well, for now it seems beyond my grasp.  I installed CUPS and it works
great.  Will tinker with ghostscript at a later date.  Thanks for the
advice.

fred



> >I have an HP LaserJet 6l attached to a pc running Windows 2000.  It is an
> >old 100Mhz Pentium that I don't mess with so it is good for a print
server,
> >always up and running when I need to print.  I have installed Print
Services
> >for Unix to make it available to my Solaris 8 and 7 systems.

> >I can add the printer via admintool and print ascii text to it without a
> >problem (lp /etc/hosts works great) but anything else comes out as
garbage.
> >I downloaded and installed the ghostscript package from SunFreeware.com
> >(ghostscript-6.0-sol8-sparc-local.gz) and tried to set up a print filter.
> >Searching the archives on deja.com gave me many examples of printing
through
> >ghostscript to a local printer or a printer with a direct network
connection
> >(jet direct for example), however I was unable to find instructions for
> >printing to a printer attached to another host.

> The filter definition given in the Solaris on Intel FAQ, question 6.4,
> would have worked.  I believe I've posted the general steps on how
> to use that filter with the netstandard interface in the past.

> >modifying the /usr/lib/lp/model/netstandard file by removing if/if
section
> >for the filter and adding:

>FILTER="/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 -sOutpu
t
> >File=- -"

> >Then adding the printer through this command:

> >lpadmin -p HPlaser -i /usr/lib/lp/model/netstandard -v /dev/null -o
> >dest=192.168.0.50 -I postscript
> >enable HPlaser
> >accept HPlaser

> Oops.  "-I postscript" ?!?  But the printer doesn't support Postscript
> or you wouldn't be setting up ghostscript, would you?

> >UX:lp: ERROR: There is no filter to convert the file content.

> That's right.  You said the printer should receive only Postscript
> (-I postscript), and you tried to send a text file.  Since you've
> bypassed all the normal filtering by embedding the gs command in
> the netstandard interface, you don't want Solaris to think a filter
> is needed.

> Try:  lpadmin -p HPlaser -I any

> so Solaris will think the printer can take any kind of print job.

> You will probably still have trouble.  The bsd print protocol spoken
> when the netstandard interface is selected lacks one parameter by
> default.  It's a protocol parameter that a network printer doesn't
> need.  You're not delivering the print job to a network printer,
> though.  You're delivering it to a Windows print server, and Windows
> is expecting that parameter.

> Make sure you're up to date on your Solaris print patch version.
> If you needed to apply the latest patch, then you'll need to delete
> and re-add the printer again to use the latest netstandard script.
> (that script won't have your FILTER command anymore - that's why
> it's better to use the FAQ answer than hack the netstandard script)

> Then, after you've re-added the printer per the above info, type
> this command:

>   lpadmin -p HPlaser -o data-file-type=l

>   -Greg
> --

> I have a map of the United States that's actual size
> -- Steven Wright

 
 
 

1. ghostscript for HP LaserJet 6L ???

Hello,

     Has anyone gotten a LaserJet 6L to work with ghostscript?  Which
version of ghostscript, and what driver?  I'm using gs5.10 (Aladdin, not
GNU ghostscript).  I've tried the pxlmono and lj5gray devices.

     I'm using ghostscript in conjuntion with apsfilter.  I've only been
able to get "raw" output (duh).  Anything else (i.e., postscript files)
turn out as gobbledygook.

     I've tried this:

          gs -sDEVICE{pxlmono, lj5gray} -sOutputFile=test
some_postscript_file.ps

          cat test >> /dev/lp1

with junk resulting at the printer.  Are either of these commands
syntactically wrong?

     Is the LaserJet 6L backwards-compatible with any other LaserJet?
(I've been able to print to a LaserJet 4L in the past).

     Any information would be welcome.  I just escaped the HP Technical
Support phone maze empty-handed.

Hemonth Rao

2. Any way to "prune" out directories from a tar?

3. HP Laserjet 6L with ghostscript and Linux

4. How to improve performance of regular expression pattern matching

5. HP LaserJet 6L and Ghostscript

6. What causes SIGBUS?

7. Printing with HP 6L LaserJet

8. Unix - Frequently Asked Questions (1/7) [Frequent posting]

9. Printing to HP LaserJet 6L

10. Ghostcript printing using Econo mode with HP LaserJet 6L

11. Howto print with HP Laserjet 6L

12. Printing with HP LaserJet 6L

13. HP Laserjet 6L always ends print job with a blank page!