Solved

HP DeskJet 520 question.

Posted on 1997-12-19
5
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

691 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