Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Printing from Win2k to OS 10.2 Mac USB printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: edentz on Sep 20, '02 01:57:15PM
This is a simple description of what I did to enable printing across a LAN from a Win2K desktop to a Hewlett Packard Deskjet 930C connected via USB to a OS 10.2 (jaguar) Mac. Originally I had sought to enable printing over my LAN via Samba, but was unable to get it working, even after downloading the excellent SSP beta package for Jaguar: http://xamba.sourceforge.net/ssp and reading a lot of the other articles here on cups and samba Fortunately the CUPS system seems to work just fine once you've got everything configured properly. Still if anyone would like to point out what I need to do to get it working via Samba I'd certainly be interested... For the following to be helpful, you'll probably need to be familiar with the command line interface and editing configuration files using a command line text editor like vi, emacs or pico. On the Mac I set up the following configuration: In the System Preferences Sharing panel under the Services tab Printer Sharing needs to be turned on. Open a terminal window and change to the /etc/cups/ directory. Use a text editor to uncomment the following line in the mime.convs file: #application/octet-stream application/vnd.cups-raw 0 - Also uncomment the following line in the mime.types file: #application/octet-stream The following may be specific to certain printers, but it was also necessary to change the following line in the printer.conf file: DeviceURI file:///dev/null I determined the correct URI by: 1. Opening the Print Center in the /Applications/Utilities/ folder. 2. Selecting my printer from the list (in my case the DESKJET 930C) 3. Holding down the Option/Alt key and clicking the Add button. 4. Selecting the "Advanced" option from the drop down menu 5. Then selecting the DESKJET 930C printer from the "Device" menu. 6. This resulted in the device URI being displayed in the field as follows: usb://HEWLETT-PACKARD/DESKJET%20930C?serial=XXXXXXXXXXX I later found out that this information is also available in the terminal using the command: lpinfo -v 7. I opened up the printer.conf file in the text editor and replaced "file:///dev/null" with the URI Last I restarted the cupsd process so that the configuration changes were loaded. You can either kill and restart cupsd manually on the command line (as root or by using sudo) Or you can reboot the computer. On the PC you'll need set up the following configuration: 1. Open up printers from the Windows 2000 start menu. 2. Double click "Add Printer" and choose "Network Printer" 3. Choose the "Connect to a printer on the Internet or on your intranet" 4. Enter the URL for your Mac printer as follows: http://192.168.xxx.xxx:631/printers/DESKJET_930C 5. Substitute the name of the printer connected to the Mac for "DESKJET_930C" as it appears on the CUPS web admin page (Accessible by entering this URL: http://127.0.0.1:631 in a browser running on the Mac) 6. Once you've entered the correct URL for the Mac printer, you should be prompted for the location of the printer drivers on the Windows system. (I got this even though I had previously installed the drivers.) Browse to the drivers on the printer CD or download them from the manufacturer's website. That should do it. You may also need to set up a valid account for the Windows user on the Macintosh, but you should be able to find help for doing that elsewhere. If you're still having problems, you might want to take a look at the primary sources for a number of the steps detailed above. Try searching these two sites for "cups", "samba" and "printing": http://www.macosxhints.com/search.php http://discussions.info.apple.com As with most unofficial documentation on the internet, this worked for me, YMMV. Hope it helps.

[ Reply to This | # ]
works great
Authored by: nemalex on Oct 03, '02 04:20:14AM

Thank you edentz.

Works with Win2k printing to a Jaguar -- USB Epson Stylus 740. Same steps, changed nothing.



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: JohnnyO on Oct 07, '02 02:58:47PM

So close -- I've got a Canon S800. When I make all the indicated changes, EXCEPT the change from the file: to the usb: string in printers.conf, I can create a printer on the Windows 2000PC, that, based on watching packets on the wire, is sending data to CUPS on the Mac. CUPS shows the job as completed, yet nothing shows up.

Mac printing is still fine

Command line printing from OS X is still fine (ie, lp filename)

As an aside that something is still goofy, I can not send a test print from the CUPS Web page. It reports as submitted, but immediately shows as cancelled.

When I DO make file: to :usb://Canon/S800?serial=4ERCb1 change, all printing stops working, even Macintosh jobs.

Any ideas?

Thanks!

John



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: JohnnyO on Oct 07, '02 06:17:41PM

More Info:

The CUPS error log shows the following when I attempt to print from the Windows PC:

get_job_attr: job #0 doesn't exist!

Any ideas?

Thanks!



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: tedlandis on Nov 03, '02 02:13:41PM

What worked for me was to NOT change the file: definition in the existing Printer definition but rather to add a new printer for Windows printing only from the http://localhost:631/printers screen in the browser.

So I have two printer definitions pointing to the same printer one with
device = file://dev/null
for printing from the Mac

and one with
device = usb://HEWLETT-PACKARD/DESKJET%20930C?serial=xxxxxx
for printing from Windows.

Also for the Windows printer just select "raw" as the "Make" since the Windows drivers already format the output for you.



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: JohnnyO on May 22, '05 05:18:17PM

This hint still works (and is apparently still required) for Mac OS X 10.4 Tiger.

Only change is that mime.convs and mime.types already have the raw application octe-stream enabled.

John



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: dbeltram on Oct 09, '02 06:10:38PM

What a great tip! This worked fabulously for me -- er, well, almost. I am now able to print quite happily from a Win2k box to the Epson Stylus C82 attached to my Mac. But now, I can't print from the Mac anymore! Print Center fires up and then quits with no error messages. The status from the CUPS web page says there's a communication error with the printer. But like I said, the PC is printing to it (via CUPS) just fine, and I can do a nozzle test from the Mac, so I know the communication is good.

Any thoughts on what might be wrong or where to begin troubleshooting? Thanks.



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: JohnnyO on Oct 19, '02 11:55:35AM

Further progess -- it seems restarting cupsd after making the change from
DeviceURI file:///dev/null
to
DeviceURI usb://Canon/S800?serial=4ERCb1
wasn't enough.

Restarting my Mac after the change above DID allow my PC to print properly to my Mac!

Unfortunately, no local Mac jobs would print. They would hang in PrintCenter.

Deleting and re-adding my Printer (Canon S800) in the PrintCenter solved the problem printing from my Mac, but changed printers.conf BACK to DeviceURI file:///dev/null which killed remote printing from my Windows 2000 PC.

Any ideas?

So close!

John



[ Reply to This | # ]
It's working now!
Authored by: JohnnyO on Oct 27, '02 08:22:31PM

I figured it out.

To recap, when I followed edentz's instructions above, PC printing would work, but Mac printing would not. Deleting the print queue in Print Center would fix the Mac printing, but not allow the PC or Linux printing across the network.

I decided to create a SECOND print queue to my USB connected Canon S800 printer. I attempted to do this in Print Center, but it didn't allow it. Instead, I edited my /etc/cups/printers.conf file and copied the existing printer section, and replaced the DeviceURI string. I also changed the Printer name and the Info string, as shown below:

# Printer configuration file for CUPS v1.1.15
# Written by cupsd on Sun Oct 27 23:38:02 2002
<DefaultPrinter S800>
Info S800
Location aladdin
DeviceURI file:///dev/null
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer Can800>
Info CanonS800
Location aladdin
DeviceURI usb://Canon/S800?serial=4ERCb1
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

After making these changes, I restarted my Macintosh.

I've alternated 4 print jobs between the PC and the Mac, and watching (using tail -f) /var/log/cups/error_log, it is clear to see that the PC jobs are hitting the new queue that refers to DeviceURI usb: and the Mac jobs are hitting the queue that still has the DeviceURI file:

John



[ Reply to This | # ]
Printing from Win2k to OS 10.2 Mac USB printer
Authored by: courtsk on Mar 21, '04 04:30:13PM

I don't have Win2K but just Win98 and was convinced that I could make my new Samsung ML1710 work as both a shared and a local printer. I discovered that as soon as I used the advanced setting to make it work on the network it wouldn't work on the local, so I think I have come up with a workaround using a lot of the information you provide above. It appears that to work locally you need to retain one printer with the URI of file:///dev/null (which when you use http://127.0.0.1:631 will show up as file://dev/null, i.e. 2 rather than 3 ///'s). On the other hand if you created a printer using the option click add and chose advanced and chose the printer that it listed, the one that worked locally would be replaced. So...what I did was use choose to add a USB printer instead and pasted in the string that you found with ipinfo -v for the printer that you are trying to connect but give it a new name, e.g. MyPrinterSMB or some such.

Now to get the settings correct on the Win98 end you have to have SMB set up so that you can see the printers that are connected to your Mac. The name that shows up won't be the one that you made up, but go ahead and add a printer and choose whatever name shows up in the Network Neighborhood browser and put in the software that is appropriate for the printer connected to the Mac if it were connected to the PC. Now comes the trick. Open up the printer properties. Go to details tab and click on "add a new port" button and replace the name of the printer that showed up in the NN browser with the one that you made up when you added the printer. Then link your network printer to that port. The name in the printers folder will remain the same. In my case the official name that the Mac software provides is ML-1710, but the name I made up is SAMSUNGSMB so the printer shows up as ml-1710 but the new port sends it to SAMSUNGSMB.

Interestingly enough while the printer works fine, the information doesn't go through the Mac OSX print spooler (i.e. it doesn't show up as a job). Also while http://192.168.x.xxx:631 will show all the printers on the computer listed I can't get test pages or anything else to work from the URL links. The printer in the PC printers folder, however, acts just as though it were connected to the PC. Very slick, once you figure it out. Also you can then just add the USB printer to the Mac in the usual way and usel it (with the standard name that print center provides) for printing locally from your mac.

Good luck.

Court Skinner



[ Reply to This | # ]