File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,25 @@ function remove_keyboard_packages {
7171 sudo apt-get remove fcitx*
7272}
7373
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+
7486function change_timezone {
7587 sudo rm /etc/localtime
7688 sudo ln -s /usr/share/zoneinfo/America/Mexico_City /etc/localtime
7789}
7890
7991function ubermix_download_background_image {
92+ cd /tmp/
8093 wget https://raw.githubusercontent.com/kidsoncomputers/kocifier/master/assets/Wallpaper%204x3.png
8194 sudo cp ' Wallpaper 4x3.png' /usr/share/backgrounds
8295 sudo chmod a+rw /usr/share/backgrounds/*
@@ -129,6 +142,7 @@ function raspbian_kocify {
129142 install_software
130143 raspbian_background_main
131144 change_timezone
145+ change_locale
132146}
133147
134148check_distro
You can’t perform that action at this time.
0 commit comments