After starting my new job, I battled a bit with getting a printer/scanner working on the local network.
The fileserver was a mess as well… a real mess.
My boss gave me permission to install linux on it (since I haven’t really used windows for a long time now) and fix the filesharing and printing on it.
I jumped into the task, knowing in the back of my head, that printing always is a bloody mess to fix, when you have WINDOWS clients on the network.
Anyways, without looking back, I grabbed the new Ubuntu 10.04 server and installed the system. Didn’t take long, not even for the old machine we have.
After the system was installed, I setup a shared folder and some user shares. I even added our printer (Some old HP CM1015 printer, with a scanner).
No worries!… well.. on my Mac at least.
The windows clients kept having problems connecting to the printer, but the file shares worked perfectly.
After 2 months of hearing complaints on and off, I finally did some more work with the server and found that this samba -> cups configuration works:
load printers = yes printing = cups printcap name = cups [printers] browsable = yes printable = yes public = yes create mode = 0700 guest ok = yes use client driver = yes guest account = smbprint path = /var/spool/samba
As you can see I added a guest account as well.
/usr/sbin/adduser --system --disabled-password smbprint
The printer can now be discovered on the network simply by choosing Networks->SERVER_NAME, the shared folders and printers are now displayed.
Just right click on the printer and choose connect.
A special thanks to this guide: http://tldp.org/HOWTO/Debian-and-Windows-Shared-Printing/sharing_with_windows.html