Operating System - Linux
1827295 Members
4003 Online
109717 Solutions
New Discussion

Re: problem for remote printing from Linux box

 
Ravi Yarlagadda
Occasional Advisor

problem for remote printing from Linux box

I am new for Linux. We installed Linux successfully.
We configured network printer (HP LaserJet 5si ) to Linux box and printed test reports and looks good.

We have Informix Application and customized various print modes ( like compressed mode, Landscape mode) in the report programs. When the report is printed from Linux box, these print modes are not recognized and printed normal mode.
The same report printed correctly using print modes from another HP BOX to the same network printer.

Can any one helps me to configure the printer to recognize various print modes (^[&l1O^[&k2S) ?

thanks
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: problem for remote printing from Linux box

It would be helpful to know how you are sharing the printer.

If its samba, no further configuraiton should be required after sharing the resource.

If its samba, could you see if you can find the printer from another Linux or windows box? If you can, what are the properties? It should be installable to other boxes with drivers and full functionality without having to mess around with escape codes.

If you are NOT using samba to share the printer, ignore me, I haven't got a clue how to share them with prior Linux protocols.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ravi Yarlagadda
Occasional Advisor

Re: problem for remote printing from Linux box

Printer was not configured with SAMBA. Unix Configured Network printer with directjet type.
Print modes (Escape Sequence) are not recognized while printing.
Stuart Browne
Honored Contributor

Re: problem for remote printing from Linux box

So you are using LPRing?

And you're printing to it as a 'remote printer' (using rm=) from a Unix machine?

Is it running through any input or output filters on the remote machine, before it gets passed off to the printer serving machine?

Or since it's a jet-direct, are you just printing to the printer directly from multiple multiple machines ?(this would be the suggested method)
One long-haired git at your service...
Ravi Yarlagadda
Occasional Advisor

Re: problem for remote printing from Linux box

Printer configured with the following details.

Name : hplp0
Type: Jet Direct printer
IP: Fully Qualified Domain Name like (print.xyz.com)
Port : 9100
Driver: HP LaserJet 5Si using ljet4 driver

Normal printing is ok. But it is not recognizing Printer Escape Sequances when the print job submitted from Linux Box.
Rick Garland
Honored Contributor

Re: problem for remote printing from Linux box

You can setup as a remote printer (rm= and this will solve your problem (or it should). I am making the assumption that you would use the HPUX system as the print server.

The other option is LPRing
Ravi Yarlagadda
Occasional Advisor

Re: problem for remote printing from Linux box

Where should be configured for remoter printer ?

I didn't find any remote printer option in the setup.

I found the following types only in the configuration

Local printer
Unix printer (LPD queue)
Windows Printer
Novell Printer
Jet direct printer


thanks for your suggestion.
Stuart Browne
Honored Contributor

Re: problem for remote printing from Linux box

Right. So you are using LPRng, and the 'printconf' tools to configure it.

If you are inserting your own PCL codes into the job, you might need to pass the '-oraw' flag on the 'lp' command line.

If it still fails, you might want to try either a "Generic Text" print driver, or the "RAW" one.

These don't really modify the print jobs in any major way, rather just pass them on tot he printer.
One long-haired git at your service...
Ravi Yarlagadda
Occasional Advisor

Re: problem for remote printing from Linux box

I understand extrnal print modes can be defined along with lp command. But, Escape Sequence defined in the report itself. Application needs to define in the report itself, otherwise report headings will not generate correctly for landscape reports.

These reports are printing correctly on various network printers from HP Box and it is not printing from Linux Box.