Geico Caveman wrote:
> Well, this is really not a server, but this set of groups are
> collectively perhaps the best place to ask this question.
>
> I have a windows only printer that is attached to a windows machine
> (Windows XP Professional SP 3).
>
> I have followed this guide to redirect the port and set up a dummy
> postscript printer to allow unix hosts to print:
>
> http://iharder.sourceforge.net/curre...winmacprinter/
>
> The two hosts are properly networked on the same subnet.
>
> LPD service is running, and I have changed its scope to accept
> connections only from the linux host.
>
> Yes, port 515 is open and I can telnet to it.
>
> In the Event Viewer, I have this persistent failure to accept print jobs
> from the linux host:
>
> Source: LPDSVC
> Event ID: 4007
> Type: Warning
> Illegal format used for commands received from 192.168.0.1 : service
> refused
>
> (192.168.0.1 is the linux host)
>
> Correspondingly, the error on the linux host is
> /usr/lib/cups/backend/lpd failed.
>
> I have tried to add (a) SimulatePassThrough (1) and (b)
> LpdPrinterPassThrough (1) keys to the registry using regedit:
>
> \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi ces\LPDSVC\Parameters
> for the first one (a).
> and the printer under \Control\ for the second one (b).
>
> No use.
>
> Retstarted spooler and lpdsvc. Rebooted. Restarted cups on the linux host.
>
> No use.
>
> Suggestions ? (No, buying a decent cross platform printer is out of the
> question for the office, so I am stuck with this one.)
>
you may have better luck sharing the printer as a windows share and
setting up an smb client.
Hre is a guide as to how to do that shamelesslessly cribbed
Setting up a Linux client printing to a Linux Samba print server
All you need to do is activate the Cups admin GUI and install a printer
(not a physical printer), bearing in mind that you're printing to IP
address 192.168.2.2 where the queuename there is laserjet1020 (It's a HP
Laserjet 1020). The steps are, screen by screen, as follows:
* Open
http://localhost:631 --> Administration --> Add Printer:
enter a printer name, say hpviasamba, no spaces, and optionally a
location and description.
* In Device for hpviasamba, select from the drop-down list Windows
printer via Samba.
* In Device URI, enter smb://workgroup/192.168.2.2/laserjet1020.
If you have restricted access to the server, you must add the
username and password in the URI; e.g.
smb://workgroup/username

assword@192.168.2.2/laserjet1020.
You can use the NetBIOS name instead of the IP address in the
device URI but you need to have passed the browsing test that I gave
above for good Name Resolution.
* Select the printer manufacturer from list in cups database
* Select the printer model from list in cups database
* Click printers, click Configure Printer to set formatting settings
* On the Printers page, click Print Test Page to check connectivity
Or are you SURE the printer is 'windows only' I tend to attach printers
either direct to the network, or to the linux machines on it..and then
tal to them via either direct print or SMB if you want to set up samba
and make them look like 'windows printers'
Experience suggests the less you try and make windows smart, the better
luck you have.