1.获取source code, http://www.samba.org Samba 3.0.25c
2.解压
3.运行./configure CC=arm-linux-gcc AR=arm-linux-ar LD=arm-linux-ld RANLIB=arm-linux-ranlib \
--build=i386-linux-gnu \
--host=arm-linux-gnu \
--prefix= \
--disable-cups \
--disable-iprint \
--disable-pie \
--disable-fam \
--with-ads=no \
--with-ldap=no \
--with-cifsmount=no \
--with-logfilebase=/var/log \
--with-libdir=/usr/lib  \
--with-swatdir=/usr/local/swat \
--with-rootsbindir=/sbin \
--with-lockdir=/var/lock \
--with-piddir=/var/lock \
--with-privatedir=/etc/samba \
--with-configdir=/etc/samba

3.make

4.复制source/bin 目录中的nmbd  smbd 到arm中的文件系统中
5.在arm文件系统中的/etc/samba中创建smb.conf
  1 [global]
  2 workgroup = MSHOME
  3 server string = %h server (Samba, Ubuntu)
  4 netbios name = MYNAME
  5 max log size = 1000
  6 security = share
  7 username map = /etc/samba/smbusers
  8 encrypt passwords = true
  9 [homes]
 10 path = /tmp  #要共享的目录
 11 available = yes
 12 browsable = yes
 13 public = yes
 14 writable = yes
 15 guest ok = yes

6.运行
nmbd -D
smbd -D