Problem 2 - part 1
Open this file for editing with the following command:
Code:
gksudo gedit /etc/samba/smb.conf
Scroll down to the section that looks like this:
Code:
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
Change “
WORKGROUP” in “workgroup =
WORKGROUP” to match your Windows workgroup.
Problem 2 - part 2
It may also help to add netbios name =
computer-name just below "workgroup = WORKGROUP".
Your "
computer-name" can be anything, but common convention is to use the name you gave it when you installed Ubuntu (everything after the "@" symbol on the CLI prompt).
For example, here's my CLI prompt:
Code:
dmizer@shinkansen:~$
And here's my smb.conf file:
Code:
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
netbios name = shinkansen
Now, save the file by clicking on "File" > "save", close gedit, and restart samba with the following command (Pre Jaunty):
Code:
sudo /etc/init.d/samba restart
If, after running the above command, you see this error (Since Jaunty):
Code:
sudo: /etc/init.d/samba: command not found
Use the following command (or reboot) instead:
Code:
sudo service smbd restart
= = = = = = = = = = = = = = = = = = =
Problem 3:
Ubuntu is unable to reliably browse Windows host names by default. Enabling this ability will also require a conf file edit.
---CAUTION---
If you are using Firestarter, uninstall it before making this edit. Firestarter may prevent the machine from booting after this change is made. Use GUFW instead.
---CAUTION---
Problem 3 - Part 1
Open /etc/nsswitch.conf for editing with the following command:
Code:
gksudo gedit /etc/nsswitch.conf
Find the line that looks something like:
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
For this line,
order IS important. You’ll need to add the “wins” option before dns, so the line reads like this:
Code:
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Now, save the file by clicking on "File" > "save" and close gedit.
Problem 3 - Part 2
You'll also have to install the winbind daemon in order to resolve hostnames. This is easily done with the following command:
Code:
sudo apt-get install winbind
Then, either restart networking or reboot.
Bookmarks