Linux File Sharing (using samba): Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (Added wiki toc)
m (Merged into Windows Samba)
Line 1: Line 1:
{{XBMC wiki toc Inline}}
#REDIRECT [[Windows File Sharing (SMB/SAMBA/CIFS)]]
'''Samba''' (from []) is a group of Linux/UNIX/BSD programs designed to be able to interact with [[Windows File Sharing (SMB/SAMBA/CIFS)|Windows default file sharing protocol]], also known as [[Windows File Sharing (SMB/SAMBA/CIFS)|Common Internet File System (CIFS)]], which was formaly known as [[Windows File Sharing (SMB/SAMBA/CIFS)|Server Message Block (SMB)]]. The SAMBA package offers a service which can be used to share media on a Linux/UNIX/BSD based machines to both XBMC and your home Windows computer easily. Another type of device that use the SAMBA (or SMB/CIFS) network-protocol is [[NAS|NAS (Network Attached Storage)]] boxes, which are dedicated file-sharing devices available for home/small-office and professional/enterprise environments. All elements are done from a command-line as it reduces confusion.<br>
'''Note!''' This article assumes some basic knowledge of the Linux/UNIX/BSD operating-system interface and environment.
==Installing Samba==
Due to the diversity of linux distros only two methods will be covered in this article the standard linux install and one using Gentoo's emerge package manager.
*Installing Samba regardless of distro
#<code>tar -xvf samba-latest.tar.gz</code>
#<code>cd samba-{version}</code> (At this time its samba-3.0.22)
#<code>make install</code>
*Installing Samba using Gentoo's emerge
#<code>emerge samba</code>
==Configuring Samba shares==
Note: Currently only the config for a public share will be posted.
Samba's configuration is stored <code>/etc/samba/smb.conf</code>. All the following items should be placed in that file.
*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
:;workgroup : 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)
*Share configuration
    path = <dir to share>
    public = yes
    only guest = yes
    writable = yes
:Set this to the path to be shared by samba
[[category:File Sharing]]

Revision as of 23:43, 20 April 2009