解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
dingles
帖子: 22
注册时间: 2009-04-19 14:31

解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#1

帖子 dingles » 2009-09-29 11:50

Ubuntu安装成功以后,点击“位置”-->“网络”是浏览不了Windows网络计算机列表的。
报错如下:Failed to retrieve share list from server
经过实践,总结如下:
1./etc/samba/smb.conf配置
指定netbios name;加入Wins计算机名解析
2./etc/nsswitch.conf配置
加入Wins计算机名解析
3.安装winbind,samba
4.重启计算机(一定要重启,重启服务不行)

知道原因就好办了。实现方法如下:

代码: 全选

sudo gedit /etc/samba/smb.conf
增加以下语句:

代码: 全选

netbios name = %h

#%h为指定的Ubuntu在网上邻居上看到的计算机名,可随意更改。
删除以下语句的;号:

代码: 全选

;name resolve order = lmhosts hosts wins bcast
#加入Wins计算机名解析

代码: 全选

sudo gedit /etc/nsswitch.conf
修改以下语句

代码: 全选

hosts:files mdns4_minimal [NOTFOUND = return] wins dns mdn4
#wins一定要在dns前面

代码: 全选

sudo apt-get install winbind samba

代码: 全选

sudo reboot
上次由 dingles 在 2011-09-15 14:01,总共编辑 3 次。
头像
peteryeh64
论坛版主
帖子: 9386
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#2

帖子 peteryeh64 » 2009-09-29 13:01

學習了!試試看! :em11
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
oathnet
帖子: 14
注册时间: 2009-08-24 19:43
联系:

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#3

帖子 oathnet » 2009-10-01 1:13

很不错的东西。以前我的网内只是2003能看到UB。现在用了楼主的方法。解决了UB共享2003的问题。你真的是了不起,多谢了
dingles
帖子: 22
注册时间: 2009-04-19 14:31

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#4

帖子 dingles » 2009-10-06 20:16

oathnet 写了:很不错的东西。以前我的网内只是2003能看到UB。现在用了楼主的方法。解决了UB共享2003的问题。你真的是了不起,多谢了

呵呵,我也是嗐弄,看了别人的贴子再总结自己的方法。
6wings.k
帖子: 386
注册时间: 2009-01-30 20:54

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#6

帖子 6wings.k » 2009-10-26 21:33

mark :em06
头像
peachcolor
帖子: 898
注册时间: 2006-05-20 14:03

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#7

帖子 peachcolor » 2009-10-26 21:58

我这好像直接可以阿
头像
blambin
帖子: 283
注册时间: 2009-09-22 17:00
系统: arch , win10
联系:

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#8

帖子 blambin » 2009-11-03 11:56

:em11 原来我的有时候行有时候不行,这次再试试
目前已經全面轉移 至 洗发水神教
头像
真知不易
帖子: 88
注册时间: 2007-03-29 12:38

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#9

帖子 真知不易 » 2010-11-10 20:51

试过可以,但不知道有没有多余的步骤。
dingles
帖子: 22
注册时间: 2009-04-19 14:31

Re: 解决Ubuntu文件浏览器不能浏览Windows网络计算机列表

#10

帖子 dingles » 2011-09-15 14:02

最近安装Arch Linux也遇到同样的问题,也可以参考这个文章 :em09
回复