]> spindle.queued.net Git - xodist/commitdiff
mkchroot: re-add gdm and kdm to gnome and kde images, respectively
authorAndres Salomon <dilinger@collabora.co.uk>
Thu, 28 May 2009 23:30:30 +0000 (19:30 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Thu, 28 May 2009 23:30:30 +0000 (19:30 -0400)
autox is great for xfce/lxde, but gnome requires extra crud in order to
support "log-out" and such.  So, use gdm/kdm for gnome/kde.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
configs/debxo-gnome/hooks
configs/debxo-gnome/packages
configs/debxo-kde/hooks

index 7921733c3ff5e705dfd3b96b4cf3623068fc2edc..02c022cc0016a0a05371d40e4616d312d74b2276 100644 (file)
@@ -70,8 +70,7 @@ EOF
        k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb 
  http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb 
  http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb 
- http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb 
- http://lunge.mit.edu/~dilinger/debxo-0.5/autox_0.1_all.deb"
+ http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb"
        mkdir -p cache
        for i in $k; do
                pkg=$(basename ${i})
@@ -85,7 +84,6 @@ EOF
 
        # take some packages that are okay to upgrade off hold
        echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections)
-       echo autox install | (chroot ${ROOT_DIR} dpkg --set-selections)
 
        # No longer a need for xorg.conf
        rm -f ${ROOT_DIR}/etc/X11/xorg.conf
@@ -95,11 +93,6 @@ EOF
                cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/
        fi
 
-       # configure autox
-       if [ -f ${ROOT_DIR}/etc/default/autox ]; then
-               sed --in-place "s/USER=$/USER=${DEFUSER}/" ${ROOT_DIR}/etc/default/autox
-       fi
-
        # configure gnome
        if [ -d ${ROOT_DIR}/etc/gconf/2 ]; then
                cat >${ROOT_DIR}/etc/gconf/2/local-defaults.path<<EOF
@@ -110,6 +103,11 @@ EOF
                cp %gconf-tree.xml ${ROOT_DIR}/etc/gconf/debxo.xml.defaults/
        fi
 
+       # configure gdm
+       if [ -d ${ROOT_DIR}/etc/gdm ]; then
+               sed -i "s_\[daemon\]_\[daemon\]\n\nGreeter=/usr/lib/gdm/gdmlogin\n\nAutomaticLoginEnable=true\n\nAutomaticLogin=${DEFUSER}_" ${ROOT_DIR}/etc/gdm/gdm.conf
+       fi
+
 }
 
 cleanup_chroot_hook()
index 3c0c1f42d3d480f887e6ffe12f4c14e3bff39279..7cf341aff2c4c4c8654a3404d0f892c69511df0d 100644 (file)
@@ -33,14 +33,12 @@ xfonts-100dpi
 xfonts-scalable
 xfonts-base
 x11-xserver-utils
-xinit
-xauth
 
 # the gnome and desktop stuff
 menu
 aspell-en
 ttf-liberation
-#gdm
+gdm
 gnome-core
 gnome-backgrounds
 gnome-power-manager
index 0af18b5de94f2ff821f31b8b0d60bfdcb298c24a..03a73baf29fa4cdeaaed12ad6bb14b59751e35ba 100644 (file)
@@ -69,8 +69,7 @@ EOF
        k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb 
  http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb 
  http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb 
- http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb 
- http://lunge.mit.edu/~dilinger/debxo-0.5/autox_0.1_all.deb"
+ http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb"
        mkdir -p cache
        for i in $k; do
                pkg=$(basename ${i})
@@ -84,7 +83,6 @@ EOF
 
        # take some packages that are okay to upgrade off hold
        echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections)
-       echo autox install | (chroot ${ROOT_DIR} dpkg --set-selections)
 
        # No longer a need for xorg.conf
        rm -f ${ROOT_DIR}/etc/X11/xorg.conf
@@ -94,9 +92,9 @@ EOF
                cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/
        fi
 
-       # configure autox
-       if [ -f ${ROOT_DIR}/etc/default/autox ]; then
-               sed --in-place "s/USER=$/USER=${DEFUSER}/" ${ROOT_DIR}/etc/default/autox
+       # configure kdm
+       if [ -d ${ROOT_DIR}/etc/kde3/kdm ]; then
+               sed --in-place "s/AllowNullPasswd=false/AllowNullPasswd=true/;s/#AutoLoginEnable=true/AutoLoginEnable=true/;s/#AutoLoginUser=fred/AutoLoginUser=${DEFUSER}/" ${ROOT_DIR}/etc/kde3/kdm/kdmrc
        fi
 
 }