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

Printing to Windows shared printers in 10.2 Network
On OS X 10.2 (Jaguar), you can access a printer that has been shared on a Windows computer. Just follow these steps:
  1. Launch Print Center
  2. Hold down the Option key while clicking the Add button (in the Printer List window)
  3. Select Advanced from the first pop-up menu.
  4. Pick "Windows Printer via SAMBA" in the "Device" pop-up menu.
  5. Enter whatever you want in "Device Name"
  6. Enter the URI in "Device URI". The syntax is: smb://Server Name/Share Name
  7. Pick the printer vendor from the Printer Model pop-up menu, and the subsequent model.
You should be good to go! You may, however, also need to download printer drivers from Gimp-Print.

[Editor's note: My apologies if this is a duplicate; I thought we had run something similar recently, but can't find anything in the archives...]
  • Currently 1.33 / 5
  You rated: 3 / 5 (6 votes cast)

Printing to Windows shared printers in 10.2 | 64 comments | Create New Account
Click here to return to the 'Printing to Windows shared printers in 10.2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No such option
Authored by: logo on Oct 17, '02 10:35:49AM


I don't have the option "Windows Printer via SAMBA"...

Any ideas

[ Reply to This | # ]
No such option
Authored by: lolopb on Oct 17, '02 10:38:31AM

This is normal, this hint is incomplete, refer to this one :

You'll see that you need to create a softlink first (maybe created by GimpPrint installer, I don't know).

This works very well here...

[ Reply to This | # ]
No such option
Authored by: rspress on Oct 17, '02 11:31:47AM
I also have no option for:

"Windows Printer via SAMBA"

Does anything need to be installed, either on the Mac or PC, to get this option?

[ Reply to This | # ]
No such option [FIX]
Authored by: cj on Oct 17, '02 01:25:05PM
As lolopb suggested, this hint is incomplete -- you need to enable SMB printing from the command line before this option appears in Print Center:

In a terminal window, enter the following commands:

sudo ln -s /usr/bin/smbspool /usr/libexec/cups/backend/smb

sudo killall -HUP cupsd

then launch Print Center and follow the instructions in this hint to print to a Windows shared printer.

Hope this helps.

[ Reply to This | # ]
No such option [FIX]
Authored by: Deut3221 on Oct 17, '02 02:21:36PM

Thank you cj! I added the shared printer in the Print Center BUT it will not print.

I followed the following steps:
1. Launch Print Center
2. Hold down the Option key while clicking the Add button (in the Printer List window)
3. Select Advanced from the first pop-up menu.
4. Pick "Windows Printer via SAMBA" in the "Device" pop-up menu.
5. Enter whatever you want in "Device Name"
6. Enter the URI in "Device URI". The syntax I entered was: smb:// [xxx.xx.x.x is the IP address that I use to mount the Windows box using smb]
7. Pick the printer vendor from the Printer Model pop-up menu <HP 2200>

Unfortunately when I print, it says "Stoped." If I try to restart the printer, it fails to connect.

The Windows printer is shared (I verified this from another Windows box). I am doing something wrong but I am clueless. If anyone has any suggestions, I would greatly appreciate them. Thanks.

[ Reply to This | # ]
No such option | not fixed
Authored by: hexghost on Oct 18, '02 02:07:59AM

I too have this exact problem. Jaguar on a powerbook 550 printing to a HP Laserjet 2100 on windows 2000. Works fine for other samba clients (ie non os x, like freebsd), and of course works fine for windows.

[ Reply to This | # ]
No such option [FIX]
Authored by: lshort on Oct 31, '02 03:48:50PM

I followed these instructions in an attempt to connect from my IMAC to a Canon BJC4400 on a XP machine.

Instead of "Windows Printer via SAMBA" I get "Unknown Nework Device (smb)" needless to say I cant print. A connection attempt is made but then the Print monitor say 'STOPPED'.

Any ideas?


[ Reply to This | # ]
What about HP Photosmart inkjets?
Authored by: dcnblues on Oct 25, '02 05:20:27PM

I don't have SAMBA either... then again, I'm running Dave for OS X so it's got its own SMB service running.

Another problem... the additional printer drivers update doesn't include HP Photosmart inkjets in its printer list, and the Photosmart driver from HP doesn't recognize network-shared printers, only those connected via USB! [Tear out hair in frustration]

So, here's the workaround. It's ugly, but it works.

Set up a folder in the /Users/Shared directory, called Print Spool. Share it. Share permissions should be set so that everyone, even those on the network, has read/write/full control access. The system admin should also install a generic printer in the Print Center. It'll not be used, but it's a placeholder.

Each user on the Mac should then drag the Print Spool folder from the /Users/Shared folder to the dock, or make an alias and put it on the desktop.

When printing, instead of clicking "Print" in the settings dialog, click "Save as PDF". This uses the Quartz engine to render the document in PDF format. Then drop the resulting PDF file onto the Print Spool folder icon/alias. This puts the document into a shared folder that the Windoze "print station" can see.

Then go to the Windoze station, access the share (perhaps from a desktop shortcut, hmmn?), right-click on the document, and Print it using Adobe Acrobat. Once the doc's done printing and you've proofed your copy, trash it from the Windows machine and it's no longer in the queue.

The ugly part of this is you aren't actually doing everything from one box; you have to go somewhere else to complete your print job. At some point I'll have to see about scripting the print jobs, but that'd be a Windoze discussion and not appropriate here.

[ Reply to This | # ]
Authored by: Morgoth on Jun 16, '03 07:46:56PM

You need to be holding down the "option" key when you click add in Print Center. Once you've done that a secret "Advanced" option will become available in the drop-down menu.

When you select "Advanced" you need to select "Windows Printer via Samba" for the device. From there the rest of the hint can be followed verbatim.

[ Reply to This | # ]
No such option
Authored by: jayenuu on Dec 16, '05 08:11:49PM

This problem vexed me for about three days. But, I finally figured it out! The problem lies not on the mac but on the PC (if your printers are connected directly to your PC).

On your PC:
>open control panel>printers and faxes
>right click the printer that you are having problems with
>open sharing make sure to check the "share this printer" box
> on the printer name make sure that "share name" has NO, I repeat NO spaces in the name (I changed the name from "Canon i560s" to "Canoni560s".

On mac:
>open system preferences
>open printer & fax
>delete printer "-" that is giving you problems (i.e Canon i560s)
>add printer "+"
>open "More Printers"
> from top drop down menu select "windows printing"
>double click the computer that is connected to the printer(s)
>select the printer that you changed the name on in windows and add it.

This should solve your problem.

[ Reply to This | # ]
SAMBA not in Device menu
Authored by: the_webmaestro on Oct 17, '02 10:49:00AM

"Windows Printer via SAMBA" in the "Device" pop-up menu... I guess I'll sift through the archives to see if this has been discussed previously...


[ Reply to This | # ]
SAMBA not in Device menu
Authored by: adrian_friis on Oct 18, '02 09:10:23AM

I double checked, there is no SAMBA option in my device list either!

I have the following:
AppleTalk Printer Access Protocol (pap)
AppSocket/HP JetDirect
Internet Printing Protocol (http)
Internet Printing Protocol (ipp)
LPD/LPR Host or Printer
USB Printer (usb)

Running 10.2 on a Pismo PowerBook. GimpPrint installed. Samba networking to Win98/2000 machines working fine.

What´s going on here?

[ Reply to This | # ]
Compatible printers
Authored by: bitweever on Oct 17, '02 05:33:51PM
It should also be noted that while Jaguar doesn't have a huge list of supported printers, it does have drivers for most of the most compatible ones. Check your printer's manual to see which printers it's compatible with. Or, you can also check the Gimp print compatible printer list (it's at the bottom of that page). For example, I'm printing to my Brother HL-1240 just fine using the HP LaserJet II driver.

[ Reply to This | # ]
Compatible printers
Authored by: mfkilgore on Nov 17, '02 11:52:45AM

First, thanks for all the good advice in this thread. I now have what appears to be connectivity between my mac (powerbook g4, osx 10.2.2) and my windows desktop (windows xp) via SMB interface.

Now when I print from the mac the print job shows up in the print q on my windows box... which is good progress. It then disappears off of the queue and does not print. Printing works fine from other windows boxes so I know the printer setup on the Windows box is correct.

My guess is that I have not matched the printer drivers correctly. My printer is a Brother MFC-5100C. No obvious matches in gimp list and the printer and while the driver is installed on my mac, it does not appear in PrintCenter as a choice.

Any ideas?

[ Reply to This | # ]
Compatible printers
Authored by: nicky98 on Sep 04, '04 02:54:34PM

Where can I get a driver for an HP LaserJet IIP for my Mac? The HP site shows only Windows drivers. I have the drivers for a Brother HL-1440--will they work with a LaserJet IIP?


[ Reply to This | # ]
Life Saver
Authored by: Delivery_Guy on Oct 17, '02 08:08:22PM

Just wanted to say, even though I'm not printing to a Shared Windows Printer, the hint about holding down option while clicking add printer made my week. I am now able to do all sorts off remote printing...LPR, HP DirectJet...etc.

Just wanted to say Thanks.

[ Reply to This | # ]
Postscript not included
Authored by: james_sorenson on Oct 18, '02 11:41:58AM

Well, this WOULD work for me if I had a poscript card in the HP LaserJet 4+ I'm working with. If you see the print job get sent, but the printer just gives you an error, it's probably because it is a PCL-only printer that does not support postscript printing. I don't know if there is a way around this yet.

For others who can't find the Samba option, read the comments. A person or two have answers for you.


[ Reply to This | # ]
try GhostScript
Authored by: mclbruce on Oct 18, '02 03:39:28PM

Your Mac can convert PostScript to PCL.
Try installing GhostScript and GIMP-print from here:

That should work for you.

[ Reply to This | # ]
Postscript not included
Authored by: Dieringer on Oct 19, '02 12:04:29PM

I managed to print to an HP 6L, which doesn't have postscript. You need to install ghostscript. Have you tried that?

I used gimp-print, downloaded a foomatic-created driver and then had to make some changes to cupsomatic (which don't seem to be documented anywhere here). But I think the 4 series already has good ppd files in the cups and gimp-print distributions.


[ Reply to This | # ]
get the 6l to work?
Authored by: whoopy on Apr 06, '03 12:09:25AM

Presently i'm trying to get the hp laserjet 6l to work over the network
while its connect to a win2k machine from a mac.

I tried all sorts of URI formats, different drivers, etc. I keep getting the
"retry in 60 seconds" error.

Any ideas?

[ Reply to This | # ]
Solution to "samba error"
Authored by: on Aug 11, '03 06:14:05PM

It's all there. I looked around for almost an hour for this.


[ Reply to This | # ]
Solution to error
Authored by: hexghost on Oct 18, '02 05:18:15PM

Ok, i finally got this to work to my windows 2000 shared hp laserjet 2100. Before, after following this tip, I would get "unable to connect to samba device" or something like that. The solution is in the device URI. I use this URI: smb://username:password@workgroup/machine/printer. This deviates a little from what I was used to, which was smb://workgroup;username@machinename/share but it works. Now the problem is that even though os x seems to have a driver for the HP Laserjet 2100 series, the printer spits out reems of paper because it doesn't understand PCL. I guess I do have to install gimp-print after all.
Hope this helps everyone!

[ Reply to This | # ]
Solution to error
Authored by: jmelashenko on Oct 27, '02 02:10:06PM

After following the above directions, I was able to send a print job to a Brother HL 1240 (using PCL 2) as I could not find LaserJet series II anywhere under the available HP printers. The print job loads but nothing prints. Any ideas of where the lazerjet II option is, or why the print job is being sent but nothing is printing? Thanks for any help!


[ Reply to This | # ]
Solution to error
Authored by: john@biology on Dec 16, '02 02:15:53PM

Thanks for the hints. I can finally print to my shared HP LaserJet 4000 on a Win2000 box. Our Win2000 workgroup name is 2 words with a space between: this must be entered as: name1%20name2 (maybe everyone on this site already knows this). My 1st test print page was this site displayed in iCab: all formatting etc was OK, and print job was very fast.... done before I finished walking down the hall.

[ Reply to This | # ]
Solution to error
Authored by: Gad on Feb 02, '03 05:15:56AM

Thank You, Thank You, Thank You.
I was about to give up and buy a new printer but
decided to do one last search and found your solution.
The new address worked immediately...

[ Reply to This | # ]
Solution to error
Authored by: royM on Feb 12, '03 07:37:56AM

I have the same problem. I've tried all the tips here, but still no go. I want to print to a Win98 machine with a HP2100 attached via parallel or EPSON C82 via its USB port. I have tried every combination for the SMB address but still nothing. Any clues?

[ Reply to This | # ]
Solution to Win98 problem
Authored by: bo on Apr 11, '03 05:45:15PM

Yes, I've got the same thing: unable to connect SAMBA host....
But I finally got it by inputing URI like this:
smb://IP(IP address for the PC)/machine name/share name(printer
name on the net)

Hope this can be useful to you.
And also, I found out that firewall software can be a trouble if you've got
one on your PC.

[ Reply to This | # ]
Solution to error
Authored by: mvmaastricht on Dec 09, '04 04:48:08AM

Thank you SO MUCH for this beautiful tip! It made my endless attempts to print on my Windows-shared printer finally succeed!! (And it prevents me to heve to use Windows ;-) )

[ Reply to This | # ]
Host name is always LOCAL???
Authored by: chad_c on Oct 31, '02 11:29:11AM

I've tried all the previous advice and still no luck.

I have installed Gimp_Print and Ghostscript and I'm still getting no where. I'm trying to printer to an HP LaserJet 5si/mx attached to a WinXP machine. No matter what I type into the add printer dialog box, the host name for the printer is always Local. I am using Windows Printer via SAMBA.

I've tried

Each time I try to print Print Center reports that it can't connect to the printer and will retry in 60 secs. I'm guessing it can't find it because it's looking on my computer (Local) for the printer.

Any ideas


[ Reply to This | # ]
printer stopped
Authored by: siddhartha on Nov 01, '02 10:29:35PM

i am sorry to report that i am also in the camp of not getting this to work. has anybody solved this? thanks.

[ Reply to This | # ]
Host name is always LOCAL???
Authored by: marzer on Nov 17, '02 03:32:04PM


Thanks for the info. I was also getting the "cannot connect to samba server" error until I tried your suggestion--smb://workgroup;username@machinename/share. It works fine now.

I was trying smb://machinename/share, no luck. Even though that reference works fine for file sharing.

The only thing I can suggest is make sure your share name isn't more than an 8 letter single word name. I don't know if that makes a difference with MAC OS (haven't experimented) but this can affect compatibility with other older print sharing protocols. I use "HP" for my shared deskjet.


[ Reply to This | # ]
Host name is always LOCAL???
Authored by: johram on Dec 13, '02 01:45:09PM

Thank you SOOOOOO much!

my Mac experiance was not "plug and play"
it was "plug and get mad!"

but your post helped out a lot.
my winxppro printer can now be accessed by my iBook with your hint.
what I did
1) I installed the gimp print package
2) I held down "alt-option" while selecting "add" in the printer center
3) I did the "samba share" thing and selected my lexmark z43
4) I typed in my full winxppro username including spaces and all
it works!

[ Reply to This | # ]
hope this helps
Authored by: particleman5000 on Feb 19, '03 11:23:50AM

I'm working with windows domains so this may be a little different with workgroup

this worked for me hope it works for you

smb://(username from windows computer with shared printer):(password from same computer)@(workgroup or domain (i.e. computer name)/(shared printer)

My Info

windows full computer name:
shared printer on above computer: HPLaserJ
username on above computer: administrator
password on above computer: admin

so my device uri looks like this

Hope it helps

[ Reply to This | # ]
Host name is always LOCAL???
Authored by: nirtaki on Apr 13, '03 06:03:51AM

that's unfortunately exactly the problem i have :-(. i'm obviously not able to tell the printcenter to address a networkprinter instead of local one - no matter what i do.

i tried the following urls, hoping that one of them would finally work (which they didn't):

my main question is: do i need to have an account on the computer that's sharing the printer? i don't have an account on it and noone else in "my" network has and is still able to print to this printer - but they admittedly use either windows or linux. or do i have to enter my username and my password for the local network?

another question: do i need to install gimp-print? i so far didn't bother, 'cause i get the option "windows printer via samba" and an implemented cups should do the job as well on a mac-box as on a linux-box.

any ideas, comments and even grey theory on how cups and samba work on osx are very, very, very welcome, 'cause i simply don't understand what's happening here and why the printcenter refuses to recognise the correct path to the printer.

thanks very much in advance!

[ Reply to This | # ]
Host name is always LOCAL???
Authored by: miafya on May 23, '03 04:04:25PM

I was getting the same problem -- the "Could not connect to SAMBA host" error message. No matter what combination of URI that I used, nothing worked.

The solution for me was to change my printer share name in XP so that it was less than 8 characters, with no spaces. I'm using smb://username@host/printername

[ Reply to This | # ]
Host name is always LOCAL???
Authored by: srinverno on Jul 08, '07 01:27:09PM

Well i found out that the problem was in the windows shared printer.
In windows i went to printer properties, then in the advanced options tab clicked on Printer Processor. I changed printer processor from RAW to RAW [FF auto]. And everything worked ok. Even without using samba printing.

[ Reply to This | # ]
Nothing Happens?
Authored by: todd3039 on Dec 17, '02 10:33:44AM

I too have tried all of the previous without luck.

Here is my setup:

Powerbook G4 SD w/ 10.2.2
Installed Gimp_Print
Activated SAMBA option

Windows XP machine
Sharing is on
Printer sharing is on as well
Epson Photo 750 USB printer

I've tried every possible combination URI address. If I use "smb://workgroup;username@machinename/share" the Print Center actually spools and it looks like it should begin printing but nothing happens on the Windows machine. I'm obviously overlooking something. Please help!

[ Reply to This | # ]
This worked for me:
Authored by: james_sorenson on Dec 17, '02 01:01:31PM

Okay, this is what I use, and it enables me to print to a non-postscript, laserjet connected by parellel-port to a Windows 2000pro machine protected by password (phew!).


The sharename is the printer's "Shared as" name listed in the printer's properties. I have the latest Gimp-Print installed with the Ghostscript interpreter as well. I didn't have to do any work in the terminal.

I hope this helps some of you guys!


[ Reply to This | # ]
Nothing Happens?
Authored by: todd3039 on Dec 17, '02 03:26:06PM

I got it! I just needed to upgrade my gimp-print to 4.2.4! Thanks everyone!

[ Reply to This | # ]
Nothing Happens?
Authored by: compete12 on Dec 17, '02 04:23:53PM

I've been wanting to do this (windows printing via an iMac) for quite some time. Today, I was able to connect my iMac to my WinXP shared HP LaserJet 1100 (I used the pcl-6 driver), and I'm able to print stuff out of Netscape just fine, but it botches up when I try to use APPLEWORKS 6. Any ideas?
I have the latest Gimp-Print, and Ghostscript installed.

BTW, I used the:
nomenclature that I read off of james_sorenson's post, and it worked just fine.

Macs rule.


[ Reply to This | # ]
Win XP Home Printing Issues
Authored by: pianomanmarty on Jan 06, '03 01:28:54PM

I have a PowerBook G4 with Airport, and I have an airport base station. It took a lot of work, but now I have that up and running fine, sharing my internet wirelessly and over my ethernet with my Win XP Home Box...

However, in the process, I lost the ability to print to my HP Printer attacheed to my XP Home Box. I have SAMBA, and My wireless network is martysland, and my regular network workgroup is martyland...can that cause complications?

How should I go about setting this up?


[ Reply to This | # ]
Win XP Home Printing Issues
Authored by: jerryg on Jan 06, '03 01:51:45PM


This happened to me too, when I removed my router from the network. I am sharing a Mac printer.

The issue was that the network had new IP addresses. To fix it, I just added the printer again.

Hope this helps, Jerry

[ Reply to This | # ]
Win XP Home Printing Issues
Authored by: pianomanmarty on Jan 06, '03 09:19:03PM

I've tried adding the printer again many times, using many different formats for the address, but to no avail. It still won't work....

[ Reply to This | # ]
Authored by: akirwan on Jan 10, '03 02:29:16PM

I found that using this URL was the only way to access the printer on the Windows XP Box:

smb://<your short name on the mac>:<your password on the mac>@<your pc workgroup name>/<name of the XP machine>/<shared name of the printer on the XP machine>.

So my smb URI looks like this:

[ Reply to This | # ]
This worked for me!
Authored by: osex314 on Feb 23, '03 06:57:43PM

This worked for me!

thanks akirwan...i registered just to thank you!!!


[ Reply to This | # ]
Alternate URI entry--IP address instead of Computer Name
Authored by: pollybee on Nov 05, '04 03:14:07PM

Your tip almost worked. Your said to enter in Device URI--smb://<your short name on the mac>:<your password on the mac>@<your pc workgroup name>/<name of the XP machine>/<shared name of the printer on the XP machine>. So your smb URI looks like this: smb://akirwan:<hml>@WORKGROUP/mike/hpdeskjet

Alternate Solution:
We have an Epson Stylus Photo 1280 in our office network connected via USB to Windows XP PC that has not joined the domain, but as WORKGROUP. Only the computers in this subnet can access this printer. To print from MAC 10.3, we followed your hint, except that it did not work as the "computer name" would not get resolved and causing error connecting.... so, we used the Windows XP's static IP address assigned to it in place. Now our Mac OSX users in our Windows domain can print to a Windows XP Workgroup PC. (Without Appletalk protocol installed in XP). Therefore the alternate URI entry is: smb//polly:<password>@WORKGROUP/

[ Reply to This | # ]
Authored by: terpsichore on Jan 13, '03 03:14:55PM

Thanks for all the tips. What I needed to do to print to a share running Windows 98 was to use the Windows servername and not the DNS name that shows up when I connect to that computer using Connect to Server...

I used smb://<Windows username>:<passwd>@<workgroup>/<Windows servername>/<share>

I also got the HP LaserJet 1100 drivers from

[ Reply to This | # ]
pather breaks hp jaserjet gimp-print driver
Authored by: xgeek1973 on Oct 31, '03 02:31:35PM

I had successsfully used a the opensource footmatics drivers issued by HP in janguar to print to an hplasjet 1100 being shared by a windows box on my LAN. Upon upgrading to 10.3 the driver began printing garbage. I was able to solve the issue by specifying the HP laserjet 4 series which came with the gimp-print drivers bundeled with OS 10.3. The exact name of the problematic driver is the laserjet 1100 hpijs print driver which can be found at

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: haz on Mar 03, '03 02:40:29PM

This is how I got my powerbook(12") to print on a printer (xerox p12) connected to windows 2000 pro.

1) Install gimp-print and ghostscript. go here to get it

2 ) Open up print center, hold the option key and press add printer. Select Advanced from the drop down menu and then from the device drop down menu select WINDOWS printer via SAMBA. if you do not see this option, which i did not do the following :

Quit print center

In a terminal window, enter the following commands:

sudo ln -s /usr/bin/smbspool /usr/libexec/cups/backend/smb
sudo killall -HUP cupsd

2) Once you do see the "WINDOWS printer via SAMBA" option, select it, enter the following address in the printer Device URI:


winuser - This is the usesrname under windows
password - This is the password for the winuser above.
workgroup - This is the windows workgroup the printer is under. (If you have not changed it then it defaults to "workgroup"
server - This is the name of the computer or ip address
printer - This is the printer name

3) Go to the gimp compatability page
and find your printer, or a equivalant gimp driver to work with it for my xerox p12 i had to select a HP laserjet || series (i got this from the compatability page).

4) Select the correct printer driver from the printer model drop down menu, and click add!

Thats it, not that hard once you know how but it took me a while mainly because i was using the incorrect smb address and i did not have gimp-print installed.


[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: wilsonm on Mar 07, '03 11:29:04PM

There's a new thread on this topic at
article.php?story=20030303232147359 . I've posted a cross-reference
there to this thread and recommended the Haz posting here (3/3/03).

[ Reply to This | # ]
URI mangling
Authored by: karenwallace on Mar 28, '03 10:58:47AM

When I enter the printer's URI as


the system very unkindly changes it to


and then tries to connect to a printer called servername on a server called usernamepassword. This happens whether I enter it via the Print Center or via the CUPS web config. I've also tried smb://workgroup;username/servername/share and smb://workgroup;username:password/servername/share to no avail. Anyone else have this problem?

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: darens on May 03, '03 09:02:21PM

I had some problems but here is what I did,

%>smbclient -L <windows computername>

returned the following error:
tdb((NULL)): tdb_open_ex: could not open file /private/var/
spool/lock/unexpected.tdb: No such file or directory

So I did:

%>sudo touch /private/var/spool/lock/unexpected.tdb

Now I had another problem with the windows machine.
On the windows machine I had 2 interfaces, eth-10/100 &
The Netbios was trying to route back thru the hard interface.
On the windows machine I could see this by doing this:


Windows IP Configuration

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :
The problem is that the eth interface is not connected.
This is what I got on the Mac side:

%>smbclient -L mycomputer
added interface ip= bcast=
Connection to mycomputer failed

I disabled the hard ethernet interface and only enabled the
wireless interface.
This seemed to fix it on the windows side.

Windows IP Configuration

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

Now on the Mac side, rerun the smbClient side:

%>smbclient -L mycomputer

added interface ip= bcast=
Got a positive name query response from ( )
Domain=[HOME] OS=[Windows 5.1] Server=[Windows 2000
LAN Manager]

Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
SharedDocs Disk
P1000 Printer hp photosmart P1000 series

Server Comment
--------- -------

Workgroup Master
--------- -------

Now I went and added the printer drivers from the gimp-drivers
and installed the printer with uri of:


This fixed the problems for me, I hope this can help anybody
with similiar problems.


[ Reply to This | # ]
Solution to "unable to contact Samba Host, retrying in 60 seconds"
Authored by: krystal on Aug 13, '03 07:57:31AM


I am a Mac dealer in India and many of my clients work in a PC and Mac environment and the first question is about sharing printers on windows machines to Macs.

I have tried Gimp with Ghostscript and it works fine for most printers and machines (on Win 98SE and Win2000 Pro platform.... I did not yet try on other Win platforms)

I did this with about 5 Win machines and faced a problem on one machine which kept giving me an error "unable to connect to Samba host, will try in 60 seconds"

I have been breaking my head on this for a fortnight when by coincidence I stumbled on Apple's knowledge base item which said that this problem occurs because BSD Optional Installs have not been installed on the Mac OS 10.2

In your Jaguar install CD, when you start installing the OS you come to a stage where a dialog asks you to select the Hard Drive, below is an option called option or customise. Click on it and you can uncheck BSD Optional Install...default is checked. If BSD optional install is unchecked and the OS is installed you will not be able to use Gimp Print and you will keep getting this error.

BSD Optional install can be done (If you OS CD is 10.2.3 and you have now updated to 10.2.6, update it again to 10.2.6 after installing BSD Optional Install) by just double clicking Optional BSD Install (there is only one) located in your Cd usually in a folder called Optional Installs.

After that I am sure Gimp Print works like a breeze

Another issue is the syntax. On Win98SE i used

in Win2000Pro I used smb://username:password@workgroup/alphabeticalnameofpc/sharednameoftheprinter

The syntax is also casesensitive. Play safe by keeping everything upper case/lower case if you are not sure.

I hope you will find this useful

I decided to share my experience here because the info here helped me a lot



[ Reply to This | # ]
If you need other drivers
Authored by: mwyner on Aug 24, '03 11:48:10PM

I wanted to add that I didn't have the drivers for my HP Officejet R40, and neither did Gimp-print, but however you can use Linux drivers if you still need a driver.

This website has other drivers in a nice Mac OS X package, and I'm printing to the SMB mounted printer:

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: atyra on Sep 26, '03 03:48:56PM

I am having a totally different problem, can anyone help?

My setup is a desktop PC running windows XP connected to a Canon i470D bubble jet printer via USB. I'm trying to print to it using my powerbook running Jaguar. I can get the mac to connect to the printer just fine, and even print to it. But there's a driver issue. Gimp-print doesn't include the driver for my printer, and while some of the included gimp-print drivers work, the type comes out distored in some way, either way too small or stretched across the page, etc. Canon, however, provides a driver for my printer, so I downloaded and installed that, but the only instructions they give are how to connect to the printer and install the driver via USB. When trying to connect via Samba, the installed print driver doesn't appear as an option under the drop down list (under Canon or otherwise), and I could chose "other," but I have no idea where the printer's PPD file is, whether or not it even has one, or what it's called if it does. I'm sure there's some solution to this. Does anyone know what it is? Please email me at if you can help. Thanks!

Andy Tyra

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: jim5150a on Mar 02, '04 12:32:04AM

I am having the same problem... Drivers are loaded on ibook running Panther but when I try to network through WinXP Printer model is not listed.
Work fine when plugged into iBook but through XP is a no go.

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: hc8170 on Oct 14, '03 03:07:51PM

I am printing to a Windows 98 shared HP 3150 from PowerBook G4 running Mac OS X 10.2.8. I think the following clarification will help:

- Device URI: smb://<username>:<passwd>@<workgroup>/<computer name>/<share>

Get <workgroup> and <computer> name from:

Control Panel >> Network >> Identification (tab)

Get <share> from:

My Computer >> Printers >> (right mouse button)

Also, your PC will complain. Goto c:/windows/jetsuite.ini and and in the "[PCLEmulation]" section, set "DisplayWarning=no".

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: jchau on Nov 09, '03 12:01:41PM

Which drive of hp 3150 and how to setting on mac 10.3?
Please help me!

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: puppetboy on Feb 22, '04 12:41:25AM

Using with Jaguar produced less than perfect results. The printer administrator failed to ......
1) show a complete URI with password and user name included.
2) Show the complete list of GIMP-Print printer types.

Under Jaguar I tried a large number of variations of URI syntax and none of them work. I have installed and reinstalled GIMP-Print and GhostScript.

Panther did not support printing to a Windows connected printer until I reinstalled the printer on the Windows machine ( WIN2000 ). I reinstalled the printer in spite of the fact that other Windows machines used the printer just fine befor and after the reinstallation.

I also want to mention that 2 weeks earlier Jaguar was able to print to the Windows connected printer and it suddenly stopped working. The earlier success was relatively easy to achieve and since the mysterious failure I have been unable to fix the problem. Jaguar Samba based file sharing has worked fine throughout. Windows machines have continued to use the Windows connected printer without problems.

( My printer is an EPSON CX3200 connected to a WIN2000 machine. )

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: franky_phox on Sep 04, '04 09:43:34AM
I am printing over the network from Mac OS X to my windows print server using FAPA. I have created this workaround because I could not set up the driver for my Canon printer to print over the network. FAPA simply watches the directory c:\autoprint and prints everything you put here. As the Mac OS X printer driver can create PDF files, you simply create a PDF and save it to the windows-share folder. FAPA will then grab the file and print it. You can download FAPA here:

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: Ministry on Mar 05, '05 03:35:29PM


I've tried also a lot of device uri's but this one worked for me:

But I this figure out that the uri is CASE SENSITIVE!!!
So all entries in this uri should be the same as on your win pc.
The server name is all capitals also your network name.

[ Reply to This | # ]
Printing to Windows shared printers in 10.2+
Authored by: tobyblake on Aug 24, '05 08:40:23AM

Hi all,

I've been printing to samba printers from my Mac in this way for a while, but there's one issue that I'm really not happy about - that you have to put the password for the samba server, in plain text, in the device URI - has anyone found a way around this?

I know that CUPS subsequently hides the password, but it's in /etc/cups/printers.conf, which means that anyone with admin privileges on your mac will be able to see your password for your samba server, which is very very unpleasant.

Toby Blake
School of Informatics
University of Edinburgh

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: ego2gogo on Apr 13, '06 12:19:10AM

After hours on various board, the uri form that worked for me (XP SP3 ad OX x 10.4.4) is as follows:


I also had to put the MAC in the same domain as the PC; cross domain access simply did not work.

[ Reply to This | # ]
Printing to Windows shared printers in 10.2
Authored by: hints_hinterton on Oct 30, '07 04:44:20PM

Wow, I actually had to do this 2/3 years after these posts! From Tiger to Windows XP Home no less... for some reason the only thing that worked was to Print via Samba. And the only combination that worked was the combination of the IP address and akirwan's (sp) suggestion...thank you!!

smb://<macuser>:<macpass>@WORKGROUP/[case sensitive to match]

[ Reply to This | # ]