Solved

HP DeskJet 520 question.

Posted on 1997-12-19
5
273 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

948 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now