Archive:Samba: Difference between revisions
Jump to navigation
Jump to search
>UNiversal mNo edit summary |
>NedBot m (Robot: Cosmetic changes) |
||
Line 3: | Line 3: | ||
<section begin="intro" />Samba the Linux and Unix implementation [[SMB|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 XBMC (among other uses). Samba/SMB is often a good choice due to it being highly compatible with other computers, regardless of the OS.<section end="intro" /> | <section begin="intro" />Samba the Linux and Unix implementation [[SMB|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 XBMC (among other uses). Samba/SMB is often a good choice due to it being highly compatible with other computers, regardless of the OS.<section end="intro" /> | ||
*http://www.samba.org | * http://www.samba.org | ||
==Installing== | == Installing == | ||
;Gentoo | ;Gentoo | ||
: <pre>emerge samba</pre> | : <pre>emerge samba</pre> | ||
Line 20: | Line 20: | ||
:<pre>make install</pre> | :<pre>make install</pre> | ||
==Configuring== | == Configuring == | ||
:{{Note|The example below is for a public share.}} | :{{Note|The example below is for a public share.}} | ||
Line 55: | Line 55: | ||
Run <code>testparm</code> to check your smb.conf for internal correctness. | Run <code>testparm</code> to check your smb.conf for internal correctness. | ||
==See also== | == See also == | ||
*[[SMB]] | * [[SMB]] | ||
*[[File sharing]] | * [[File sharing]] | ||
[[Category:Supplemental tools]] | [[Category:Supplemental tools]] |
Revision as of 15:37, 27 April 2013
Information: The term "samba" is often used interchangeably with "SMB" (aka, Windows File Sharing). You may be looking for that page instead.
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 XBMC (among other uses). Samba/SMB is often a good choice due to it being highly compatible with other computers, regardless of the OS.
Installing
- Gentoo
emerge samba
- Debian/Ubuntu
sudo apt-get install samba
- Compile from source
Installing Samba regardless of distro
wget http://us4.samba.org/samba/ftp/samba-latest.tar.gz
tar -xvf samba-latest.tar.gz
cd samba-{version}
./configure
make install
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.
- Global configuration
[global] 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
[public] path = <dir to share> public = yes only guest = yes writable = yes
- path
- Set this to the path to be shared by samba
Run testparm
to check your smb.conf for internal correctness.