动X Window的方法,都包含在prefdm脚本中,几种主要方法有:
运行xdm启动X Window;
运行gdm,进入gnome桌面环境;
运行kdm进入kde桌面环境;
自动登录进入Linux;
prefdm脚本框架大致如下:
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
. /etc/profile.d/lang.sh
# 第一步:查看是否为自动登录
if [ -f /etc/sysconfig/autologin -a -x /usr/sbin/autologin ]; then
if /usr/sbin/autologin; then
exit 页码:[1] [2] [3] [4] [5] [6] 第2页、共6页 |