summaryrefslogtreecommitdiffstats
path: root/fedora-livecd-sugar.ks
blob: 7c8dc4a3f8a692b175e29563f876158ad5662f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Filename:
#   fedora-livecd-sugar.ks
# Maintainers:
#   Sebastian Dziallas <sdz AT fedoraproject DOT org>
#   Marco Pesenti Gritti <marcopg AT sugarlabs DOT org>

%include fedora-live-base.ks

%packages

# sugar!
@sugar-desktop

# e-mail client
alpine

# display manager
slim

# exclude input methods
-scim*
-m17n*

# avoid weird case where we pull in more festival stuff than we need
festival
festvox-slt-arctic-hts

# dictionaries are big
-aspell-*
-hunspell-*
-man-pages-*
-words

%end

%post
cat > /etc/sysconfig/desktop <<EOF
DISPLAYMANAGER=/usr/bin/slim-dynwm
EOF

cat >> /etc/rc.d/init.d/livesys << EOF

chkconfig --level 5 setroubleshoot off 2>/dev/null
chkconfig --level 5 sendmail off 2>/dev/null
chkconfig --level 5 bluetooth off 2>/dev/null
chkconfig --level 5 cupsd off 2>/dev/null

# disable screensaver locking
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /apps/gnome-screensaver/lock_enabled false >/dev/null

# set up timed auto-login for after 60 seconds
cat >> /etc/slim.conf << FOE
auto_login	yes
default_user	liveuser
FOE

# setup xinitrc
echo "sugar-shell" > /home/liveuser/.xinitrc
chmod a+x /home/liveuser/.xinitrc
chown liveuser:liveuser /home/liveuser/.xinitrc

EOF

%end