Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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.

```
60 changes: 56 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,6 +54,19 @@ 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*
}
Expand All @@ -56,14 +77,26 @@ function change_timezone {
}

function ubermix_download_background_image {
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 +106,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 +124,24 @@ function ubermix_kocify {
# Install Language Pack support for Spanish
}

function raspbian_kocify {
raspbian_update_os
install_software
raspbian_background_main
change_timezone
}

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
196 changes: 196 additions & 0 deletions packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
# Sound and Video - audio utility
audacious

# Office - dictionary
gnome-dictionary

# Accessories - PDF Viewer
evince

# Programming - text/code editor
geany

# Education - artificial life evolution simulation
biogenesis

# Games - memory activities
childsplay
pairs

# 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 - pacman-like game
hannah

# Games - lemmings clone
pingus

# Games - lead water to storage tank
vodovod

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

# Games
## ExtremeTuxRacer too slow on Pi; requires OpenGL
###extremetuxracer

# Games - 36 games
brainparty

# Accessories - scientific calculator
galculator

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

# Games - logic puzzles, memory
gbrainy

# Education - basic computer skills for young kids
gcompris

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

# Education - math games
tuxmath

# Education - typing tutor and games
tuxtype
tuxtype-data

# Education - Logic board design
smartsim

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

# Programming - Easy programming for ages 8+
scratch2

# 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 - 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

# Education - simple drawing program for young children
tuxpaint
tuxpaint-data
tuxpaint-plugins
tuxpaint-stamps

# Games - air hockey
tuxpuck

# Graphics - image editors
#mypaint
mirage

# Graphics - screenshot
gnome-screenshot

# Sound and Video - video player
vlc

# Sound and Video - audio player
qmmp


# Misc utilities
git-svn
subversion
tcpdump
nmap
pydf

ace-of-penguins
apache2
aptitude
aspell
aspell-en
aspell-es
blinken
build-essential
cups
extremetuxracer
gzip
hplip
kalzium
kalzium-data
ktouch
ktouch-data
kturtle
kwordquiz
mysql-common
mariadb-server-core-10.3
onboard
p7zip
php
php-mysql
php-mcrypt
php-common
php-cli
pychess
scratch
stellarium
stellarium-data
supertux
wamerican
wspanish