Pages

Wednesday, March 5, 2008

Printing from Windows to Linux (sharing a linux printer)

When I first setup my server in my room (Yes, I finally got there from this post on 30th June last year), printing was high on the list of todos.
After getting the printers to work locally (worked a lot smoother on fedora 8 compared to fedora 6), I got working on how to print from another linux box. After trying to manually edit some of the printers, I got frustrated and deleted them all to start with a fresh slate. Closed the printer dialogue and re-opened it to find that cups had automatically detected them for me. Fantastic.

The next step was to print from windows. I thought this was going to be easy since I had already enabled smb shares. But I couldn’t find settings that would work in the config file /etc/samba/smb.conf. So off to google I go.
http://www.petersblog.org/node/726 has simple working configuration.
I’ll copy the configuration setting just in case the original ever disappears.

# add to [General] section:
printcap name = cups
printing = cups
security = share

# make sure [printers] section looks like this
[printers]
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp


And bam, Windows picked up the shares, I installed them and am happily printing test pages :D

No comments:

Post a Comment