Comment 37 for bug 127152

Revision history for this message
In , Patrice (patrice-redhat-bugs) wrote :

Same problem in Ubuntu look at #127152
(https://bugs.launchpad.net/fedora/+source/system-config-printer/+bug/127152)
for instructions how we solve it for gnome-cups-manager.

kagou@satori:~$ python /usr/share/system-config-printer/pysmb.py
{'IP': '192.168.1.100', 'DOMAIN': 'ENTREPRISE'}

kagou@satori:~$ findsmb
                                *=DMB
                                +=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.102 PATRICE [ ENTREPRISE ]
192.168.1.103 RENE [ ENTREPRISE ]
192.168.1.104 SECRETAIRE [ ENTREPRISE ]
192.168.1.105 JEANCLAUDE [ ENTREPRISE ]
kagou@satori:~$

and doing :
(for i in `export LC_ALL=C; findsmb 2> /dev/null | egrep
'^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -s " " | cut -f2 -d ' ' | uniq | sort`;
do echo $i; echo ---------------; export LC_ALL=C; smbclient -N -L $i 2>
/dev/null | grep Printer; echo; done
)

output :
JEANCLAUDE
---------------

PATRICE
---------------
        HP 1120C A3 Printer

RENE
---------------

SECRETAIRE
---------------
        EPSON5700 Printer

kagou@satori:~$