/var/run/gdm.pid doesn't exist, perhaps GDM isn't running

rhel5与rhel4不同的地方是,rhel5里沒有/etc/X11/gdm/目錄,
rhel5的gdm的配置文件放在這里/usr/share/gdm/defaults.conf。
需要修改的地方如下:
需要
1_1、/etc/X11/xdm/Xaccess的配置:
   vi Xaccess  找到下面一句話,將其註銷的功能打開,即去掉下面紅顏色的"#"
    # *      #any host can get a login window


1.修改/usr/share/gdm/defaults.conf文件,确保里面有以下几行:

#这个有可能需要在custom.conf里面也修改


在[xdmcp]中、、/[xdmcp]
Enable=true 
DisplaysPerHost=10 
Port=177


2.再修改/etc/inittab文件,把默 改 5,再加入以下行:
x:5:respawn:/usr/sbin/gdm


3.root用戶修改/usr/share/gdm/defaults.conf文件
[security] 
# Allow root to login.  It makes sense to turn this off for kiosk use, when 
# you want to minimize the possibility of break in. 
AllowRoot=true 
# Allow login as root via XDMCP.  This value will be overridden and set to 
# false if the /etc/default/login file exists and contains 
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists 
# and contains any other value or no value for CONSOLE. 
AllowRemoteRoot=true


4.如果防火墙打开了,使用以下命令打开177端口:
iptables -A INPUT -p udp --dport 177 -j ACCEPT


如果执行 gdm-restart 提示下面这句,

/var/run/gdm.pid doesn't exist, perhaps GDM isn't running


做下面操作

root@iavpcti247 ~]# vi /etc/gdm/custom.conf


[xdmcp]

Port=177

Enable=true

[gui]


保存退出


cp custom.conf gdm.conf



你可能感兴趣的:(/var/run/gdm.pid doesn't exist, perhaps GDM isn't running)