找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4662|回复: 8

安装samba3.0的过程

[复制链接]
尝试安装一次samba3.0,装了这个应该就可以解决以后遇到的中文名的问题。

问题是我通过ipkg来安装,很长时间都是没有响应,后来我才发现samba3,有20m,所有很长时间没有响应。

这次我就把samba下载回来,通过ipkg来安装,相关关联的包,还是会自动到网上下载。

这样安装节省不少时间,

# cd /opt/downloads
# ls
# wget http://ipkg.nslu2-linux.org/feed ... .0.28a-1_mipsel.ipk
Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
# ls
samba_3.0.28a-1_mipsel.ipk
# cd /                           
# ipkg install /opt/downloads/samba_3.0.28a-1_mipsel.ipk
Installing samba (3.0.28a-1) to root...
package samba suggests installing cups
Installing popt (1.7-2) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... pt_1.7-2_mipsel.ipk
Installing readline (5.2-2) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... ne_5.2-2_mipsel.ipk
Installing gnutls (1.6.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... _1.6.3-1_mipsel.ipk
Installing libtasn1 (0.3.10-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... 0.3.10-1_mipsel.ipk
Installing libgcrypt (1.2.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... _1.2.4-1_mipsel.ipk
Installing libgpg-error (1.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... or_1.4-1_mipsel.ipk
Installing openldap-libs (2.3.38-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... 2.3.38-1_mipsel.ipk
Installing libdb (4.2.52-3) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... 4.2.52-3_mipsel.ipk
Installing gdbm (1.8.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... _1.8.3-2_mipsel.ipk
Installing cyrus-sasl-libs (2.1.22-2) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... 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.
#
我想知道,装了之后,原来的smb。conf文件如何修改?
回复

使用道具 举报

 楼主| | 显示全部楼层
我也想知道怎么配置啊,装好了,不过没有配置出来,那位指导一下。
回复

使用道具 举报


  1. [global]
  2. display charset = UTF-8
  3. unix charset = UTF-8
  4. dos charset = UTF-8

  5. workgroup = WORKGROUP
  6. netbios name = DD-WRT
  7. server string = DD-WRT Optware Samba Server
  8. log file = /opt/var/log/samba/log.%m
  9. max log size = 50
  10. hosts allow = 192.168.0.
  11. load printers = no
  12. browseable = yes
  13. security = share
  14. guest account = root

  15. [Amule]
  16. comment = Storage Area
  17. path = /opt/share/amule/.aMule/Incoming
  18. public = yes
  19. browseable = yes
  20. writable = yes
  21. printable = no
  22. only guest = yes


复制代码
回复

使用道具 举报

 楼主| | 显示全部楼层
参考一下,我刚从网上搜索到的。

不过我的还是没有启动。他的是华硕的,我们是mss的,估计是有不同。

最后它说要手动建立/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.1.0
load printers = no
browseable = yes
security = share
guest account = root

[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
不出意外的话,应该能启动起来


http://www.2doit.net/blog/?p=548
回复

使用道具 举报

我也刚装上samba3,楼上各位总结得很不错啊。
回复

使用道具 举报

我自己总结的。还多亏几位大虾

安装samba3

#########################安装Samba3############################

/opt/bin/ipkg install samba

##########################安装完毕##############################

Winscp连接路由器,打开文件/opt/etc/init.d/S08samba,修改samba_active=1

手工在/opt/etc/samba下面建立一个文本文件,命名为smb.conf,写入下面代码

###########################smb.conf#############################
# cat smb.conf
[global]
display charset = UTF-8
unix charset = UTF-8
dos charset = UTF-8
disable spoolss = yes  ####### I can hide all the printers!

workgroup = HOME
netbios name = FlyingDutchman
server string = DD-WRT Optware Samba Server
log file = /opt/var/log/samba/log.%m
max log size = 50
#hosts allow = 192.168.99.
load printers = no
browseable = yes
security = share
guest account = root

[Root]
comment = Storage Area
path = /opt/root
public = yes
browseable = yes
writable = yes
printable = no
only guest = yes
###############################################################

需要启动Samba时,运行/opt/etc/init.d/S08samba即可。
反正也能用
回复

使用道具 举报

我搞不懂原来的samba有乱码吗??我这里中文显示的很好啊
samba不需要更新optware里面的
回复

使用道具 举报

谢了.试试看.细细.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-18 21:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表