LinuxSoftware

Coding and tramping in Aotearoa / New Zealand

Dave's simple Samba and Avahi setup

This is I think the simplest possible setup. I've tested it just now with Fedora8. Adapt it however suits you.

Avahi is optional, but it's great because you can then use host names instead of IP addresses.

On the Server (run as root):

yum install -y avahi avahi-compat-libdns_sd samba system-config-samba
system-config-securitylevel
   tick Samba | Apply | Yes
setsebool -P samba_enable_home_dirs=1 
service smb start
system-config-samba 
   Preferences | Samba Users | Add User | username | username | yourpasswd | yourpasswd | OK
chkconfig smb on
service smb restart

On the Client (run as root):

yum install -y avahi avahi-compat-libdns_sd 
mkdir /mnt/share
mount -tcifs //servername/username /mnt/share -ousername=username,password=yourpasswd
ls /mnt/share
gvim /etc/fstab
   G o
   //servername/username /mnt/share cifs username=username,password=yourpasswd 0 0

see also SambaServer

Fedora 9

The Fedora 9 firewall default setup has all the ports blocked [even SSH!] including mDNS(5353), this needs to be opened for avahi mDNS to work.

Install nss-mdns instead of (or as well as avahi-compat-libdns_sd)