Installing SMB on hassbian

I am trying to install samba from the hassbian-config but I will not succeed, can anyone help me how to install samba? It looks like this

pi@hassbian:~ $ sudo hassbian-config install samba
Samba install script for Hassbian
Copyright(c) 2017 Fredrik Lindqvist <https://github.com/Landrash>
Running apt-get preparation
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease      
Reading package lists... Done                                            
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 hassbian-scripts : Depends: cython3 but it is not going to be installed
 samba : Depends: python-dnspython but it is not going to be installed
         Depends: python-samba but it is not going to be installed
         Depends: samba-common (= 2:4.5.8+dfsg-2+deb9u2) but 2:4.5.8+dfsg-2+deb9u1 is to be installed
         Depends: samba-common-bin (= 2:4.5.8+dfsg-2+deb9u2) but it is not going to be installed
         Depends: tdb-tools but it is not going to be installed
         Depends: update-inetd but it is not going to be installed
         Depends: libldb1 (>= 0.9.21) but it is not going to be installed
         Depends: libtdb1 (>= 1.2.7+git20101214) but it is not going to be installed
         Depends: libtevent0 (>= 0.9.16) but it is not going to be installed
         Depends: libwbclient0 (= 2:4.5.8+dfsg-2+deb9u2) but 2:4.5.8+dfsg-2+deb9u1 is to be installed
         Depends: samba-libs (= 2:4.5.8+dfsg-2+deb9u2) but it is not going to be installed
         Recommends: attr but it is not going to be installed
         Recommends: samba-dsdb-modules but it is not going to be installed
         Recommends: samba-vfs-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Adding homeassistant Samba user
sudo: smbpasswd: command not found
Adding shared folder for Home Assistant configuration directory
patching file smb.conf
Restarting Samba service
Failed to restart smbd.service: Unit smbd.service not found.

Installation done.

If you have issues with this script, please say something in the #Hassbian channel on Discord.

Configuration is now available as a Samba share at \\10.0.1.4\homeassistant

pi@hassbian:~ $

Just to be sure, did you run:

sudo apt update && sudo apt upgrade

before trying to install samba?

No, should I have done that? I am installing it from a fresh install of hassbian and have not run any update before.

I always check for upgrades before installing extra packages, just in case. :slight_smile:

I run apt --fix-broken install now and the tried to install samba again and now its seams to work

Tha installation worked, however there is no folders showing in hassbian in finder/explorer. Do I need to do anything els?

I have have this:

[homeassistant]
path = /home/homeassistant/.homeassistant
writeable = yes
guest ok = yes
create mask = 0644
directory mask = 0755
force user = homeassistant

appended to the end of /etc/samba/smb.conf. Make the change and restart samba

1 Like

Thanks that was missing in the file. Now it is up and running

Having trouble finding /hassbian-scripts directory. No mention in watch engine results and command prompt searches don’t turn up anything!

I don’t think you can find it that easy, have tried but not succeeded. What do you want to do with the script?

Trying to install Samba to allow editing of configuration scripts remotely. I’m getting this error when using command prompts mentioned in your post’s link:

sudo: hassbian-config: command not found

You shold type sudo hassbian-config install samba Is that not working?

Have you tried to upgrade the scripts?

sudo hassbian-config upgrade hassbian-script

Both commands are not found. I’m sure I installed hassbian, as I’m using a Pi 3 Model B+, which isn’t supported by hass.io

Try to install samba manually then,

Here is a guide you can follow

Everything in the guide went fine, but Windows doesn’t pick up the pi as a networked drive. Tried fiddling with some file manager options to no avail!

It’s all fine on my phone, Windows mustn’t be configured right. I’ll settle for this!

Hi, I’m having kind of the same problem
I can do everything using Putty, but on my windows 7 PC I do see my RP as a computer, but cannot open it.
Samba installed
RP connected by WiFi
Done everything mentiont above

It dit work yesterday connected over Eth, but wanted to use it over WiFi. Dit a clean setup of Hassbian (got a RB 3+).

i also used this and worked after restart. make sure u uninstall any instances of samba you already tried