朋友,首先很感谢你的帮助!
事情是这样子的,我有两台计算机,一台XP 系统,另一台主是Redhat linux 系统,我在linux下的 X-windows窗口,想访问 XP系统的网络共享文件夹share 。
用命令mount ?t smbfs ?o codepage=cp936,iocharset=utf8,username=administrator,password=123456 //XP/share /mnt/winxp映射击过来的文件夹不能显示中文
我linux 当前的语言环境是:LANG=zh_CN.UTF-8
问题已解决了,方法是用这个命令
mount ?t cifs ?o username=administrator,password=123456 //XP/share /mnt/winxp
From: nok [mailto:nlany.web@gmail.com]
Sent: 2007年 1月9 日 18:50
To: XiaoLong Cai
Cc: Debian Chinese [GB]
Subject: Re: mount.smbfs怎么才能显示中文文件名?
您没有提供具体使用环境,我这里的环境已经是客户端zh_CN.utf8,服务器端samba XXX。
然后客户端使用下面的配置:
1. /etc/samba/smbd.conf
[global]
dos charset = CP936
unix charset = UTF8
display charset = UTF8
2. /etc/fstab中自动mount samba文件服务器的条目:
//172.16.100.34/项目管理交流 /mnt/pwork-share smbfs username= lan.yufeng,codepage=cp936,iocharset=utf8,fmask=0777 0 0
以上不折行,参数的含义可参看man手册,就可以了。
可以用
smbclient -L <文件服务器ip> -U <文件服务器帐号>
来测试你能否成功连接服务器。goot luck.On 1/9/07, XiaoLong Cai < MCN00740@hk.multek.com> wrote:
朋友你好,我现在也被这个问题所困扰不知道你有没有找到解决的方法,如有烦请告知。谢谢。
蔡小龙
2006. 1.9
Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message