Chinaunix首页 | 论坛 | 博客
  • 博客访问: 293008
  • 博文数量: 60
  • 博客积分: 1836
  • 博客等级: 上尉
  • 技术积分: 540
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-15 18:00
文章分类

全部博文(60)

文章存档

2013年(1)

2012年(7)

2011年(18)

2010年(6)

2009年(6)

2008年(3)

2007年(19)

我的朋友

分类: LINUX

2007-08-20 13:26:02

GCC版本
gcc-3.4.5/configure --target=arm-linux --host=i686-host_pc-linux-gnu --prefix=/home/local --with-float=soft --with-headers=/home/local/arm-linux/include --with-local-prefix=/home/local/arm-linux --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.5



1.获取source code, 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

阅读(6794) | 评论(6) | 转发(0) |
给主人留下些什么吧!~~

sunmoongcheng2008-06-10 18:08:44

运行SMBD 时出的,请指教。

sunmoongcheng2008-06-10 18:08:06

编译完了,但出permisson denied

baileyking2008-06-05 11:35:56

您好,我也在编译samba到ARM平台,很感谢你提供的方法。我用的编译器的是arm-linux-gcc 3.4.3 。可是./configure时过不去。希望你能和您交流一下,我的MSN:gmechina@live.cn E_mail:kingreat.net@gmail.com

baileyking2008-06-05 11:35:47

您好,我也在编译samba到ARM平台,很感谢你提供的方法。我用的编译器的是arm-linux-gcc 3.4.3 。可是./configure时过不去。希望你能和您交流一下,我的MSN:gmechina@live.cn E_mail:kingreat.net@gmail.com