下载地址 (HTTP): http://ftp.gnome.org/pub/GNOME/sources/gdm/2.4/gdm-2.4.1.3.tar.bz2 下载地址 (FTP): ftp://ftp.gnome.org/pub/GNOME/sources/gdm/2.4/gdm-2.4.1.3.tar.bz2 使用版本: 2.4.1.3 软件包大小: 1.7 MB 预计磁盘使用空间: 34.8 MB 预计编译时间: 2.28 SBU |
gdm 包括 GNOME 的显示管理守护进程,主要用来设置图形登陆。
gdm 依赖于: Linux_PAM-0.77, librsvg-2.2.4 and libgnome-2.2.0.1 gdm will utilize: tcpwrappers-7.6 |
安装gdm 可以使用下面命令:
groupadd gdm && useradd -c gdm -d /dev/null -g gdm -s /bin/bash gdm && ./configure --prefix=$GNOME_PREFIX --sysconfdir=/etc/gnome \ --localstatedir=/var/lib --with-pam-prefix=/etc && make && make install |
--sysconfdir=/etc/gnome : 这个命令把配置文件放在 /etc/gnome 目录中而不是缺省的$GNOME_PREFIX/etc.
--localstatedir=/var/lib : 这个命令把文件放在 /var/lib 而不是 $GNOME_PREFIX/var.
--with-pam-prefix=/etc : 这个命令把pam的配置文件放在 /etc/pam.d 而不是 /etc/gnome.
gdm PAM 配置文件里包含了BLFS中没有安装的 PAM 模块。下面的命令会把配置文件替换成可以在BLFS中使用的:
cat > /etc/pam.d/gdm << "EOF" auth required pam_unix.so auth required pam_nologin.so account required pam_unix.so password required pam_unix.so session required pam_unix.so EOF |
cat > /etc/pam.d/gdm-autologin << "EOF" auth required pam_env.so auth required pam_nologin.so auth required pam_permit.so account required pam_unix.so password required pam_unix.so session required pam_unix.so EOF |
以root用户在控制台下执行,可以测试 gdm.
为了让 gdm 自动运行,用下面的命令来创建 init.d 脚本if your GNOME_PREFIX=/opt/gnome-2.2. The fully qualified paths can be removed for GNOME_PREFIX=/usr :
cat > /etc/rc.d/init.d/gdm << "EOF" #!/bin/bash # Begin $rc_base/init.d/gdm # Based on sysklogd script from LFS-3.1和earlier. # Rewritten by Gerard Beekmans - [email protected] source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo "Starting gdm..." loadproc /opt/gnome-2.2/bin/gdm ;; stop) echo "Stopping gdm..." if [ -f /var/run/gdm.pid ]; then loadproc /opt/gnome-2.2/sbin/gdm-stop fi ;; reload) echo "Reloading gdm..." reloadproc /opt/gnome-2.2/sbin/gdm-safe-restart ;; restart) echo "Restarting gdm..." loadproc /opt/gnome-2.2/sbin/gdm-restart ;; *) echo "Usage: $0 {start|stop|reload|restart}" exit 1 ;; esac # End $rc_base/init.d/gdm EOF chmod 755 /etc/rc.d/init.d/gdm |
下面的命令在相关的 rc.d目录下创建符号链接:
cd /etc/rc.d/init.d && ln -sf ../init.d/gdm ../rc0.d/K05gdm && ln -sf ../init.d/gdm ../rc1.d/K05gdm && ln -sf ../init.d/gdm ../rc2.d/K05gdm && ln -sf ../init.d/gdm ../rc3.d/K05gdm && ln -sf ../init.d/gdm ../rc4.d/K05gdm && ln -sf ../init.d/gdm ../rc5.d/S95gdm && ln -sf ../init.d/gdm ../rc6.d/K05gdm |
要自动开始图形登陆,编辑 /etc/inittab 文件,把
id:3:initdefault: |
id:5:initdefault: |
gdm 包括 gdm, gdm-binary, gdmXnestchooser, gdmchooser, gdmflexiserver, gdmgreeter, gdmlogin, gdmmktemp, gdmphotosetup, gdmsetup, gdmthemetester, gdm-restart, gdm-safe-restart, gdm-stop, gdmaskpass, gdmconfig和gdmopen.