Operating System - Linux
1820942 Members
4079 Online
109629 Solutions
New Discussion юеВ

Re: Getting Direct Jet to work with Linux

 
Admin32
Advisor

Getting Direct Jet to work with Linux

Can someone explain what exactly is required to get a print server (direct jet) thats got a hp 4050 to work with a Linux server ?

My understanding is that I need to configure a queue on the linux server and with directjet s/w, attach the print server to the linux queue ??

Any info is appreciated !

Thank you
5 REPLIES 5
Bill Thorsteinson
Honored Contributor

Re: Getting Direct Jet to work with Linux

You can use the printer directly if you assign it an
IP address. To do this you
will need JetDirect to
configure the printer. This can be on any computer you choose.

Installed rpm packages are
- lpr
- rhs-printfilters.
Basically you need an lp spooling package, and a
print filter package that can
convert output to postscript
when necessary.

The following definition works for me. Change the IP address as appropriate.

lp: :sd=/var/spool/lpd/lp: :mx#0: :sh: :rm=192.168.0.155: :rp=raw: :if=/var/spool/lpd/lp/filter:
Admin32
Advisor

Re: Getting Direct Jet to work with Linux

Thanks Bill for the information.

After checking /etc/printcap I found a entry for our exisiting printer, which works fine:
----------------
grafeias: :sd=/var/spool/lpd/grafeias: :mx#0: :sh: :rm=192.168.1.199: :rp=grafeias: :lpd_bounce=true:
------------------

so I have added the following to the printcap file:
-------------
hp4050: :sd=/var/spool/lpd/hp4050: :mx#0: :sh: :rm=192.168.1.198: :rp=hp4050: :lpd_bounce=true:
--------------

This is based on the exisiting entry which seems to work for our other HP printer(namely 'grafeias'),which is directly connected to the network.

After adding the new printer, I entered checkpc -f -V and it fixed the /var/spool/lpd/hp4050 spooling dir, but when I enter "lpr -f test.txt -P hp4050" I get the following error:
requesting printer hp4050@localhost
job 'root@ergatis+612' transfer to hp4050@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^Bhp4050' to hp4050@localhost
error msg: 'spool queue for 'hp4050' does not exist on server ergatis.ourdomain.com'
error msg: ' non-existent printer or you need to run 'checkpc -f''

Any ideas what I am doing wrong or missing ???
Bill Thorsteinson
Honored Contributor

Re: Getting Direct Jet to work with Linux

Try changing the rp entry to raw. I believe rp is short for remote protocol. For remote access the hp4050 has a couple of protocols. raw it the one I use.
Bill Thorsteinson
Honored Contributor

Re: Getting Direct Jet to work with Linux

I took a second look at your error message and configuration. It looks like you have configured the same IP for both printers.

At the JetDirect printer: press the menu button once to get the configuration menu; press the item button twice to get the print configuration report item, and press select to get the report. It will include the configured IP.

If the ip is 192.0.0.192, download the JetDirect admin package for windows, and locate the hp4050. You can then configure the IP address.
Admin32
Advisor

Re: Getting Direct Jet to work with Linux

The IP Addresses used are not the same :) If you look closely, you will notice that one is .199 and the other .198 !

Anyways, I figured the problem. I had to change the name of the hp4050 printer to match what I used in the printcap file, and it worked right away !

I think it still though does need some filters applied to it .. but i need to do some serious studing before attacking that part ! :)

Thank you for the help !