linux arm 常用服务,ARM Linux 上提供SAMBA服务

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

阅读(6253) | 评论(6) | 转发(0) |

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值