Operating System - HP-UX
1820605 Members
1839 Online
109626 Solutions
New Discussion юеВ

Re: printing to a windows 2000 lpd printer

 
david santos_1
New Member

printing to a windows 2000 lpd printer

Is it possible to setup a printer in sam to print to a printer attached to a windows 2000 workstation running lpd services?
9 REPLIES 9
Jeff Schussele
Honored Contributor

Re: printing to a windows 2000 lpd printer

Hi David,

Sure is.
Just set it up as a remote printer, specifying the hostname (or IP) of the W2K system & the queue name that the printer is known by on that host. You can call it whatever you wish on the HP system.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bill Hassell
Honored Contributor

Re: printing to a windows 2000 lpd printer

Just a caution: Windows knows nothing about Unix ASCII files and will not add the requisite CR after every LF character. So a simple ASCII file will print stairstep fashin across the page.

To print ASCII correctly, filter it through ux2dos.


Bill Hassell, sysadmin
Joseph Bague
Frequent Advisor

Re: printing to a windows 2000 lpd printer

Hi David,

Yes, just make sure you installed the print service for unix at your win2k box. To install just click the Add/Remove Programs icon in Control Panel then click the Add/Remove Windows component button from there click the check box of Other Network file and Print Services. After installation you may install the printer in SAM.

Hope it help.

Joseph
Expect nothing but ready for everything
Seth Parker
Trusted Contributor

Re: printing to a windows 2000 lpd printer

We just got through doing a couple of these. Sounds like you've got the printer up and running with the UNIX print services in Windows already, but is it shared? In our install, I had to share the printer (If someone else has a better way, I'd love to know!).

In SAM, add a Remote Printer, enter the host name under Remote System Name, and then the name of the printer share under Remote Printer Name.

It should be that easy. The lpstat output for Win2K printers is overkill though.

Bill: I've not noticed the problem with the ASCII stairstepping. I always use /etc/copyright as my test print and it looks fine. What am I doing differenly than you? We've got 11.00.
david santos_1
New Member

Re: printing to a windows 2000 lpd printer

ok....as advertised...it works with the cr/lf issue. Is there any way for me to take care of that on the windows 2000 side and/or can I do something with sam or lpadmin so the ux2dos filter is transparent?

thanks again!
Bill Hassell
Honored Contributor

Re: printing to a windows 2000 lpd printer

Nope, the CR/LF issue is a feature of the SysV lp spooling system which requires the remote system to process all options. If the remote printer was on an HP-UX bopx, there would be no problems, but Windows doesn't (wnat to) know anything about HP-UX systems. A much more compatible (and very simple) solution is to put the printer onto an HP JetDirect network card and use the HPPI software on HP-UX to print directly to the printer. The Win2000 system can also print directly to the printer.


Bill Hassell, sysadmin
Jeff Schussele
Honored Contributor

Re: printing to a windows 2000 lpd printer

Hi (again) David,

If this is an HP Laserjet you could access it's menu & go to the Printing Menu & turn on CR+LF which will append the CR to the LF. This will halt the stair-stepping. Most all other laser printers have this otion in their menus as well. It's the simplest way to deal with this problem.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Seth Parker
Trusted Contributor

Re: printing to a windows 2000 lpd printer

Bill: I'm at a loss here. I just checked 2 printers that are hooked up via the parallel port to Win2K computers. Both are shared and the TCP/IP Print Server service is running on both computers (I forgot to mention enabling the TCP/IP Print Server service).

When I submit "lp -d /etc/copyright", the output is correct on both. No stair stepping.

One of the printers is an HP LJ4 and it doesn't have the CR/LF option on its control panel. The other printer is a LJ 4100, and the "Append CR" option is set to "off".

Am I just lucky? What am I missing?

Thanks,
Seth
david santos_1
New Member

Re: printing to a windows 2000 lpd printer

Seth

Did you put in the registry key for raw mode "simulatepassthru"?