Methods of payment Abuse

Ubuntu error: does not see the Samba network

14.05.2023, 01:15

You may have experienced a problem where Ubuntu cannot find Windows computers or cannot access network resources via Samba. This situation is common for many distributions with the Gnome GUI. The reason for this used to be due to a bug in GVFS, but several other reasons have since emerged. This article will show you how you can fix the problem, configure Ubuntu to work with Windows or Samba balls and retrain Nautilus and Dolphin so they can see all network resources.

Why Ubuntu can't see a Windows or Samba network

Ubuntu may not be able to see the Windows network due to Microsoft abandoning the SMB1 protocol and moving to SMB2 and SMB3 protocols, which do not have network discovery capabilities. Ubuntu uses either avahi or the SMB1 protocol to display network resources, so you can't see a Windows balloon without enabling the obsolete protocol back in the registry.

Also, Windows will not see Samba balls because of the lack of support for the new WS-Discovery service. To solve this problem you need to install the WSDD service separately. But an even bigger problem was the disabling of SMB1 protocol support on the Samba 4.11 server, which caused Nautils and Dolphin to stop seeing not only Windows balls, but Linux balls as well. The solution to the problem can be either installing Avahi on the Samba server or enabling support for the old SMB1 protocol on the Samba server.

Configuring the Samba network for easy access to files

Enabling SMB1 protocol support

In order for the Samba server to be available in the Windows network, it is necessary to enable SMB1 protocol support.

To do this, edit the /etc/samba/smb.conf file as follows:

sudo vi /etc/samba/smb.conf
[global]
server min protocol = NT1
client min protocol = NT1
min protocol = NT1

Host Name Configuration

Make sure that the host name of your server matches the value of the netbios name parameter in the /etc/samba/samb.conf file. You can check the hostname with the hostname command and add it to the /etc/hosts file:

hostname

sudo vi /etc/hosts

127.0.0.1       localhost
192.168.1.2     my_server

[...]

[global]
netbios name = my_server

Avahi Installation

If the problem persists, try installing and configuring the Avahi service. It will allow your Samba server to show up in the network environment in Nautilus.

To install Avahi perform:

sudo apt install avahi-daemon avahi-utils

Next, start the service and add it to your autoloader:

sudo systemctl enable avahi-daemon
sudo systemctl start avahi-daemon

Check the available services with the command:

avahi-browse --all

Install WSDD

To make your Samba server available on the Windows network, install and configure the WSDD service. This service allows Windows to see your server on the network.

To install WSDD, run the following commands:

git clone https://github.com/Andy2244/wsdd2.git
cd wsdd2
make
sudo make install
sudo systemctl daemon-reload
sudo systemctl enable --now wsdd2

Your Samba server should now be available on the Windows network. Check its availability by opening the network environment in Nautilus or Windows Explorer. If everything is configured correctly, you should see your Samba server and its balls.