(Added prebuilt download) |
(Updated samba to 3.6.23) |
||
Line 5: | Line 5: | ||
<PRE> | <PRE> | ||
− | wget http:// | + | wget http://samba.org/samba/ftp/stable/samba-3.6.23.tar.gz |
− | tar -xzf samba-3.6. | + | tar -xzf samba-3.6.23.tar.gz |
</PRE> | </PRE> | ||
Line 12: | Line 12: | ||
<PRE> | <PRE> | ||
− | cd samba-3.6. | + | cd samba-3.6.23/source3 |
./autogen.sh | ./autogen.sh | ||
./configure --without-krb5 --without-ldap --without-ads \ | ./configure --without-krb5 --without-ldap --without-ads \ | ||
--disable-cups --enable-swat=no --with-winbind=no \ | --disable-cups --enable-swat=no --with-winbind=no \ | ||
− | --target=arm | + | --target=arm-linux-gnueabi --host=arm-linux-gnueabi \ |
--prefix=/usr/local/samba --with-configdir=/etc \ | --prefix=/usr/local/samba --with-configdir=/etc \ | ||
samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \ | samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \ | ||
Line 22: | Line 22: | ||
ac_cv_file__proc_sys_kernel_core_pattern=yes | ac_cv_file__proc_sys_kernel_core_pattern=yes | ||
make | make | ||
− | make install DESTDIR=/home/cpeacock/export/rootfs | + | make install DESTDIR=/home/cpeacock/export/rootfs |
</PRE> | </PRE> | ||
Download the source and uncompress:
wget http://samba.org/samba/ftp/stable/samba-3.6.23.tar.gz tar -xzf samba-3.6.23.tar.gz
And cross compile for ARM:
cd samba-3.6.23/source3 ./autogen.sh ./configure --without-krb5 --without-ldap --without-ads \ --disable-cups --enable-swat=no --with-winbind=no \ --target=arm-linux-gnueabi --host=arm-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
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
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
The link below contains a bzip2 tarball of Samba compiled for ARM: