Originally Posted by
welshy20
I have an issue that's been bugging me for a couple of days, I've had it working in the past so I know it CAN be solved but I'm getting to my wits end trying to work it out.
I have a server which I've had to rebuild from scratch due to disk failure, running Ubuntu Server 10.4 w/Samba.
The server primarily hosts music for streaming to other PCs or to my WD HD TV Live box which is downstairs. I have imported the smb.conf and interfaces files from my previous installation so there are no changes, the server is configured with a static IP @ 192.168.1.4/24 with the WD box @ 192.168.1.12/24. All machines are in a workground config named WIFITEST, no domain config is in use.
I am able to connect to shares fine using IP but not host name, first thoughts are that this is of course a DNS issue but the problem is that I've NEVER had a stand alone DNS server on the network to handle host records so there was clearly something else in use, maybe a NetBIOS implementation but I can't for the life of me remember what I'd been using.
The WD box has no means of direct connection via IP (it can only pick up hosts which advertise on the network) so I'm stuck until I can get this working. Likewise there is no hosts file I can edit on the WD box to use the usual hosts workaround where proper DNS isn't available.
I've read around that the issue may very well be caused by a problem with nmbd (which is running) but I don't know where to start and reading the comments in the conf file isn't getting my any further, has anyone any ideas how I can get the server to broadcast it's host/NetBIOS name? I have a Windows 7 laptop which does show up on the WD box and I have had this config working fine up until the rebuild so it's totally possible.
I've attached my interfaces, resolv .conf and smb.conf files for info. smb.conf is the new conf that I've tried to write from scratch, smb.conf.old is the old file which I've also attempted to use.
Thanks in advance,
I think the WD media player uses netbios to find the different hosts (computers).
I see a couple of things that I would change and I have some questions. The questions first: a. What version of Ubuntu are you using? b. have you installed winbind?. Before anyone starts to complain; winbind is NOT needed for most home networking situations and I would remove it if you have it installed.
The following is what I would change in your smb.conf file: 1. I would comment out the following (put a # at the beginning)
Code:
wins support = yes
# wins support = yes <---like this
The net result is this changes the setting to wins support = no (the default). You do not need to run a WINS server for a small network. 2. Add this line to the [global] section
Code:
name resolve order = bcast
This forces the broadcast of netbios names on the network.
This should not change your ability to connect via IP addresses as you do now. It only adds the ability to browse and connect via netbios names. FYI: Samba uses the DNS name (hostname actually) to convert to netbios names. I think the real problem is the broadcasting and that is what the name resolve order line explicitly provides.
Bookmarks