Solved

HP DeskJet 520 question.

Posted on 1997-12-19
5
275 Views
Last Modified: 2013-12-15
Mabe I'll by a HP DeskJet 520 printer and I'm woundering if I can print postscript files on it? Do I need some special programs to do that?
0
Comment
Question by:n94magho
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
t2pp earned 50 total points
ID: 1631073
94, all you need do is use ghostscript. This is the Linux/GNU version of Postscript.
0
 

Author Comment

by:n94magho
ID: 1631074
Someone told me that I neaded some mor program also, but it's not that way?
0
 
LVL 1

Expert Comment

by:t2pp
ID: 1631075
You need to setup a /etc/printcap entry for the printer. Something like this will do...

lp|inkjet: \
        :lp=/dev/lp1: \
        :sd=/var/spool/lpd/lp: \
        :if=/usr/local/bin/lpfilter: \
        :mx#0: \
        :sh
 
# HP DeskJet 520 (Postscript)
psjet|postscript_inkjet: \
        :lp=/dev/lp1: \
        :sd=/var/spool/lpd/psjet: \
        :if=/usr/local/bin/psjetfilter: \
        :mx#0: \
        :sh

0
 
LVL 1

Expert Comment

by:t2pp
ID: 1631076
94, /usr/local/bin/lpfilter looks like this...
#!/bin/sh
#This File came out of the Printing-HOWTO
echo -ne \\033\&k2G
cat
echo -ne \\f

and /usr/local/bin/psjetfilter looks like...
nice -n 20 /usr/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=deskjet -sOutputFile=- -

You don't need the "nice -n 20" bit. This just gives printing the low priority it deserves. Good luck.
0
 

Author Comment

by:n94magho
ID: 1631077
Thanks!


0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question