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

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

%packages

# glucose modules
sugar
etoys
hulahop
squeak-vm

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

# multimedia implementations
gnash-plugin

# pull plymouth theme
plymouth-theme-soas

# allow better power management
gnome-power-manager

# enable automatic bug reporting
abrt*
-kerneloops

%end

%post

# make sure to include date of composition
echo `date -R` >> /etc/fedora-release

# setup e-mail for bug reports
sed -i 's/root@localhost/feedback@sugarlabs.org/g' /etc/abrt/plugins/Mailx.conf

# add yum repos
cat >> /etc/yum.repos.d/sugar.repo << FOE
[sugar]
name=Sugar
failovermethod=priority
baseurl=http://download.sugarlabs.org/soas/repositories/3/
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.laptop.RecordActivity
org.gnome.Labyrinth
org.laptop.physics
vu.lux.olpc.Speak
org.worldwideworkshop.olpc.JigsawPuzzle
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