Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas.ks
blob: f43329687178cd82a8ed619d4dfb25a5264aa85b (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Filename:
#   fedora-livecd-sugar.ks
# Maintainers:
#   Sebastian Dziallas <sdz AT fedoraproject DOT org>

%include fedora-live-base.ks

repo --name=sugar --baseurl=http://download.sugarlabs.org/soas/repositories/1/
repo --name=extra-activities --baseurl=http://shell.sugarlabs.org/~alsroot/SoaS/

%packages

@games
@graphical-internet
@graphics
@sound-and-video
@gnome-desktop
nss-mdns
NetworkManager-vpnc
NetworkManager-openvpn
abiword

# sugar!
@sugar-desktop

# additional activities
squeak-vm-olpc
sugar-cartoon-builder
sugar-etoys
sugar-flipsticks
sugar-jigsaw-puzzle
sugar-joke-machine
sugar-poll-builder
sugar-slider-puzzle
#sugar-tamtam-common
#sugar-tamtam-edit
#sugar-tamtam-jam
#sugar-tamtam-mini
#sugar-tamtam-synthlab

# display manager
slim

# 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-*
-wqy-bitmap-fonts
-dejavu-fonts-experimental
-words

# save some space
-gnome-user-docs
-gimp-help
-gimp-help-browser
-evolution-help
-gnome-games
-gnome-games-help
totem-gstreamer
-totem-xine
-nss_db
-vino
-isdn4k-utils
-dasher
-evince-dvi
-evince-djvu
# not needed for gnome
-acpid

# these pull in excessive dependencies
-ekiga
-tomboy
-f-spot

%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" > /home/liveuser/.Xclients
chmod a+x /home/liveuser/.Xclients
chown liveuser:liveuser /home/liveuser/.Xclients

if [ \`grep -c QEMU /proc/cpuinfo\` -ne 0 ]; then
  cat > /etc/X11/xorg.conf <<FOE
Section "ServerLayout"
        Identifier     "Default layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
 
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105+inet"
        Option      "XkbLayout" "us"
EndSection
 
Section "Monitor"
        Identifier   "Monitor0"
        ModelName    "Monitor 1024x768"
        HorizSync    31.5 - 61.0
        VertRefresh  50.0 - 75.0
        Option      "dpms"
EndSection
 
Section "Device"
        Identifier  "Videocard0"
        Driver      "cirrus"
EndSection
 
Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
FOE
fi

mkdir -p /home/liveuser/Activities
for bundle in \`find /usr/share/sugar/bundles -maxdepth 1\` ; do
  ln -s \$bundle /home/liveuser/Activities
done

EOF

%end

%post --nochroot

ACTIVITIES="
http://dev.laptop.org/~morgan/bundles/other/Paint-23.xo
http://dev.laptop.org/~cscott/bundles/Pippy-30.xo
"

WD=$PWD
BUNDLES_DIR=$INSTALL_ROOT/usr/share/sugar/bundles

mkdir -p $BUNDLES_DIR
cd $BUNDLES_DIR

for url in $ACTIVITIES ; do
  curl -O $url
done

for file in *.xo ; do
    unzip $file
    rm $file
done

cd $WD

%end