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

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (Samba)
(Openlink (PowerPC))
Line 22: Line 22:
 
  wget http://downloads.linkstationwiki.net/packages/ppc/samba_3.0.23_ppc.tar.gz
 
  wget http://downloads.linkstationwiki.net/packages/ppc/samba_3.0.23_ppc.tar.gz
 
  tar -C / -xvzf 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 <tt>/etc/samba/smb.conf</tt> by the melco-scripts. samba 3.0.23 is not compatible with the <tt>smb.conf</tt> 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 <tt>/etc/init.d/chkshare</tt>
+
The '''<tt>/etc/samba/smb.conf</tt>''' file is regenerated autimatically 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 <tt>/etc/init.d/chkshare</tt>
 +
 
 
   echo "Samba configration file generating..."  
 
   echo "Samba configration file generating..."  
 
  /bin/mkcode -s > /dev/null  
 
  /bin/mkcode -s > /dev/null  

Revision as of 19:58, 13 August 2006

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

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

Installation

FreeLink

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

Openlink (PowerPC)

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

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

The /etc/samba/smb.conf file is regenerated autimatically 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 /etc/init.d/chkshare

 echo "Samba configration file generating..." 
/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. Wikipedia:Samba (software)
  2. http://www.samba.org/ The samba web site
  3. http://us4.samba.org/samba/docs/using_samba/toc.html "Using Samba", by Ts, Eckstein, and Collier-Brown (O'Reilly)
  4. http://www.reallylinux.com/docs/smb.conf - a sample smb.conf file
  5. Webmin to remotely administer your LinkStation
  6. FAQ: What version of Samba does the stock LinkStation come with? Netatalk? thttpd? WU-FTPD? ProFTPD?
  7. The Linkstation Community Forum / General Development / optware packages - wouldn`t that be an idea for openlink?
  8. The Linkstation Community Forum / Linkstation 2 (mips) / Cannot write to USB disk
  9. http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html - How to Compile Samba