What's the best way to share a media folder to a smart TV with 20.04?
I installed samba, right clicked on the folder to share it in caja and what I get is this....
'net usershare' returned error 255: net usershare add: cannot create tmp file /var/lib/samba/usershares/:tmpLrxxxxxXX
Hi,
I would say by editing the /etc/samba/smb.conf file.
- Assign your devices static IPs in your router interface
- Edit smb.conf.
- Make a backup of /etc/samba/smb.conf then
sudo pluma /etc/samba/smb.conf
add the line usershare owner only = false
in the [Global]
section at the top of the file, below workgroup = WORKGROUP
- Add your shares at the bottom end of the file. Should look like this:
[Your share]
path = /path/to/your/share
read only = yes
writeable = no
browseable = yes
hosts allow = your.smart.tv.ip
create mask = 0700
directory mask = 0700
Save and close Pluma.
- Add the following advanced rules in your firewall settings.
-
Name: Netbios Name Service
Protocol: both
From your.smart.tv.ip
to your.server.ip
port 137
-
Name: Netbios Datagram Service
Protocol: UDP
From your.smart.tv.ip
to your.server.ip
port 138
-
Name: Netbios Session Service
Protocol: TCP
From your.smart.tv.ip
to your.server.ip
port 139
sudo service smbd restart
Hope this helps.
1 Like
@checkmate : I highly recommand to use universal media server (ums) to send media from your pc to your TV. Because it's reliable and easy.
https://www.universalmediaserver.com/
The most details guide to start I found, is in French but you can use online translate on it:
https://doc.ubuntu-fr.org/universal_media_server
I use ums since 6 years, I can help you if you need.