Re: [Hampshire] "seeing" a USB printer on a network.

Top Page

Reply to this message
Author: John Cooper
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] "seeing" a USB printer on a network.
Mike Burrows wrote:
> Hello Folks.
>
> I have a doze box hosting a shared brother usb printer on a network.
> The same box accesses directories on my Sarge Box via samba (of course
> :-) . I have installed the printer using the web interface for CUPS
> (having installed the brother driver which has already been written!)
> But can't print a test page.
>
> Can Linux clients "see" a usb printer on a doze host via samba?
>
> TIA
> Mike
>

Yes it can as long as it is being "shared" by windoze. On Linux use
smbclient -L <windozeip> and just press enter when prompted for a
passwd. This will give you the shares that are public.

Samba /etc/samba/smb.conf usually has the entry by default :-

 [printers]
        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        browseable = Yes


If still having trouble, you could try another windoze box to make sure
it can see the printer.

http://tldp.org/HOWTO/SMB-HOWTO-8.html

The linux firewall may need extra entries for samba as I had trouble
using firestarter iptables GUI. It put entries for INPUT, but I had to
duplicate them for INBOUND before I could talk to the evil one from
Redmond's beast.

-A INPUT -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 137:139 -j
ACCEPT
-A INPUT -s 192.168.1.0/255.255.255.0 -p udp -m udp --dport 137:139 -j
ACCEPT
-A INPUT -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 445 -j ACCEPT
-A INPUT -s 192.168.1.0/255.255.255.0 -p udp -m udp --dport 445 -j ACCEPT
-A INBOUND -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 137:139 -j
ACCEPT
-A INBOUND -s 192.168.1.0/255.255.255.0 -p udp -m udp --dport 137:139 -j
ACCEPT
-A INBOUND -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 445 -j ACCEPT
-A INBOUND -s 192.168.1.0/255.255.255.0 -p udp -m udp --dport 445 -j ACCEPT

--
--------------------------------------------------------------
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk
--------------------------------------------------------------