Print to Mac-connected DeskJet 970 from Windows

Nov 01, '02 09:26:04AM

Contributed by: Hoosier_1701

I have finally succeeded in getting my Windows 2000 PC to print to my HP Deskjet 970 which is attached to my iMac. I know this works for USB inkjets. Your mileage may vary with other types of printers. Essentially, you don't use Samba at all, just CUPS.

Read the rest of the article for the how-to...

Instructions

  1. Turn on Printer Sharing in the System Preferences Sharing panel.

  2. Open Terminal and change to the /etc/cups/ directory.
     % cd /etc/cups
  3. Make backups of the mime.convs and mime.types files:
     % sudo cp mime.convs mime.convs.bak
    % sudo cp mime.types mime.types.bak
    You will have to supply your password for sudo to work.

  4. Use a text editor to uncomment the following line towards the end of the mime.convs file (by removing the # sign):
     #application/octet-stream application/vnd.cups-raw 0 -
    I usually use pico as the editor, as it is fairly self explanitory (sudo pico mime.convs).

  5. Also uncomment the following line towards the end of the mime.types file:
     #application/octet-stream
  6. Restart CUPS so it takes your changes:
     % sudo killall -1 cupsd
  7. Open Internet Explorer and go to http://127.0.0.1:631/printers. This is the CUPS printer administration tool. You should see your printer there. Do not edit that printer. Instead, create a second printer for Windows to use. Editing the existing printer will render it unusable to the Mac.

  8. Click "Add Printer". Give it a name that differs from your current printer setup; give it a location that makes sense (may be optional); give it a description (I used "970cse for Windows").

  9. Click "Continue" and choose your printer from the Device list.

  10. Click "Continue" and choose the make of your printer from the list. "HP" was in my list.

  11. Click "Continue" and choose the model/driver for your printer. I had a few options, one of which was "HP New DeskJet Series CUPS v1.1 (en)".

  12. Click "Continue". It will say your printer has been added. Click "Printers" at the top of the page to see all your printers. The new one should be there. Notice that the Device URI is different for the new printer you created. It should have the make and model of your printer along with a serial number. Mine looked like this:
     usb://HEWLETT-PACKARD/DESKJET%20970C?serial=xxxxxxxxxxxx
    (actual serial number blocked)
You are done setting up the printer on the Mac. Now you need to install it on your PC. These instructions are for Windows 2000. There could be slight variations with differet releases of Windows.
  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_970C
    Substitute whatever printer name you created in CUPS for "DESKJET_970C". Also be sure to substitute the correct IP address of your Mac for "192.168.xxx.xxx".

  5. 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 be it. At this point you should be able to print from your Windows PC and from your Mac.

Comments (107)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20021101062604548