-
Notifications
You must be signed in to change notification settings - Fork 7
Mexico2019 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mexico2019 #20
Changes from all commits
c101816
3175281
0a821a1
92d1d8b
641ebe7
0c45905
6e2dca6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -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/#.*//' ) ) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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' | ||
| } | ||
|
|
@@ -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 | ||
|
|
@@ -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 | ||
| ####################### | ||
|
|
||
| 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 |
There was a problem hiding this comment.
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 tokocify.sh?There was a problem hiding this comment.
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.