Originally Posted by
thault
Code:
tault@ubuntu:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
This is what I expected to see.
Code:
tault@ubuntu:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
This is NOT what I expected to see.
We use DHCP, so netbios looks to be the better option.
To use NETBIOS names you have to edit the /etc/samba/smb.conf file to add one line and modify another. To open up the file for editting you do this
Code:
sudo nano /etc/samba/smb.conf
...then look for the line in the [global] section that looks like this (it's about the 56th line down in the smb.conf file)
Code:
; name resolve order = lmhosts host wins bcast
You edit that line and add a line above it so it now looks like this
Code:
netbios name = THAULTSERV
name resolve order = bcast
...now save the edited file and close nano.
The restart the Samba service
Code:
sudo service smbd restart
After a few minutes you should be able to see THAULTSERV by browsing the network shares.
FYI -- This will not make pinging by name work. You need DNS hostnames working for ping to be successful.
Bookmarks