Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/soas-appliance.ks
blob: ed57f03241ab6950a6080c909120fde3771d62cb (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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selinux --disabled
firewall --disabled
xconfig --startxonboot
bootloader --timeout=1 --append="acpi=force"
network --bootproto=dhcp --device=eth0 --onboot=on
services --enabled=network --disabled=acpid,avahi-daemon,auditd,cups,dnsmasq,exim, ip6tables,iptables,irda,kerneloops,mdmonitor,netfs,nfs,nfslock,nscd,portreserve,rpcbind,rpcgssd,rpcidmapd,sshd

device virtio_blk
device virtio_pci
device scsi_wait_scan

part / --size 1024 --fstype ext3 --ondisk sda

repo --name=sugar --baseurl=http://download.sugarlabs.org/soas/repositories/2/
repo --name=rawhide --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=i386 --excludepkgs=PolicyKit-kde

%packages --excludedocs --instLangs en_US

# basic package set
@base-x
@base
@core
@hardware-support
kernel

# sugar!
@sugar-desktop
-sugar-pippy

# additional packages
etoys
gtksourceview2
numpy
squeak-vm
sugar-read
sugar-update-control

# e-mail client
alpine

# display manager
slim

# work around for keyboard layout
system-config-keyboard

# multimedia implementations
gnash-plugin
totem-mozplugin

# save some space
-specspo
-esc
-samba-client
-a2ps
-mpage
-redhat-lsb
-sox
-hplip
-hpijs
-sendmail
-ssmtp
-numactl
-isdn4k-utils
-autofs

# smartcards won't really work on the livecd.
-coolkey
-ccid

# duplicate functionality
-pinfo
-vorbis-tools
-wget

# lose the compat stuff
-compat*

# no need for kudzu if the hardware doesn't change
-kudzu
-prelink
-setserial
-ed

# Remove the authconfig pieces
-authconfig
-rhpl
-wireless-tools

# Remove the kbd bits
-kbd
-usermode

# these are all kind of overkill but get pulled in by mkinitrd ordering
-mkinitrd
-kpartx
-dmraid
-mdadm
-lvm2
-tar

# exclude input methods
-scim*
-m17n*

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

# no printing
-system-config-printer
-cups*
-foomatic*
-gutenprint*

# remove SELinux stack
-setroubleshoot
-policycoreutils
-policycoreutils-gui
-checkpolicy
-selinux-*
-libselinux-python
-libselinux

# save more space
-bluez*
-samba*
-smolt*
-solar-backgrounds

# Things it would be nice to loose
-fedora-logos
generic-logos
-fedora-release-notes
%end

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

# add Sugar repository to yum
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

# setup activity directory
mkdir -p /home/liveuser/Activities
chown liveuser:liveuser /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://activities.sugarlabs.org/en-US/sugar/downloads/file/25910/cartoonbuilder-2.xo
http://activities.sugarlabs.org/en-US/sugar/downloads/file/25927/infoslicer-3.xo
http://activities.sugarlabs.org/en-US/sugar/downloads/file/25906/moon-9.xo
http://activities.sugarlabs.org/en-US/sugar/downloads/file/25940/pippy-31.xo
http://activities.sugarlabs.org/en-US/sugar/downloads/file/25911/speak-9.xo
http://activities.sugarlabs.org/en-US/sugar/downloads/file/25912/typing_turtle-16.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

%post --nochroot --interpreter image-minimizer
    drop /usr/share/omf
    drop /usr/share/gnome
    drop /usr/share/doc
    drop /usr/share/libthai
    drop /usr/share/man
    drop /usr/share/terminfo
    drop /usr/share/X11
    drop /usr/share/i18n
    
    # Remove many of the time zones.
    drop /usr/share/zoneinfo
    keep /usr/share/zoneinfo/EST
    keep /usr/share/zoneinfo/UTC
    
    drop /usr/lib/locale
    drop /usr/lib/syslinux
    drop /usr/lib64/gconv
    drop /usr/lib64/pango
    drop /usr/lib64/libpango*
    drop /etc/pango
    drop /usr/bin/pango*
    
    # Nix all locale stuff
    drop /usr/share/locale
    keep /usr/share/locale/en_US
%end