PART 1: Setting up the Samba server
[1] Install samba
Code: Select all
sudo apt install samba
Install wsdd:
Code: Select all
sudo apt install wsdd
Code: Select all
sudo service wsdd status
\\hostname.local
[3] To make it "discoverable" ( Finder > Network > Server ) and accessible ( Finder > Network > Server > Share ) to MacOS:
Install avahi - it may already be installed.
Code: Select all
sudo apt install avahi-daemon
Code: Select all
sudo service avahi-daemon status
smb://hostname.local
[4] Now the problem child - the Gnome based Linux samba client.
( Gnome, XFCE, MATE, Cinnamon, maybe others ... )
There appears to be multiple bugs ( like this one https://bugs.launchpad.net/gvfs/+bug/1828107 ) in the gvfs backend of all these desktops that makes discovery problematic. This does not mean you can't access your share from them.
There are ways around this problem:
Bypass the bugs by asking for the server and it's share explicitly - in the file manager or Connect to Server with one of these:
smb://hostname/sharename
smb://hostname.local/sharename
smb://192.168.0.101/sharename.
OR, Do a cifs mount: Automount Samba Shares with CIFS
OR, Ignore the security warnings about enabling SMB1 on the server and override the default setting:
Edit /etc/samba/smb.conf
Right under the workgroup = WORKGROUP line add this one:
server min protocol = NT1
Then reboot the box - yes, reboot the box.
Note: As Samba itself has stated in it's recent releases SMB1 will eventually go away:
I would get used to living without it.We take this opportunity to remind that we have deprecated and disabled by default, but not removed, the whole SMB1 protocol since Samba 4.11.
....
Eventually SMB1 as a whole will be removed,...
For those who use ufw please see my firewall reference here: viewtopic.php?p=2336472#p2336472