On Tue, 6 Mar 2001, Vogel, Andrew (VOGELAP) wrote:

- I've got three machines at home -- one of which is a Linux box. All three
- are networked together and it's working well.
-
- What I would like to do is to hook our printer up to the Linux box (which is
- always on anyway) to have it act as a print server.
-
- What configuration do I need to do within Linux to make it work as a printer
- server? What configuration needs to be done on the other two (windoze)
- machines?

First set up the printer :-)

Then add a share to /etc/smb.conf something like (assumes CUPS)

[HL-1240]
    path = /var/spool/samba
    browseable = yes
    guest ok = yes
    writable = no
    printable = yes
    create mode = 0700
    print command = lpr-cups -r -P lp -o raw %s
    lprm command = cancel %p-%j

restart samba and the printer should now appear in network neighborhood on
the Win boxen.  Use the printer install thingie...

If your machine is a gateway and you do not block ports 137, 138, and 139
from leaving your local network, add to smb.conf under [global]

    interfaces <local ethernet interface> 127.0.0.1
    bind interfaces only = true

Sometimes on complicated networks this a little tricky to get right so it
might be easier to just block outgoing smb/nmb traffic at the firewall.

-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==============================================================
Government is like burning witches:  After years of burning young women
failed to solve any of society's problems, the solution was to burn more
young women.
==============================================================


Reply via email to