Skip to content

Commit 9a97164

Browse files
authored
Merge pull request #20 from roninsphere/mexico2019
Mexico2019
2 parents 843183c + 6e2dca6 commit 9a97164

File tree

3 files changed

+274
-5
lines changed

3 files changed

+274
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ KoC scripts for customizing distributions
44
## How to test the script
55

66
```
7-
curl -sSL https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/kocify.sh | bash
7+
curl -sSL https://raw.githubusercontent.com/roninsphere/kocifier/mexico2019/kocify.sh | bash
88
```

kocify.sh

100644100755
Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ function ubermix_update_packages {
3030
sudo apt-get -y upgrade
3131
}
3232

33+
function raspbian_update_os {
34+
echo "================================="
35+
echo "= Updating OS"
36+
echo "================================="
37+
sudo apt-get -y update
38+
sudo apt-get -y upgrade
39+
}
40+
3341
function ubermix_install_wireless_drivers {
3442
# Add wireless drivers
3543
sudo apt-get -y purge bcmwl-kernel-source
@@ -46,24 +54,62 @@ function ubermix_install_software {
4654
done
4755
}
4856

57+
#https://raw.githubusercontent.com/kidsoncomputers/documentation/master/uganda/2019/install-packages.sh
58+
function install_software {
59+
echo "================================="
60+
echo "= Installing packages"
61+
echo "================================="
62+
software=( $(curl -sSL https://raw.githubusercontent.com/roninsphere/kocifier/mexico2019/packages.txt | sed '/^ *#/d;s/#.*//' ) )
63+
for package in ${software[*]}
64+
do
65+
sudo apt-get -y install ${package}
66+
done
67+
}
68+
69+
4970
function remove_keyboard_packages {
5071
sudo apt-get remove fcitx*
5172
}
5273

74+
function change_locale {
75+
sudo perl -pi -e 's/# es_MX.UTF-8 UTF-8/es_MX.UTF-8 UTF-8/g' /etc/locale.gen
76+
sudo perl -pi -e 's/en_GB.UTF-8 UTF-8/# en_GB.UTF-8 UTF-8/g' /etc/locale.gen
77+
#sudo rm -rf /etc/default/locale
78+
sudo perl -pi -e 's/en_GB.UTF-8/es_MX.UTF-8/g' /etc/default/locale
79+
sudo locale-gen
80+
# seams to fail
81+
sudo update-locale es_MX.UTF-8
82+
sudo localedef -v -c -i es_MX -f UTF-8 es_MX.UTF-8
83+
sudo locale -a
84+
}
85+
5386
function change_timezone {
5487
sudo rm /etc/localtime
5588
sudo ln -s /usr/share/zoneinfo/America/Mexico_City /etc/localtime
5689
}
5790

5891
function ubermix_download_background_image {
59-
cd /tmp/
92+
cd /tmp/
6093
wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
6194
sudo cp 'Wallpaper 4x3.png' /usr/share/backgrounds
6295
sudo chmod a+rw /usr/share/backgrounds/*
6396
}
6497

65-
function ubermix_configuration_background_image {
66-
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/Wallpaper 4x3.png'
98+
function raspbian_download_background_image {
99+
cd /tmp/
100+
wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
101+
#sudo mkdir /usr/local/share/backgrounds
102+
sudo cp 'Wallpaper 4x3.png' /usr/share/rpd-wallpaper/temple.jpg
103+
sudo chmod a+rw /usr/share/rpd-wallpaper/temple.jpg
104+
# Change the splash page
105+
sudo cp 'Wallpaper 4x3.png' /usr/share/plymouth/themes/pix/splash.png
106+
# Add Spanish MagPI
107+
wget https://www.raspberrypi.org/magpi-issues/MagPi_Mini_Spanish_01.pdf
108+
cp MagPi_Mini_Spanish_01.pdf /home/pi/MagPi/
109+
}
110+
111+
function ubermix_configuration_background_image {
112+
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/rpd-wallpaper/Wallpaper 4x3.png'
67113
gsettings set org.gnome.desktop.background picture-options 'scaled'
68114
gsettings set org.gnome.desktop.background primary-color '#ffffff'
69115
}
@@ -73,6 +119,11 @@ function ubermix_background_main {
73119
ubermix_configuration_background_image
74120
}
75121

122+
function raspbian_background_main {
123+
raspbian_download_background_image
124+
ubermix_configuration_background_image
125+
}
126+
76127
function ubermix_kocify {
77128
ubermix_update_packages
78129
ubermix_install_wireless_drivers
@@ -86,10 +137,25 @@ function ubermix_kocify {
86137
# Install Language Pack support for Spanish
87138
}
88139

140+
function raspbian_kocify {
141+
raspbian_update_os
142+
install_software
143+
raspbian_background_main
144+
change_timezone
145+
change_locale
146+
}
147+
89148
check_distro
90149
# dist will have the distribution value
91150
if [[ ${dist} = *'raspbian'* ]]; then
92-
echo 'Raspbian customization should be here';
151+
echo "================================="
152+
echo "= Raspbian customization"
153+
echo "================================="
154+
raspbian_kocify
155+
echo "================================="
156+
echo "= Raspbian customization completed"
157+
echo "================================="
158+
sudo shutdown -r now
93159
fi
94160
if [[ ${dist} = *'ubermix'* ]]; then
95161
#######################

packages.txt

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
##############################################################################
2+
# ROCK STAR APPS:
3+
##############################################################################
4+
# Education - math games
5+
tuxmath
6+
# Education - typing tutor and games
7+
tuxtype
8+
tuxtype-data
9+
# Education - simple drawing program for young children
10+
tuxpaint
11+
tuxpaint-data
12+
tuxpaint-plugins
13+
tuxpaint-stamps
14+
15+
## Minecraft (careful about versions...minecraft-pi basic but adequate?
16+
# Minetest requires GL driver that messes up VLC etc?),
17+
# Games - Minecraft (basic edition, built for pi)
18+
minecraft-pi
19+
# Games - MineTest is similar to Minecraft, but more advanced than minecraft-pi. Can play networked games on IIAB server.
20+
### Note: If graphics performance is slow, enable "Open GL Driver" as follows:
21+
### - Open Terminal
22+
### - Run "sudo raspi-config"
23+
### - Advanced Options
24+
### - GL Driver
25+
### - GL (Full KMS)
26+
###
27+
### Note: Enabling Open GL Driver can make VLC video playback choppy
28+
minetest
29+
#minetest-server
30+
31+
# Scratch 2 prob better than Raspbian’s built-in basic version,
32+
# Programming - Easy programming for ages 8+
33+
scratch2
34+
35+
# Potato Guy
36+
ktuberling
37+
38+
# Education - basic computer skills for young kids
39+
gcompris
40+
# Office - Docs, spreadsheets, presentations (like MS Office)
41+
libreoffice
42+
libreoffice-base
43+
libreoffice-base-core
44+
libreoffice-calc
45+
libreoffice-common
46+
libreoffice-core
47+
libreoffice-dmaths
48+
libreoffice-draw
49+
libreoffice-gnome
50+
libreoffice-gtk2
51+
libreoffice-help-en-us
52+
libreoffice-help-es
53+
libreoffice-impress
54+
libreoffice-l10n-en-us
55+
libreoffice-l10n-es
56+
libreoffice-lightproof-en
57+
libreoffice-math
58+
libreoffice-mysql-connector
59+
libreoffice-pdfimport
60+
libreoffice-writer
61+
62+
# Games - logic puzzles, memory
63+
gbrainy
64+
65+
66+
###############################################################################
67+
# ADDITIONAL APPS:
68+
###############################################################################
69+
70+
# Accessories - scientific calculator
71+
galculator
72+
73+
# Sound and Video - audio utility
74+
audacious
75+
76+
# Office - dictionary
77+
gnome-dictionary
78+
79+
# Accessories - PDF Viewer
80+
evince
81+
82+
# Education - artificial life evolution simulation
83+
biogenesis
84+
85+
# Graphics - Diagrams and charts
86+
dia
87+
dia-common
88+
dia-shapes
89+
90+
# Graphics - advanced graphical editing
91+
gimp
92+
gimp-help-en
93+
gimp-help-es
94+
95+
# Games - memory activities
96+
childsplay
97+
pairs
98+
99+
# Games - pacman-like game
100+
hannah
101+
102+
# Games - lemmings clone
103+
pingus
104+
105+
# Games - lead water to storage tank
106+
vodovod
107+
108+
# Games
109+
# Games - 36 games
110+
brainparty
111+
112+
# Games - basic drawing/letters for young children (2yrs +)
113+
gamine
114+
gamine-data
115+
116+
# Education - Logic board design
117+
smartsim
118+
119+
# Games
120+
gnome-chess
121+
gnome-sudoku
122+
gnome-system-tools
123+
124+
# Education - basic geography and quizzes
125+
kgeography
126+
kgeography-data
127+
128+
# Education - geography
129+
marble
130+
131+
# Programming - learn programming while creating music
132+
sonic-pi
133+
134+
# Games - learn programming languages with ants and spider webs
135+
laby
136+
137+
# Games - Educational games, ages 3-10
138+
pysiogame
139+
140+
# Games - train game
141+
ri-li
142+
143+
# Games - air hockey
144+
tuxpuck
145+
146+
# Games - card games
147+
ace-of-penguins
148+
# Game - Simon Says game
149+
blinken
150+
# Game - winter sports racing game
151+
extremetuxracer
152+
153+
# Graphics - image editors
154+
mirage
155+
156+
# Graphics - screenshot
157+
gnome-screenshot
158+
159+
# Sound and Video - video player
160+
vlc
161+
162+
# Sound and Video - audio player
163+
qmmp
164+
165+
# Misc utilities
166+
# the Network Mapper - Free Security Scanner
167+
nmap
168+
# spell checker
169+
aspell
170+
aspell-en
171+
aspell-es
172+
173+
# Open Source printing system
174+
cups
175+
hplip
176+
# Onscreen Keyboard
177+
onboard
178+
179+
# Open Source science software
180+
kalzium
181+
kalzium-data
182+
ktouch
183+
ktouch-data
184+
kturtle
185+
kwordquiz
186+
187+
php
188+
php-mysql
189+
php-mcrypt
190+
php-common
191+
php-cli
192+
pychess
193+
194+
# Planetarium
195+
stellarium
196+
stellarium-data
197+
198+
# Game - Open Source Super Mario Bros
199+
supertux
200+
201+
# Spell Checker Dictionaries
202+
wamerican
203+
wspanish

0 commit comments

Comments
 (0)