Samba - a Windows-readable file share

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

Samba
Samba 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.

FreeLink/Debian
1. Install the Samba 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 however there are web interfaces that enable you to do this too.
 * WEBMIN
 * Webmin to remotely administer your LinkStation . Webmin is much easier to use and will undoubtedly save you a lot of trouble.
 * SWAT
 * Install SWAT: apt-get install swat Then open your browser to http://IPADDRESS:901 and login using your root account.

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, if you want a newer version (3.0.23) you'll have to install it manually from precompiled binaries or alternatively compile it from source. 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, Install Ipkg and enable his feed: Then use Ipkg to install samba_3.0.23b: ipkg install samba
 * Ipkg on the Linkstation (for end-users)
 * Experimental "unstable" ipk Packages for the MIPSEL Linkstation

Troubleshooting

 * Troubleshooting Windows shares (samba)
 * How to disable the automatic update of smb.conf, proftpd.conf, Applevolumes.default