(Created page with " == Cross Compiling Samba == Download the source and uncompress: <PRE> wget http://www.samba.org/samba/ftp/stable/samba-3.6.3.tar.gz tar -xzf samba-3.6.3.tar.gz </PRE> <PRE...")
 
(Cross Compiling Samba)
Line 7: Line 7:
 
wget http://www.samba.org/samba/ftp/stable/samba-3.6.3.tar.gz
 
wget http://www.samba.org/samba/ftp/stable/samba-3.6.3.tar.gz
 
tar -xzf samba-3.6.3.tar.gz
 
tar -xzf samba-3.6.3.tar.gz
</PRE>
 
 
<PRE>
 
export CPPFLAGS=-I/usr/arm-linux/include
 
 
</PRE>
 
</PRE>
  

Revision as of 01:30, 5 February 2012

Cross Compiling Samba

Download the source and uncompress:

wget http://www.samba.org/samba/ftp/stable/samba-3.6.3.tar.gz
tar -xzf samba-3.6.3.tar.gz

And cross compile for ARM:

cd samba-3.6.3/source3
./autogen.sh
./configure --without-krb5 --without-ldap --without-ads \
  --disable-cups --enable-swat=no --with-winbind=no \
  --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi \
  --prefix=/usr/local/samba --with-configdir=/etc \
  samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \    
  libreplace_cv_HAVE_GETADDRINFO=no \
  ac_cv_file__proc_sys_kernel_core_pattern=yes
make
make install DESTDIR=/home/cpeacock/export/rootfs-f12

Creating smb.conf

Create a Samba configuration file (smb.conf) and place it in /etc. Below is a minimal example configuration, sharing the home directories located in /home.

[global]
workgroup = WORKGROUP
netbios name = SAMBA_FS
[Home]
path = /home
writable = yes
comment = Home Directories

Starting Samba

Samba can be started using the following. smbd is the main Samba3 daemon and handles the SMB protocol. nmbd provides NetBIOS name server support.

/sbin/smbd -D
/sbin/nmbd -D