HP DeskJet 520 question.

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?
n94maghoAsked:
Who is Participating?
 
t2ppConnect With a Mentor Commented:
94, all you need do is use ghostscript. This is the Linux/GNU version of Postscript.
0
 
n94maghoAuthor Commented:
Someone told me that I neaded some mor program also, but it's not that way?
0
 
t2ppCommented:
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
 
t2ppCommented:
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
 
n94maghoAuthor Commented:
Thanks!


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.