WL-HDD的SAMBA3安装实录

经过两天的摸索,终于把WL-HDD的SAMBA3安装上了.

WL-HDD自带的是SAMBA2?好像是,没证实…反正俺改了n次都不支持中文.

关于SAMBA2在WL-HDD的安装,这里有个十分详尽的介绍

好了,本篇文章是说SAMBA3,要不是因为个UTF-8的问题.俺可不装这东西.

十分吃内存的.可怜的16M内存基本满了

total used free shared buffers
Mem: 13988 13624 364 0 1236
Swap: 40120 1700 38420
Total: 54108 15324 38784

如果安装好了IPKG,直接在命令行下打ipkg install samba就默认的安装3
有一点提醒的是:下载的那个samba_3.0.28-2_mipsel.ipk有20.89m之大
推荐自己从http://nslu2-linux.dyoung-mirror.net/feeds/optware/oleg/cross/stable/samba_3.0.28-2_mipsel.ipk
下载之后用WINSCP上传到WL-HDD里

就可以放心大胆的ipkg install samba_3.0.28-2_mipsel.ipk
否则通过网络安装的时候会不知道安装到哪一不,疑似死机-_-!


[admin@HDD ipkg]$ ipkg install samba_3.0.28-2_mipsel.ipk
Installing samba (3.0.28-2) to root...
package samba suggests installing cups
Installing popt (1.7-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//popt_1.7-2_mipsel.ipk
Installing readline (5.2-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//readline_5.2-2_mipsel.ipk
Installing gnutls (1.6.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//gnutls_1.6.3-1_mipsel.ipk
Installing libtasn1 (0.3.10-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//libtasn1_0.3.10-1_mipsel.ipk
Installing libgcrypt (1.2.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//libgcrypt_1.2.4-1_mipsel.ipk
Installing libgpg-error (1.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//libgpg-error_1.4-1_mipsel.ipk
Installing openldap-libs (2.3.38-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//openldap-libs_2.3.38-1_mipsel.ipk
Installing libdb (4.2.52-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//libdb_4.2.52-3_mipsel.ipk
Installing gdbm (1.8.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//gdbm_1.8.3-2_mipsel.ipk
Installing cyrus-sasl-libs (2.1.22-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable//cyrus-sasl-libs_2.1.22-2_mipsel.ipk
Configuring cyrus-sasl-libs
Configuring gdbm
Configuring gnutls
Configuring libdb
Configuring libgcrypt
Configuring libgpg-error
Configuring libtasn1
Configuring openldap-libs
Configuring popt
Configuring readline
Configuring samba
The original samba version 2 config (/etc/samba/smb.conf) is no longer
working with this version of samba.
Please create a new samba version 3 config (/opt/etc/samba/smb.conf).
After verify your smb.conf file, modify and execute /opt/etc/init.d/S08samba
to activate the samba version 3.
Successfully terminated.

最后它说要手动建立/opt/etc/samba/smb.conf文件
我从配置:

# cat smb.conf
[global]
display charset = UTF-8
unix charset = UTF-8
dos charset = UTF-8

workgroup = MSHOME
netbios name = XDERAM
server string = WL-HDD Samba Server
log file = /opt/var/log/samba/log.%m
max log size = 50
hosts allow = 192.168.0.251
load printers = no
browseable = yes
security = share
guest account = admin

[Storage]
comment = Storage Area
path = /tmp/mnt/disc0_5
public = yes
browseable = yes
writable = yes
printable = no
only guest = no


并且给/opt/etc/init.d/S08samba执行权限
chmod +x /opt/etc/init.d/S08samba
小提示:S08samba里需要修改一个地方:
# set samba_active=1 to activate samba
samba_active=1(原来是0)
这里改成1
然后执行/opt/etc/init.d/S08samba
不出意外的话,应该能启动起来

在地址栏里输入\\192.168.0.94试试看?

WL-HDD的SAMBA3安装实录》上有2条评论

  1. nosat

    你好 我是个Linux新手

    “下载之后用WINSCP上传到WL-HDD里”请问要放在那个文件夹里才能通过“ipkg install samba_3.0.28-2_mipsel.ipk”来安装?

发表评论

邮箱地址不会被公开。 必填项已用*标注


*