Mlaverdiere,

Yes, you do need to have the "samba" package installed because it
contains nmbd, the netbios P2P name lookup daemon. Otherwise, your
system tries only DNS for the name lookups, which fail for the
aforementioned reason.

I've become more experienced with Linux, and my recommended complete workaround 
to this issue is as follows:
1. Install the "samba" package.
2. Edit the line for "hosts" in /etc/nsswitch.conf  so that "wins" is inserted 
right after "files".
e.g., if your nsswitch.conf has this "hosts" line:
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
change it to:
hosts:          files wins mdns4_minimal [NOTFOUND=return] dns mdns4
Do this even if "wins" was not on the original line, still add it after 
"files". As a standard precaution, you should backup your original 
/etc/nsswitch.conf also.

What this does basically, is it makes linux to both lookup hostnames via 
netbios (wins) in general, and prioritize those name lookups over DNS name 
lookups. This mimics the default behavior of Windows.
(Step 2 may not be necessary for many users like Mlaverdiere because the samba 
suite uses its own name resolve order by default (the "name resolve order" line 
in smb.conf.), rather than the global /etc/nsswitch.conf file for all Linux 
programs.)

Also, some newer home wireless routers both:
A. Tell DHCP clients (your computers) to use it as the DNS server. E.g., it 
will tell them to use 192.168.1.1.
B. Automatically create DNS records for those DHCP clients.
This feature resolves the issue completely, and making my workaround 
unnecessary.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/356022

Title:
  unable to mount or browse samba networks

Status in “gvfs” package in Ubuntu:
  New

Bug description:
  Binary package hint: nautilus

  
  this is happening on my i386 notebook and my amd64 desktop

  I can mount samba shares with
  # mount -t cifs //192.168.1.100/Music /media/Music
  and navigate them with nautilus

  but if use the network:// option in nautilus
  i get a list of samba shares 
  but when i try to use one of them i get a 
  " Failed to retrieve share list from server" error on both machines
  I can't even mount shares on the machine it self

  ProblemType: Bug
  Architecture: amd64
  DistroRelease: Ubuntu 9.04
  NonfreeKernelModules: nvidia ath_hal
  Package: nautilus 1:2.26.1-0ubuntu1
  ProcEnviron:
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: nautilus
  Uname: Linux 2.6.28-11-generic x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/356022/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to