Samba - a Windows-readable file share

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 11:04, 4 August 2006 by Ramuk (Talk | contribs)

Jump to: navigation, search

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

FreeLink

1. Install the Samba[1][2] 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. Although it is possible to setup Samba manually[3], it is highly recommended that you use Webmin[4] for configuration. Webmin is much easier to use and will undoubtedly save you a lot of trouble.

Openlink

The LinkStation by default comes with a version of Samba[5], if you want a newer version (3.0.23) you'll have to install it manually

wget http://downloads.linkstationwiki.net/packages/ppc/samba_3.0.23_ppc.tar.gz
tar -C / -xvzf samba_3.0.23_ppc.tar.gz

if you want to use it on a openlinked box, then disable the updating of the /etc/samba/smb.conf by the melco-scripts. samba 3.0.23 is not compatible with the smb.conf that gets created for samba 2.2.

If you want to use your handmade samba config, and tell the LS not to touch it: Have a look at /etc/init.d/chkshare

/bin/mkcode -s > /dev/null 
/bin/nkf -sEO /etc/samba/smb.conf /tmp/smb.conf 
mv -f /tmp/smb.conf /etc/samba/smb.conf

and comment out at least the last quoted line.

References

  1. http://www.samba.org/ The samba web site
  2. http://us4.samba.org/samba/docs/using_samba/toc.html "Using Samba", by Ts, Eckstein, and Collier-Brown (O'Reilly)
  3. http://www.reallylinux.com/docs/smb.conf - a sample smb.conf file
  4. Webmin to remotely administer your LinkStation
  5. FAQ: What version of Samba does the stock LinkStation come with? Netatalk? thttpd? WU-FTPD? ProFTPD?