From Official Kodi Wiki
Jump to: navigation, search
Home icon grey.png   ▶ SMB ▶ Samba

Samba the Linux and Unix implementation SMB/CIFS (aka, Windows File Sharing). If it is not included in a given OS distro, it can be installed easily to share files to Kodi (among other uses). Samba/SMB is often a good choice due to it being highly compatible with other computers, regardless of the OS.

1 Installing

emerge samba
sudo apt-get install samba

1.1 Compile from source

Installing Samba regardless of distro

tar -xvf samba-latest.tar.gz
cd samba-{version}
make install

2 Configuring

Note: The example below is for a public share.

Samba's configuration is stored /etc/samba/smb.conf. All the following items should be placed in that file.

2.1 Global configuration

workgroup = <workgroup>
netbios name = <name of server>
server string = <title>
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
dns proxy = no
Should be set to the workgroup your home pc uses if you planning on accessing this share from a windows PC
netbios name 
This is the name that will be displayed when browsing the your Network Neighborhood
server string 
The title of the server that will be displayed in windows(This is not the share name)

2.2 Share configuration

path = <dir to share>
public = yes
only guest = yes
writable = yes
Set this to the path to be shared by samba

Run testparm to check your smb.conf for internal correctness.

Finally resart samba service.

sudo service smdb restart

# or

sudo smbd restart

3 See also