Chinaunix首页 | 论坛 | 博客
  • 博客访问: 74413
  • 博文数量: 29
  • 博客积分: 2000
  • 博客等级: 大尉
  • 技术积分: 337
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 20:02
文章分类

全部博文(29)

文章存档

2011年(1)

2009年(1)

2008年(27)

我的朋友

分类: LINUX

2008-12-30 20:03:38


启动GNOME设置守护进程时出错

主题、声音或者背景设置等可能不会正常工作。
最后的错误信息是:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

GNOME在您下次登录时仍将试图重启动设置守护进程


今天早上开机,在登录后弹出上面的错误提示。昨天用还好好的,应该是我安装了什么软件造成的。回忆下昨天对系统进行了哪些改动,安装了apache、xinetd、,使用xinetd绑定vsftpd、apache(没完成)、设置了静态IP。
错误提示是守护进程出错,于是我进入终端[Ctrl+Alt+F1],检查了/var/log/daemon日志文件并和前天的对比了一下,除了少了dhcp(自动分配IP,注.我已经手动设置了ip)服务,没有发现什么异常。
难道是网络配置的问题?再打开/etc/network/interfaces文件,看到少了一项lo的配置!很显然是我在设置静态ip的时候犯了个低级错误。
设置前:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

设置后:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto eth0
iface eth0 inet static
address 192.168.1.254   
netmask 255.255.255.0
gateway 192.168.1.100

正确的应该是:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.254   
netmask 255.255.255.0
gateway 192.168.1.100

//重新启动网络服务
$ sudo /etc/init.d/networking restart
//重新启动GNOME
$ sudo /etc/init.d/gdm restart
搞定!

阅读(1150) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~