很多的网页查看解决这个问题,都不是很有效,最后很简单的改了下一个文件就ok了。
首先进入到网络管理配置目录cd /etc/NetworkManager/
然后用编辑器打开相关的配置文件vi NetworkManager.conf
# Configuration file for NetworkManager.
#
# See "man 5 NetworkManager.conf" for details.
#
# The directory /etc/NetworkManager/conf.d/ can contain additional configuration
# snippets. Those snippets override the settings from this main file.
#
# The files within conf.d/ directory are read in asciibetical order.
#
# If two files define the same key,the one that is read afterwards will overwrite
# the prevIoUs one.
[main]
plugins=ifcfg-rh
[logging]
#level=DEBUG
#domains=ALL
[ifupdown]
managed=true
关闭之后,通常网络连接图标就会出现在系统的目录中了。
还有一种情况是上面情况已经使用,但是你又误删了网络管理:(Centos下可用)
具体办法是将面板的默认配置去掉,然后就会恢复面板的默认配置,就能“找回”丢失的网络管理的那个图标:
打开终端 ,输入下列命令:
gconftool --recursive-unset /apps/panel (有可能要重启)
接下来删除:
rm -rf ~/.gconf/apps/panel
最后执行:
pkill gnome-pane