Windows file sharing werkt met het SMB protocol. De opensource applicatie die dit protocol implementeert op unix omgevingen heet SAMBA en dat draait standaard onder OSX. Via Samba is het dus mogelijk een printer die is aangesloten op een mac te delen met andere apparaten die het SMB protocol kunnen babbelen (lees: windows en/of samba-systemen).
Wat je dus moet doen is zorgen dat op de MAC waar de printer aanhangt ook de printer moet worden gedeeld. Afhankelijk van de OSX versie die er op draait gaat dit eenvoudig of iets ingewikkelder (in 10.2 moet je nog 2 files editten):
The Samba server included with MacOSX is a powerful and easy-to-configure package that shares files, printers, and other resources via the SMB protocol.
If you are running MacOS-10.2 (these two steps are not necessary on later versions of MacOS):
code:
1
2
3
4
5
6
| Edit /etc/smb.conf so the [printers] section looks like:
[printers]
comment = All Printers
printable = yes
path = /tmp
guest ok = yes |
Edit /System/Library/StartupItems/Samba/StartupParameters.plist to insert
code:
1
| Uses = ("Printing","Super Server"); |
between the line beginning Requires and the line beginning OrderPreference.
Read the smb.conf man page or the Samba documentation to decide if you want to add to the [global] section of /etc/smb.conf:
code:
1
2
3
| workgroup = workgroup-name
hosts allow = your-network-ip
security = share |
Enable Samba printer sharing in System Preferences by clicking Sharing → Windows File Sharing. If you upgrade your MacOS version, check to see that Windows File Sharing is still enabled. Caution: if your network is not behind a firewall blocking ports 137 and 139, and you haven't limited access in /etc/smb.conf, enabling Samba could share your printers and files with the world.
One user has reported that with some versions of MS-Windows he needed a user account on the Mac for each user on the PCs in the network, with the exact name (including capitalization) and password as used on the PCs.
On the ms-windows PCs on your network:
Go to Network Neighborhood and click on the name of the Mac. You should see an entry for printers and separate entries for each printer you are sharing from the Mac.
Click on the printer you want to configure.
In the pop-up, supply the driver to use: if the Mac printer is b/w, use Apple Laserwriter; for a color printer use Apple Color Laserwriter. You may have to insert your system disk or give the path to the printer drivers for ms-windows to find the driver.
Click OK or Add or whatever your version of ms-windows uses to add a new printer.
I know: you probably don't have an Apple Laserwriter. You still want to use the Apple Laserwriter drivers. The goal is to send proper Postscript to the Mac, which CUPS and the gimp-print drivers on the Mac will translate to the codes your printer understands. Microsoft drivers are notorious for non-portable Postscript, but the Apple Laserwriter drivers work.
You should now be able to print from the PC to the printer on the Mac.
bron:
osx printer sharing
Ik denk dat het hier wel gewoon mee moet gaan lukken. Een ander alternatief is natuurlijk, als je een AirportEpress hebt, je USB printer in de Airport Express te prikken en op die manier de printer te delen (dan maak je dus in feite van je printer een netwerk printer). Ik weet alleen niet 100% zeker of dat werkt voor non-mac systemen en of het werkt voor zowel wired als wireless systemen. Probeer in ieder geval eerst het probleem op te lossen mbv samba...
NB. Als je een aiport express wil gaan kopen, wacht dan even tot na 12 oktober aangezien er geruchten zijn over een update die naast audio nu ook video kan gaan streamen...
[
Voor 80% gewijzigd door
Verwijderd op 06-10-2005 10:25
]