Difference between revisions of "Samba - a Windows-readable file share"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
 
(46 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Template:Articles}}''<font color=red><small>
+
{{Template:Articles|Ipkg|Debian|FreeLink|OpenLink|Mediaserver}}
This article  
+
''<font color=red><small>This article based on work done by Frontalot at Linkstationwiki.org</small></font>''
based on work done by Frontalot  
+
<table align=right><tr><td>
at Linkstationwiki.org
+
http://upload.wikimedia.org/wikipedia/en/thumb/2/2c/Samba.svg/240px-Samba.svg.png <br>
</small></font>''<br>
+
</td></tr></table>
1. Install the Samba and SMBFS packages. Use the command:
+
==Samba==
 +
'''[[w:Samba (software)|Samba]]'''<ref>[[w:Samba (software)|Wikipedia:Samba (software)]]</ref> is a [[w:free software|free software]] implementation of [[w:Microsoft|Microsoft]]'s networking protocol released under the [[w:GNU General Public License|GNU General Public License]]. As of version 3, Samba not only provides file and print services for various [[w:Microsoft Windows|Microsoft Windows]] clients but can also integrate with a [[w:Windows Server domain|Windows Server domain]], either as a [[w:Primary Domain Controller|Primary Domain Controller]] (PDC) or as a [[w:Domain Member|Domain Member]]. It can also be part of an [[w:Active Directory|Active Directory]] domain.<ref>[http://us4.samba.org/samba/docs/ Samba Documentation]</ref>
 +
 
 +
==Installation==
 +
===FreeLink/Debian===
 +
1. Install the Samba<ref> http://www.samba.org/ The samba web site</ref><ref> http://us4.samba.org/samba/docs/using_samba/toc.html "Using Samba", by Ts, Eckstein, and Collier-Brown (O'Reilly)</ref> and SMBFS packages. Use the command:
  
 
  <font color=red>apt-get install samba smbfs </font>
 
  <font color=red>apt-get install samba smbfs </font>
Line 12: Line 17:
 
3. If prompted, select yes to creating a password database.
 
3. If prompted, select yes to creating a password database.
  
4. Although it is possible to setup Samba manually, it is highly recommended that you use Webmin (see [[Articles/DebianWebmin]]) for configuration. Webmin is much easier to use and will undoubtedly save you a lot of trouble.
+
4. It is possible to setup [[w:Samba (software)|Samba]] manually<ref>http://www.samba.org/samba/docs/man/Samba-Guide/ - Samba-3 By Example</ref><ref>http://www.reallylinux.com/docs/smb.conf - a sample smb.conf file</ref> however there are web interfaces that enable you to do this too.
[[Category:Debian]]
+
* '''WEBMIN'''
 +
**[[Webmin to remotely administer your LinkStation]]<ref>[[Webmin to remotely administer your LinkStation]]</ref>. [[w:Webmin|Webmin]] is much easier to use and will undoubtedly save you a lot of trouble.
 +
* '''SWAT'''<ref>[http://samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html SWAT: The Samba Web Administration Tool]</ref>
 +
**Install SWAT: <pre>apt-get install swat</pre> Then open your browser to http://IPADDRESS:901 and login using your root account.
 +
 
 +
===Openlink===
 +
: The '''<tt>/etc/samba/smb.conf</tt>''' file is regenerated automatically on every reboot by the melco-scripts. Samba 3.0.23 is not compatible with the <tt>smb.conf</tt> that gets created for samba 2.2. In order to use use your handmade samba config, and tell the LS not to touch it: Have a look at:
 +
#[[How to disable the automatic update of smb.conf, proftpd.conf, Applevolumes.default]]
 +
====PowerPC====
 +
The LinkStation by default comes with a version of Samba<ref>[[FAQ#What_version_of_Samba_does_the_stock_LinkStation_come_with.3F_Netatalk.3F_thttpd.3F_WU-FTPD.3F_ProFTPD.3F |FAQ: What version of Samba does the stock LinkStation come with? Netatalk? thttpd? WU-FTPD? ProFTPD?]]
 +
</ref>, if you want a newer version (3.0.23) you'll have to install it manually <ref>[http://forum.nas-central.org/index.php?action=vthread&forum=7&topic=1238#msg10716 The NAS-Central Community Forum / General Development / optware packages - wouldn`t that be an idea for openlink?]</ref><ref>[http://forum.nas-central.org/index.php?action=vthread&forum=3&topic=1169&page=0#msg9722      The NAS-Central Community Forum / Linkstation 2 (mips) / Cannot write to USB disk]</ref> from precompiled binaries or alternatively compile it from source.<ref>http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html - How to Compile Samba</ref>
 +
wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Packages/samba_3.0.23_ppc.tar.gz
 +
tar -C / -xvzf samba_3.0.23_ppc.tar.gz
 +
 
 +
====MIPSel====
 +
Alexander Skwar has created a fairly [[Ipkg Package List: MIPSel|extensive selection]] of [[Ipkg]] packages for the [[:Category:LS2|MIPSel (LS2)]] LinkStation<ref>[http://forum.nas-central.org/index.php?action=vthread&forum=3&topic=1314 The NAS-Central Community Forum / Linkstation 2 (mips) / LS2 Samba 3.0 Installation]</ref><ref>[http://forum.nas-central.org/index.php?action=vthread&forum=10&topic=1250 The NAS-Central Community Forum / Software (mips) / Samba 3 package for LS2 MIPSEL?]</ref>, Install Ipkg and enable his feed:
 +
*[[Ipkg on the Linkstation (for end-users)]]
 +
*[[Ipkg on the Linkstation (for end-users)#MIPSel 2|Experimental "unstable" ipk Packages for the MIPSEL Linkstation]]
 +
Then use Ipkg to install samba_3.0.23b:
 +
ipkg install samba
 +
 
 +
==Troubleshooting==
 +
*[[Troubleshooting Windows shares (samba)]]
 +
*[[How to disable the automatic update of smb.conf, proftpd.conf, Applevolumes.default]]
  
[[Category:Mediaserver]]
+
==References==
 +
<div class="references-small" style="-moz-column-count: 2; column-count: 2;">
 +
<references/>
 +
</div>

Latest revision as of 00:23, 6 February 2011

This article based on work done by Frontalot at Linkstationwiki.org

240px-Samba.svg.png

Contents

Samba

Samba[1] is a free software implementation of Microsoft's networking protocol released under the GNU General Public License. As of version 3, Samba not only provides file and print services for various Microsoft Windows clients but can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain.[2]

Installation

FreeLink/Debian

1. Install the Samba[3][4] and SMBFS packages. Use the command:

apt-get install samba smbfs 

2. Enter your domain/workgroup when prompted. The Windows XP default is MSHOME.

3. If prompted, select yes to creating a password database.

4. It is possible to setup Samba manually[5][6] however there are web interfaces that enable you to do this too.

Openlink

The /etc/samba/smb.conf file is regenerated automatically on every reboot by the melco-scripts. Samba 3.0.23 is not compatible with the smb.conf that gets created for samba 2.2. In order to use use your handmade samba config, and tell the LS not to touch it: Have a look at:
  1. How to disable the automatic update of smb.conf, proftpd.conf, Applevolumes.default

PowerPC

The LinkStation by default comes with a version of Samba[9], if you want a newer version (3.0.23) you'll have to install it manually [10][11] from precompiled binaries or alternatively compile it from source.[12]

wget http://downloads.nas-central.org/ALL_LS_KB_PPC/Packages/samba_3.0.23_ppc.tar.gz
tar -C / -xvzf samba_3.0.23_ppc.tar.gz

MIPSel

Alexander Skwar has created a fairly extensive selection of Ipkg packages for the MIPSel (LS2) LinkStation[13][14], Install Ipkg and enable his feed:

Then use Ipkg to install samba_3.0.23b:

ipkg install samba

Troubleshooting

References