diff options
author | Aliosh Neira <aliosh2006@gmail.com> | 2013-03-16 01:20:18 (GMT) |
---|---|---|
committer | Aliosh Neira <aliosh2006@gmail.com> | 2013-03-16 01:20:18 (GMT) |
commit | afd6986755c61391c7c4ebd94d873567f46dd8aa (patch) | |
tree | 1806cb6397d232ac4474c3976be1f3644d6e84d9 /image | |
parent | d1c8d404f391590b56f3c04cb490a570b5142c67 (diff) |
1
Diffstat (limited to 'image')
-rwxr-xr-x | image/build.sh | 3 | ||||
-rwxr-xr-x | image/common-perueduca.ini | 139 | ||||
-rwxr-xr-x | image/common.ini | 144 | ||||
-rwxr-xr-x | image/latestbuild | 5 | ||||
-rwxr-xr-x | image/post-perueduca.sh | 20 | ||||
-rwxr-xr-x | image/post.sh | 21 | ||||
-rwxr-xr-x | image/xo-1.5.ini | 21 | ||||
-rwxr-xr-x | image/xo-1.ini | 14 |
8 files changed, 367 insertions, 0 deletions
diff --git a/image/build.sh b/image/build.sh new file mode 100755 index 0000000..59c33ba --- /dev/null +++ b/image/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +olpc-os-builder --additional-defaults=common-perueduca.ini --no-clean-output xo-1.5.ini diff --git a/image/common-perueduca.ini b/image/common-perueduca.ini new file mode 100755 index 0000000..03e6b0e --- /dev/null +++ b/image/common-perueduca.ini @@ -0,0 +1,139 @@ +# +# Common configuration for all XO models. +# + +[global] +# Image title. +# Put your title here. +customization_info = Hexoquinasa XO distribution + +# Image filename. +# String should contain one formatting argument to make Python expression, +# `image_name % latestbuild`, valid. Make sure that you escaped `%` symbol +# by `%%`. Put your filename here. +image_name = hxp%%d + +# Minimal list of required modules. +# All of the following modules need to be added to keep final image consistent. +# `*sugar*` modules are not included on purpose, Sugar related configuration +# will happen in `sweets-deployment` package added by `sweets` module. +modules_required = + base, + repos, + yumcfg, + powerd, + x11, +# Include Sweets Distribution specific settings. + sweets + +# Useful extra modules. +modules_extra = +# Keep current build number in path set by [buildnr_from_file]. + buildnr_from_file, +# Add rpmfusion repositories to image build time and image itself. + rpmfusion, +# To add extra packages from [custom_packages] section. + custom_packages, + custom_scripts, + signing, + adobe_flash + +[buildnr_from_file] +# Path to file to keep current image release number. +# If you change this file manually, make sure that file content doesn't end +# with new line symbol to avoid fails from `olpc-os-builder` internals. +path = latestbuild + +[sweets] +# Name of Sweets Distribution repository current one is based on. +# http://wiki.sugarlabs.org/go/Template:Sweets_Distribution_Linkbar +# Right now, only "Factory" is accessible. +sweets_repository = Factory + +# Url to downstream repository. Put your url here. +deployment_repository_url = http://download.sugarlabs.org/packages/SweetsDistribution:/Factory:/ReferenceXO/Fedora-%(fedora_release)s/ + +# Sugar Network layer to restrict list of activities and their versions +# Use Contributor Hub application to set what content should be in such layer +# TODO Make sugar that his layer is the same as in etc/sweets.conf +sugar_network_layer = peruvian-pilot + +# List of bundle_ids (or context GUIDs in Sugar Network terms) of activities +# to prefetch to final image to make them accessible in offline right after +# flasing. These activities should exist in the Sugar Network. If activities +# were formed properly, their dependencies will be automatically installed. +# Put your activities list here. +offline_activities = + org.laptop.WebActivity, + org.laptop.Calculate, + org.vpri.EtoysActivity, + org.laptop.sugar.Jukebox, + org.laptop.Log, + org.laptop.Pippy, + org.laptop.sugar.ReadActivity, + org.laptop.Terminal, + org.laptop.TurtleArtActivity, + org.laptop.AbiWordActivity, + org.worldwideworkshop.olpc.JigsawPuzzle, + org.laptop.TamTamMini, + org.laptop.Memorize, + org.gnome.Labyrinth, + org.laptop.Oficina, + com.jotaro.ImplodeActivity, + org.laptop.physics, + org.laptop.MeasureActivity, + org.laptop.VncLauncher, + edu.mit.media.ScratchActivity, + vu.lux.olpc.Speak + +# List of bundle_ids (or context GUIDs in Sugar Network terms) of activities +# make them favorited in Sugar Shell Home view. These activities need +# to be mentioned in `offline_activities` option as well. +# Put your activities list here. +favorite_activities = + org.laptop.WebActivity, + org.laptop.Calculate, + org.vpri.EtoysActivity, + org.laptop.sugar.Jukebox, + org.laptop.sugar.ReadActivity, + org.laptop.TurtleArtActivity, + org.laptop.AbiWordActivity, + vu.lux.olpc.Speak, + org.worldwideworkshop.olpc.JigsawPuzzle, + org.laptop.TamTamMini, + org.laptop.Memorize, + org.gnome.Labyrinth, + org.laptop.Oficina, + com.jotaro.ImplodeActivity, + org.laptop.physics, + org.laptop.MeasureActivity, + edu.mit.media.ScratchActivity + +[custom_packages] +add_packages = +# Useful packages from rpmfusion repository. + gstreamer-plugins-ugly, + gstreamer-ffmpeg, + mplayer, + x11vnc, + totem, + libxml2-python, + evince-djvu, + python-alsaaudio, + SDL_Pango, + gstreamer-plugins-espeak + pygtk2-libglade + +[signing] +extract=1 +bios_crypto_path=/root/bios-crypto +skey=/root/bios-crypto/build/masterkeys/fs +okey=/root/bios-crypto/build/masterkeys/os +wkey=/root/bios-crypto/build/masterkeys/fw +make_img_fs_zip=1 + +[custom_scripts] +custom_script_1 = %(oob_config_dir)s/post-perueduca.sh + +[repos] +custom_repo_1=1,perueduca-xo,file:///root/repos/perueduca-xo diff --git a/image/common.ini b/image/common.ini new file mode 100755 index 0000000..2bc2580 --- /dev/null +++ b/image/common.ini @@ -0,0 +1,144 @@ +# +# Common configuration for all XO models. +# + +[global] +# Image title. +# Put your title here. +customization_info = Hexoquinasa XO distribution +fedora_release = 14 + +# Image filename. +# String should contain one formatting argument to make Python expression, +# `image_name % latestbuild`, valid. Make sure that you escaped `%` symbol +# by `%%`. Put your filename here. +image_name = hxp%%d + +# Minimal list of required modules. +# All of the following modules need to be added to keep final image consistent. +# `*sugar*` modules are not included on purpose, Sugar related configuration +# will happen in `sweets-deployment` package added by `sweets` module. +modules_required = + base, + repos, + yumcfg, + powerd, + x11, +# Include Sweets Distribution specific settings. + sweets + +# Useful extra modules. +modules_extra = +# Keep current build number in path set by [buildnr_from_file]. + buildnr_from_file, +# Add rpmfusion repositories to image build time and image itself. + rpmfusion, +# To add extra packages from [custom_packages] section. + custom_packages, + custom_scripts, + signing + +[repos] + +fedora_arch = i386 +fedora = fedora,fedora_updates +olpc_frozen_1 = 1,local.11.3.1 +olpc_frozen_2 = 1,local.11.3.0-xo1 +olpc_frozen_3 = 1,local.11.3.1-xo1 +add_excludes_to = fedora,fedora-updates,fedora-updates-testing + + +[buildnr_from_file] +# Path to file to keep current image release number. +# If you change this file manually, make sure that file content doesn't end +# with new line symbol to avoid fails from `olpc-os-builder` internals. +path = latestbuild + +[sweets] +# Name of Sweets Distribution repository current one is based on. +# http://wiki.sugarlabs.org/go/Template:Sweets_Distribution_Linkbar +# Right now, only "Factory" is accessible. +sweets_repository = Factory +fedora_release = 14 + +# Url to downstream repository. Put your url here. +deployment_repository_url = http://download.sugarlabs.org/packages/SweetsDistribution:/Factory:/ReferenceXO/Fedora-14/ +# deployment_repository_url = http://download.sugarlabs.org/packages/SweetsDistribution:/Factory:/ReferenceXO/Fedora-%(fedora_release)s/ + +# Sugar Network layer to restrict list of activities and their versions +# Use Contributor Hub application to set what content should be in such layer +# TODO Make sugar that his layer is the same as in etc/sweets.conf +sugar_network_layer = peruvian-pilot + +# List of bundle_ids (or context GUIDs in Sugar Network terms) of activities +# to prefetch to final image to make them accessible in offline right after +# flasing. These activities should exist in the Sugar Network. If activities +# were formed properly, their dependencies will be automatically installed. +# Put your activities list here. +offline_activities = + org.laptop.WebActivity, + org.laptop.Calculate, + org.laptop.Chat, + org.vpri.EtoysActivity, + org.laptop.ImageViewerActivity, + org.laptop.sugar.Jukebox, + org.laptop.Log, + org.laptop.Pippy, + org.laptop.sugar.ReadActivity, + org.laptop.Terminal, + org.laptop.TurtleArtActivity, + org.laptop.AbiWordActivity, + org.laptop.sugar.Jukebox, + org.worldwideworkshop.olpc.JigsawPuzzle, + org.laptop.TamTamMini, + org.laptop.Memorize, + org.gnome.Labyrinth, + org.laptop.RecordActivity, + org.laptop.Oficina, + com.jotaro.ImplodeActivity, + org.laptop.physics, + org.laptop.MeasureActivity, + org.laptop.VncLauncher, + net.gcompris, + edu.mit.media.ScratchActivity, + org.ceibaljam.conozcoamerica, + org.ceibaljam.conozcoalimentos, + org.sugarlabs.ICanReadActivity, + org.ceibaljam.terronesweeper, + org.sugarlabs.SimpleGraph, + org.ceibaljam.jamedit, + org.laptop.TurtleArtButia, + vu.lux.olpc.Speak + +# List of bundle_ids (or context GUIDs in Sugar Network terms) of activities +# make them favorited in Sugar Shell Home view. These activities need +# to be mentioned in `offline_activities` option as well. +# Put your activities list here. +favorite_activities = + org.laptop.WebActivity, + org.laptop.Calculate, + org.laptop.Chat, + org.laptop.TurtleArtActivity, + org.laptop.AbiWordActivity, + org.laptop.physics, + org.laptop.TamTamMini, + org.ceibaljam.conozcoamerica, + +[custom_packages] +add_packages = +# Useful packages from rpmfusion repository. + gstreamer-plugins-ugly, + gstreamer-ffmpeg, + mplayer, + x11vnc + +[signing] +extract=1 +bios_crypto_path=/root/bios-crypto +skey=/root/bios-crypto/build/masterkeys/fs +okey=/root/bios-crypto/build/masterkeys/os +wkey=/root/bios-crypto/build/masterkeys/fw +make_img_fs_zip=1 + +[custom_scripts] +custom_script_1 = %(oob_config_dir)s/post.sh diff --git a/image/latestbuild b/image/latestbuild new file mode 100755 index 0000000..bcc8c05 --- /dev/null +++ b/image/latestbuild @@ -0,0 +1,5 @@ +<<<<<<< HEAD +25 +======= +81 +>>>>>>> 1e9df8e9b20ba28143091d6b8693822156415ce6 diff --git a/image/post-perueduca.sh b/image/post-perueduca.sh new file mode 100755 index 0000000..881080e --- /dev/null +++ b/image/post-perueduca.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +src_root=$(dirname $0) +cd ${INSTALL_ROOT} + +for i in $(ls $src_root/../activities/*.xo); do HOME=home/olpc sugar-install-bundle $i; done +for i in `find home/olpc/.local -type l`; do ln -fs /$(readlink $i) $i; done + +echo Installing homepage +# custom browser homepage +mkdir -p usr/share/library-common +cp $src_root/../hx_home-perueduca/* usr/share/library-common/ + +cat > home/olpc/.i18n << EOF +LANG="es_PE.utf8" +LANGUAGE="es_PE.utf8" +EOF + +creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}') +chown ${creds} -R home/olpc diff --git a/image/post.sh b/image/post.sh new file mode 100755 index 0000000..9835c8a --- /dev/null +++ b/image/post.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +src_root=$(dirname $0) +cd ${INSTALL_ROOT} + +for i in $(ls $src_root/../activities/*.xo); do HOME=home/olpc sugar-install-bundle $i; done +for i in `find home/olpc/.local -type l`; do ln -fs /$(readlink $i) $i; done + +echo Installing homepage +# custom browser homepage +mkdir -p usr/share/library-common +cp $src_root/../hx_home/* usr/share/library-common/ + +echo Setting language +cat > home/olpc/.i18n <<EOF +LANG="es_PE.utf8" +LANGUAGE="es_PE.utf8" +EOF + +creds=$(ls -aldn home/olpc | awk '{print $3 ":" $4}') +chown ${creds} -R home/olpc diff --git a/image/xo-1.5.ini b/image/xo-1.5.ini new file mode 100755 index 0000000..6afa72d --- /dev/null +++ b/image/xo-1.5.ini @@ -0,0 +1,21 @@ +# +# XO-1.5 final configuration. +# + +[global] +modules = +# Create ext4 SD card image files to flash on XO-1.5 laptops. + sd_card_image, +# This handy module includes all needed options to make +# downstream distribution based on stable OLPC 11.3.1 release on XO-1.5 laptops. +# It might override other modules' default settings, so, keep it last. +# For other OLPC release modules, see sources on +# http://git.sugarlabs.org/platform/olpc-os-builder/trees/master/modules + olpc_11_3_1_xo1_5 + +[sd_card_image] +# 2GB image +size_1 = 1932735283,zd +keep_disk_image = 0 +compress_disk_image = 0 +make_zd = 1 diff --git a/image/xo-1.ini b/image/xo-1.ini new file mode 100755 index 0000000..b09be08 --- /dev/null +++ b/image/xo-1.ini @@ -0,0 +1,14 @@ +# +# XO-1 final configuration. +# + +[global] +modules = +# Create .img and .crc jffs2 image files to flash on XO-1 laptops. + jffs2_image, +# This handy module includes all needed options to make +# downstream distribution based on stable OLPC 11.3.1 release on XO-1 laptops. +# It might override other modules' default settings, so, keep it last. +# For other OLPC release modules, see sources on +# http://git.sugarlabs.org/platform/olpc-os-builder/trees/master/modules + olpc_11_3_1_xo1 |