Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ KoC scripts for customizing distributions
## How to test the script

```
curl -sSL https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/kocify.sh | bash
curl -sSL https://raw.githubusercontent.com/roninsphere/kocifier/mexico2019/kocify.sh | bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to switch back to ../kidsoncomputers/kocifier/.., to go with the changes you've made in this PR to kocify.sh ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the URL's switch back when merged.

```
74 changes: 70 additions & 4 deletions kocify.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ function ubermix_update_packages {
sudo apt-get -y upgrade
}

function raspbian_update_os {
echo "================================="
echo "= Updating OS"
echo "================================="
sudo apt-get -y update
sudo apt-get -y upgrade
}

function ubermix_install_wireless_drivers {
# Add wireless drivers
sudo apt-get -y purge bcmwl-kernel-source
Expand All @@ -46,24 +54,62 @@ function ubermix_install_software {
done
}

#https://raw.githubusercontent.com/kidsoncomputers/documentation/master/uganda/2019/install-packages.sh
function install_software {
echo "================================="
echo "= Installing packages"
echo "================================="
software=( $(curl -sSL https://raw.githubusercontent.com/roninsphere/kocifier/mexico2019/packages.txt | sed '/^ *#/d;s/#.*//' ) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is packages.txt in the kidsoncomputers repo? Or in roninsphere ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the packages.txt and the script kocify.sh are on my fork (roninsphere) at the moment; the urls will need to change back to kidsoncomputers when merged.

for package in ${software[*]}
do
sudo apt-get -y install ${package}
done
}


function remove_keyboard_packages {
sudo apt-get remove fcitx*
}

function change_locale {
sudo perl -pi -e 's/# es_MX.UTF-8 UTF-8/es_MX.UTF-8 UTF-8/g' /etc/locale.gen
sudo perl -pi -e 's/en_GB.UTF-8 UTF-8/# en_GB.UTF-8 UTF-8/g' /etc/locale.gen
#sudo rm -rf /etc/default/locale
sudo perl -pi -e 's/en_GB.UTF-8/es_MX.UTF-8/g' /etc/default/locale
sudo locale-gen
# seams to fail
sudo update-locale es_MX.UTF-8
sudo localedef -v -c -i es_MX -f UTF-8 es_MX.UTF-8
sudo locale -a
}

function change_timezone {
sudo rm /etc/localtime
sudo ln -s /usr/share/zoneinfo/America/Mexico_City /etc/localtime
}

function ubermix_download_background_image {
cd /tmp/
cd /tmp/
wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
sudo cp 'Wallpaper 4x3.png' /usr/share/backgrounds
sudo chmod a+rw /usr/share/backgrounds/*
}

function ubermix_configuration_background_image {
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/Wallpaper 4x3.png'
function raspbian_download_background_image {
cd /tmp/
wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
#sudo mkdir /usr/local/share/backgrounds
sudo cp 'Wallpaper 4x3.png' /usr/share/rpd-wallpaper/temple.jpg
sudo chmod a+rw /usr/share/rpd-wallpaper/temple.jpg
# Change the splash page
sudo cp 'Wallpaper 4x3.png' /usr/share/plymouth/themes/pix/splash.png
# Add Spanish MagPI
wget https://www.raspberrypi.org/magpi-issues/MagPi_Mini_Spanish_01.pdf
cp MagPi_Mini_Spanish_01.pdf /home/pi/MagPi/
}

function ubermix_configuration_background_image {
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/rpd-wallpaper/Wallpaper 4x3.png'
gsettings set org.gnome.desktop.background picture-options 'scaled'
gsettings set org.gnome.desktop.background primary-color '#ffffff'
}
Expand All @@ -73,6 +119,11 @@ function ubermix_background_main {
ubermix_configuration_background_image
}

function raspbian_background_main {
raspbian_download_background_image
ubermix_configuration_background_image
}

function ubermix_kocify {
ubermix_update_packages
ubermix_install_wireless_drivers
Expand All @@ -86,10 +137,25 @@ function ubermix_kocify {
# Install Language Pack support for Spanish
}

function raspbian_kocify {
raspbian_update_os
install_software
raspbian_background_main
change_timezone
change_locale
}

check_distro
# dist will have the distribution value
if [[ ${dist} = *'raspbian'* ]]; then
echo 'Raspbian customization should be here';
echo "================================="
echo "= Raspbian customization"
echo "================================="
raspbian_kocify
echo "================================="
echo "= Raspbian customization completed"
echo "================================="
sudo shutdown -r now
fi
if [[ ${dist} = *'ubermix'* ]]; then
#######################
Expand Down
203 changes: 203 additions & 0 deletions packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
##############################################################################
# ROCK STAR APPS:
##############################################################################
# Education - math games
tuxmath
# Education - typing tutor and games
tuxtype
tuxtype-data
# Education - simple drawing program for young children
tuxpaint
tuxpaint-data
tuxpaint-plugins
tuxpaint-stamps

## Minecraft (careful about versions...minecraft-pi basic but adequate?
# Minetest requires GL driver that messes up VLC etc?),
# Games - Minecraft (basic edition, built for pi)
minecraft-pi
# Games - MineTest is similar to Minecraft, but more advanced than minecraft-pi. Can play networked games on IIAB server.
### Note: If graphics performance is slow, enable "Open GL Driver" as follows:
### - Open Terminal
### - Run "sudo raspi-config"
### - Advanced Options
### - GL Driver
### - GL (Full KMS)
###
### Note: Enabling Open GL Driver can make VLC video playback choppy
minetest
#minetest-server

# Scratch 2 prob better than Raspbian’s built-in basic version,
# Programming - Easy programming for ages 8+
scratch2

# Potato Guy
ktuberling

# Education - basic computer skills for young kids
gcompris
# Office - Docs, spreadsheets, presentations (like MS Office)
libreoffice
libreoffice-base
libreoffice-base-core
libreoffice-calc
libreoffice-common
libreoffice-core
libreoffice-dmaths
libreoffice-draw
libreoffice-gnome
libreoffice-gtk2
libreoffice-help-en-us
libreoffice-help-es
libreoffice-impress
libreoffice-l10n-en-us
libreoffice-l10n-es
libreoffice-lightproof-en
libreoffice-math
libreoffice-mysql-connector
libreoffice-pdfimport
libreoffice-writer

# Games - logic puzzles, memory
gbrainy


###############################################################################
# ADDITIONAL APPS:
###############################################################################

# Accessories - scientific calculator
galculator

# Sound and Video - audio utility
audacious

# Office - dictionary
gnome-dictionary

# Accessories - PDF Viewer
evince

# Education - artificial life evolution simulation
biogenesis

# Graphics - Diagrams and charts
dia
dia-common
dia-shapes

# Graphics - advanced graphical editing
gimp
gimp-help-en
gimp-help-es

# Games - memory activities
childsplay
pairs

# Games - pacman-like game
hannah

# Games - lemmings clone
pingus

# Games - lead water to storage tank
vodovod

# Games
# Games - 36 games
brainparty

# Games - basic drawing/letters for young children (2yrs +)
gamine
gamine-data

# Education - Logic board design
smartsim

# Games
gnome-chess
gnome-sudoku
gnome-system-tools

# Education - basic geography and quizzes
kgeography
kgeography-data

# Education - geography
marble

# Programming - learn programming while creating music
sonic-pi

# Games - learn programming languages with ants and spider webs
laby

# Games - Educational games, ages 3-10
pysiogame

# Games - train game
ri-li

# Games - air hockey
tuxpuck

# Games - card games
ace-of-penguins
# Game - Simon Says game
blinken
# Game - winter sports racing game
extremetuxracer

# Graphics - image editors
mirage

# Graphics - screenshot
gnome-screenshot

# Sound and Video - video player
vlc

# Sound and Video - audio player
qmmp

# Misc utilities
# the Network Mapper - Free Security Scanner
nmap
# spell checker
aspell
aspell-en
aspell-es

# Open Source printing system
cups
hplip
# Onscreen Keyboard
onboard

# Open Source science software
kalzium
kalzium-data
ktouch
ktouch-data
kturtle
kwordquiz

php
php-mysql
php-mcrypt
php-common
php-cli
pychess

# Planetarium
stellarium
stellarium-data

# Game - Open Source Super Mario Bros
supertux

# Spell Checker Dictionaries
wamerican
wspanish