Solved

HP DeskJet 520 question.

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
I NEED A "BARE" LINUX ... 9 91
Migrating a Linux server to VMware 3 112
Certificate Request CentOS/Apache 1 23
DB2 9.7 Grant Execute SP 4 16
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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.:

726 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