[Fedora-spins] [spin-kickstarts/f19: 1/2] slightly ugly hack to give us a working SoaS for beta: s/gdm/lightdm/

Adam Williamson adamwill at fedoraproject.org
Thu May 23 02:15:07 UTC 2013


commit 3f3e5c66561fc79d5392a4114f07ba53f127b9bf
Author: Adam Williamson <awilliam at redhat.com>
Date:   Wed May 22 19:13:45 2013 -0700

    slightly ugly hack to give us a working SoaS for beta: s/gdm/lightdm/
    
    This quick hack should give us a working SoaS image for beta, I tested it
    here. Use lightdm instead of gdm and adjust for lightdm autologin. Seems
    to work, and it was utterly broken in Beta RC3, so what the hell, give it
    a shot. For Final we should change to lightdm in comps, if switching
    away from gdm is what we decide to do.

 fedora-livecd-soas.ks   |   10 ++++++++++
 fedora-soas-packages.ks |    2 ++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/fedora-livecd-soas.ks b/fedora-livecd-soas.ks
index 5938bd9..301ef08 100644
--- a/fedora-livecd-soas.ks
+++ b/fedora-livecd-soas.ks
@@ -82,6 +82,16 @@ gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults
 # Enable Sugar power management
 gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/power/automatic True >/dev/null
 
+cat >> /etc/rc.d/init.d/livesys << EOF
+# set up lightdm autologin
+sed -i 's/^#autologin-user=.*/autologin-user=liveuser/' /etc/lightdm/lightdm.conf
+sed -i 's/^#autologin-user-timeout=.*/autologin-user-timeout=0/' /etc/lightdm/lightdm.conf
+#sed -i 's/^#show-language-selector=.*/show-language-selector=true/' /etc/lightdm/lightdm-gtk-greeter.conf
+
+# set Sugar as default session, otherwise login will fail
+sed -i 's/^#user-session=.*/user-session=sugar/' /etc/lightdm/lightdm.conf
+EOF
+
 cat >> /etc/rc.d/init.d/livesys-late << EOF
 
 # disable screensaver locking
diff --git a/fedora-soas-packages.ks b/fedora-soas-packages.ks
index 27c2cfd..24e84de 100644
--- a/fedora-soas-packages.ks
+++ b/fedora-soas-packages.ks
@@ -32,6 +32,8 @@
 
 # == Core Sugar Platform ==
 @sugar-desktop
+-gdm
+lightdm
 
 # Write breaks unless we do this (we don't need it anyway)
 # enable for testing in the F17 dev cycle


More information about the spins mailing list