Hi!
I’m running HassIO in an old laptop with ubuntu server.
Is it possible to add kodi folder to the samba share on the addon?
Hi!
I’m running HassIO in an old laptop with ubuntu server.
Is it possible to add kodi folder to the samba share on the addon?
I acknowledge I need, somehow, to edit the smb.conf file inside docker container. I searched how but couldn’t find.
This is not the way to docker.
Maybe install samba in ubuntu and point it to HassIO container folders? I’m not really an experienced linux user…
Yes. Get rid of the samba add-on and use samba on the host. Then you can share whatever directories you want.
But how can I had the hassio folders? They are in a docker container, right?
No.
You ran the installer script. You should read scripts before you run them.
/usr/share/hassio
There is a workaround to add extra folder to samba addon.
I did this by binding desired directory to hassio media folder.
hassio media folder local host path:
/usr/share/hassio/media/
desired folder:
/docker
commands:
mkdir /usr/share/hassio/media/docker
sudo mount --bind /docker /usr/share/hassio/media/docker
check that folder is binded ok by listing files in target directory:
ls -lah /usr/share/hassio/media/docker
If everything ok,
restart samba addon, after boot you will get desired folder in media share.
Please make note that this is not permanent at all, and will be nuked by a restart. If you want it to persist, you’ll need something in your /etc/fstab
like this:
/docker /usr/share/hassio/media/docker none bind