Not just for file sharing, but also supports printing and name services. I now make it part of my standard Linux builds within Virtual Box but it is a pain in the arse with Ubuntu, it never seems to work out of the box.
Ubuntu
I installed it today, and getting it to connect to the host is a complete pain in the butt. The apt install works well, installs the missing products and enables the daemons.
My article “Back to Ubuntu” dated Jun 2021 documents two fixes required to half make it work. I said, I had problems with samba, as it seems I still need smb version 1. Oracle VBox forums strongly suggest avoiding SMB1. The smb.conf file requires the following lines,
client min protocol = NT1
name resolve order = bcast host
But these didn’t work in 2023. putty works, cmd sftp works but the windows file browser and filezilla do not.
Some useful links,
and in 2023
- A linux questions forum thread, focuses on workgroup argument and the visibility of the browsable argument in testparm’s output.
- How to configure samba server share on ubuntu 22-04 from which I lifted the smb.conf config ; I need to look at this in more detail.
- The default firewall configurator became UFW. I found this manual, A Beginners Guide to Linux firewall 2021. ufw defaults to running without logs, they must be turned on. I need ssh, sftp, smb, nmb, http and https, is that all, maybe cups. I need to check if iptables have been set by apt. AFAIK ufw is an interface to iptables. It comes with rules which are on or off, for OpenSSH, apache and Samba. It is enabled/disabled via the ufw cli.
Raspbian
And now I need it on my little pi. Check this out!
I can now mount the NAS drive on the PI, but I need to mount it on a partition, check out clonezilla.
I am having problems mounting the Pi’s shares on my real U22 machine using the smb
protocol. 6/12/2022, I found these,
- https://askubuntu.com/questions/74789/failed-to-retrieve-share-list-from-server-error-when-browsing-a-share-with-nau this mentions
smbtree
which I installed on the client - https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html.en
- Install-and-configure-samba, 3. Setting-up-samba talks of
ufw
, which is not on the pi, butiptables
is? so, here’s a page on the samba/iptables runes. - https://forums.raspberrypi.com/viewtopic.php?t=262123, a thread on firewalls on the pi
Using a credentials file
Here’s a link on credentials files,
And here’s a LMGTFY on “Linux Samba”
I replaced the original featured image, as it didn’t work for the current theme.
The new image comes from freepik, and was posted by fxquadro
This was last updated on May 25th 2020, probably to add the comments about the ‘pi.
I am having problems mounting the Pi’s shares on my real U22 machine using the smb protocol and nautilus
I clarified the U22 configuration and changed the featured image.