Difference between revisions of "Samba"

From ArmadeusWiki
Jump to: navigation, search
(Typical problem)
Line 42: Line 42:
  
 
* smbmount errors :  
 
* smbmount errors :  
Because smbmount is using the mount command, make shure you are not using the mount command of the busybox!  
+
Because ''smbmount'' is using the ''mount'' command, make shure you are not using the ''mount'' command of the busybox!  
 
--> enable package "util-linux" in your buildroot configuration and install the new file system
 
--> enable package "util-linux" in your buildroot configuration and install the new file system
  

Revision as of 14:24, 16 February 2007

Instructions to install and use Samba with Armadeus

Introduction

Samba is an Open Source/Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems

This page will summarize the process to build, install basic samba services such as

  • Mounting windows shares
  • Sharing folders for Windows computers

Kernel configuration

First, you must have a right kernel configuration to enable the usage of SAMBA :

  • You must have a networking support (trivial).......
  • "File systems->Network File Systems->SMB file system support" is enabled
  • "File systems->Network File Systems->SMB file system->Use a default NLS" is enabled
    • "withs Default Remote NLS Option = cp437"
  • "File systems->Network File Systems->CIFS support" is enabled
  • "File systems->Network File Systems->Native Language Support"
    • Codepage 437 (United States, Canada)
    • Codepage 850 (Europe)
    • NLS ISO 8859-1 (Latin 1; Western European Languages)
    • NLS ISO 8859-1 (Latin 1; Western European Languages) (this is optional)

Note that in some cases NLS default cp437 can be changed in samba configuration.

Mounting a windows share

To do this you must have the smbmount command. Enable it into your buildroot configuration. Additionally the util-linux package is necessary: you must enable it into your buildroot configuration too. After that, you can mount a windows share by using the following command:

smbmount //hostname/SMBshare /mnt/smb -o username=freddys,password=fredspass

Or by using the ip address

smbmount //192.168.1.2/SMBshare /mnt/win -o username=freddys,password=fredspass

Sharing folders

Typical problem

  • smbmount errors :

Because smbmount is using the mount command, make shure you are not using the mount command of the busybox! --> enable package "util-linux" in your buildroot configuration and install the new file system

  • mount does not complete or Input/output errors:
    • Verify that /etc/mtab is not a symbolic link to /proc/mounts. If it is, erase /etc/mtab and reboot. Linux will create a correct /etc/mtab
    • Are you shure that your mount point has correct access rights?

Links

The complete (and very big) documentation can be found here: