Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas-sugar.ks
blob: e3c96917cddac68227a50e20997d3d45c32f70cb (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
%include soas-base.ks
%include soas-aslo-and-content.ks

repo --name=sugar --baseurl=http://download.sugarlabs.org/soas/repositories/2/

%packages

# glucose modules
sugar
etoys
hulahop
squeak-vm

# sugar platform
csound-python
espeak
gnome-python2-evince
libffi
libxml2-python
metacity
numpy
pyabiword
pygame
python-decorator
vte

# dependencies for Epub support in Read
pywebkitgtk
python-BeautifulSoup
python-lxml

# display manager
gdm

# fix selinux issue
system-config-firewall-base

# multimedia implementations
gnash-plugin

# screencasts are great
gtk-recordmydesktop

# pull plymouth theme
plymouth-theme-soas

# allow better power management
gnome-power-manager

# liveusb duplication tool
livecd-tools

# include tools for backup support
ds-backup-client

# lets do some language tricks
gettext

# include delta rpm support
yum-presto

%end

%post

# change build strings
echo "SoaS release 2 (Blueberry)" > /etc/fedora-release
echo "cpe://o:sugarlabs:soas:2" > /etc/system-release-cpe

# add yum repos
cat >> /etc/yum.repos.d/sugar.repo << FOE
[sugar]
name=Sugar
failovermethod=priority
baseurl=http://download.sugarlabs.org/soas/repositories/2/
enabled=1
gpgcheck=0
FOE

# disable the logout menu item in Sugar
gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults -s -t bool /desktop/sugar/show_logout false >/dev/null

# add more activities to the favorites
cat > /usr/share/sugar/data/activities.defaults << FOE
com.garycmartin.Moon
org.laptop.AbiWordActivity
org.laptop.Calculate
org.laptop.Chat
org.sugarlabs.InfoSlicer
org.sugarlabs.IRC
org.laptop.Memorize
org.laptop.Pippy
org.laptop.TurtleArtActivity
org.laptop.WebActivity
org.vpri.EtoysActivity
org.laptop.Oficina
org.gnome.Labyrinth
org.laptop.physics
vu.lux.olpc.Speak
org.worldwideworkshop.olpc.JigsawPuzzle
org.laptop.TamTamEdit
org.laptop.TamTamJam
org.laptop.TamTamMini
org.laptop.TamTamSynthLab
org.laptop.sugar.GetIABooksActivity
org.laptop.Arithmetic
com.socialtext.SocialCalcActivity
org.sugarlabs.VisualMatchActivity
edu.mit.media.ScratchActivity
org.laptop.community.TypingTurtle
vu.lux.olpc.Maze
org.laptop.sugar.ReadEtextsActivity
FOE

# invoke ntpdate when network comes up
ntpdate_file=/etc/NetworkManager/dispatcher.d/42-ntpdate
if [ ! -e $ntpdate_file ] ; then
   cat >  $ntpdate_file <<EOF
#!/bin/bash

if [ "\$2" = "up" ] ; then
    sleep 5
    /usr/sbin/ntpdate 0.pool.ntp.org >> /tmp/ntpdate.log 2>&1
fi
EOF

chmod u+rx $ntpdate_file
fi



# invoke smolt a few seconds after network comes up
smolt_file=/etc/NetworkManager/dispatcher.d/43-smolt
if [ ! -e $smolt_file ] ; then
   cat >  $smolt_file <<EOF
#!/bin/bash

export PATH=/bin:/usr/bin

if [ "\$2" = "up" ] ; then
    sleep 15
    ( nice /usr/bin/smoltSendProfile -a --submitOnly -b -c ||  /usr/sbin/smoltSendProfile -a --submitOnly -b ) >> /tmp/smolt.log 2>&1
fi
EOF

fi

chmod u+rx $smolt_file




%end


%include soas-liveuserscripts-eliminate.ks