Difference between revisions of "GDM"

From CBLFS
Jump to navigationJump to search
(Configuring GDM)
Line 151: Line 151:
 
If you have [[DBUS]] installed and you want to start the session [[DBUS]] daemon when you start the GNOME desktop environment using gdm, you'll need to create a new Xsession file:
 
If you have [[DBUS]] installed and you want to start the session [[DBUS]] daemon when you start the GNOME desktop environment using gdm, you'll need to create a new Xsession file:
  
cat > $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop << "EOF"
+
cat > $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop << "EOF"
[Desktop Entry]
+
[Desktop Entry]
Encoding=UTF-8
+
Encoding=UTF-8
Name=GNOME with D-BUS
+
Name=GNOME with D-BUS
Comment=GNOME Desktop with D-BUS support
+
Comment=GNOME Desktop with D-BUS support
Exec=dbus-launch --exit-with-session gnome-session
+
Exec=dbus-launch --exit-with-session gnome-session
TryExec=/usr/bin/dbus-launch
+
TryExec=/usr/bin/dbus-launch
Icon=
+
Icon=
Type=Application
+
Type=Application
 
+
EOF
+
EOF
chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop
+
chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop

Revision as of 16:41, 28 October 2006

Download Source: http://ftp.gnome.org/pub/gnome/sources/gdm/2.16/gdm-2.16.1.tar.bz2

Dependencies

Required

Optional

Creating the GDM User/Group

groupadd -g 23 gdm &&
useradd -c "GDM Daemon Owner" -d /dev/null \
        -g gdm -s /bin/bash -u 23 gdm

Configuration Information

To enable secure remote connections you must have Zenity, OpenSSH and which installed add the following argument to your configure command:

--enable-secureremote=yes

Non-Multilib

GDM looks in /usr/X11R6 for the X server, If you installed an X Window System to a prefix other then /usr/X11R6 then run the following command:

sed -i "s:/usr/X11R6:${XORG_PREFIX}:g" $(grep -lr /usr/X11R6 *)

Compile the package:

./configure --prefix=${GNOME_PREFIX} \
    --sysconfdir=/etc/gnome \
    --localstatedir=/var/lib \
    --libexecdir=${GNOME_PREFIX}/lib/gdm \
    --mandir=${GNOME_PREFIX}/share/man \
    --with-pam-prefix=/etc &&
make

Install the package

make install

Multilib

32Bit

GDM looks in /usr/X11R6 for the X server, If you installed an X Window System to a prefix other then /usr/X11R6 then run the following command:

sed -i "s:/usr/X11R6:${XORG_PREFIX}:g" $(grep -lr /usr/X11R6 *)

Compile the package:

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" &&
CC="gcc ${BUILD32}" USE_ARCH=32 \
./configure --prefix=${GNOME_PREFIX} \
    --sysconfdir=/etc/gnome \
    --localstatedir=/var/lib \
    --libexecdir=${GNOME_PREFIX}/lib/gdm \
    --mandir=${GNOME_PREFIX}/share/man \
    --with-pam-prefix=/etc &&
make

Install the package

make install &&
unset PKG_CONFIG_PATH

N32

GDM looks in /usr/X11R6 for the X server, If you installed an X Window System to a prefix other then /usr/X11R6 then run the following command:

sed -i "s:/usr/X11R6:${XORG_PREFIX}:g" $(grep -lr /usr/X11R6 *)

Compile the package:

export PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=${GNOME_PREFIX} \
    --libdir=${GNOME_PREFIX}/lib32 \
    --sysconfdir=/etc/gnome \
    --localstatedir=/var/lib \
    --libexecdir=${GNOME_PREFIX}/lib32/gdm \
    --mandir=${GNOME_PREFIX}/share/man \
    --with-pam-prefix=/etc &&
make

Install the package

make install &&
unset PKG_CONFIG_PATH

64Bit

GDM looks in /usr/X11R6 for the X server, If you installed an X Window System to a prefix other then /usr/X11R6 then run the following command:

sed -i "s:/usr/X11R6:${XORG_PREFIX}:g" $(grep -lr /usr/X11R6 *)

Compile the package:

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" &&
CC="gcc ${BUILD64}" USE_ARCH=64 \
./configure --prefix=${GNOME_PREFIX} \
    --libdir=${GNOME_PREFIX}/lib64 \
    --sysconfdir=/etc/gnome \
    --localstatedir=/var/lib \
    --libexecdir=${GNOME_PREFIX}/lib64/gdm \
    --mandir=${GNOME_PREFIX}/share/man \
    --with-pam-prefix=/etc &&
make

Install the package

make install &&
unset PKG_CONFIG_PATH

Configuring GDM

The default configuration parameters are stored in a static file ($GNOME_PREFIX/share/gdm/defaults.conf). This file is not intended to be edited. If modification of the configuration is necessary, you should add parameters to the /etc/gnome/gdm/custom.conf file. The settings in this file will override the settings in the static file. The same parameters in the static file are used in the configuration file.

Change the directory containing the GDM log files to the /var/log hierarchy:

install -v -m755 -d /var/log/gdm &&
sed -i.orig "/\[daemon\]/ a LogDir=/var/log/gdm" \
    /etc/gnome/gdm/custom.conf &&
rmdir -v /var/lib/log/gdm &&
rmdir -v /var/lib/log

You may also want to set a default gtk theme:

sed -i "/\[gui\]/ a GtkTheme=Clearlooks" \
    /etc/gnome/gdm/custom.conf

If you have Linux-Pam installed run the following commands:

cp -v /etc/pam.d/{login,gdm} &&
cp -v /etc/pam.d/{login,gdm-autologin} &&
echo "auth       required     pam_permit.so" >> /etc/pam.d/gdm-autologin

If you have DBUS installed and you want to start the session DBUS daemon when you start the GNOME desktop environment using gdm, you'll need to create a new Xsession file:

cat > $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop << "EOF"
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with D-BUS
Comment=GNOME Desktop with D-BUS support
Exec=dbus-launch --exit-with-session gnome-session
TryExec=/usr/bin/dbus-launch
Icon=
Type=Application

EOF
chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop
Retrieved from "?title=GDM&oldid=3466"