Last active
January 22, 2017 10:15
-
-
Save damoclark/480d00018512e2b7822c93ecec31a68c to your computer and use it in GitHub Desktop.
Shell script to configure Raspbian Jessie for Queensland Australia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#LOCALE | |
sudo perl -p -i -e 's/^(en_GB.*)$/# $1/ ; s/^# en_AU\.UTF-8 UTF-8$/en_AU.UTF-8 UTF-8/ ;' /etc/locale.gen | |
sudo locale-gen | |
#TIMEZONE | |
sudo rm /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/Australia/Queensland /etc/localtime | |
sudo rm /etc/timezone | |
echo "Australia/Queensland" | sudo tee /etc/timezone | |
#KEYBOARD | |
cat <<EOF >/tmp/keyboard | |
# KEYBOARD CONFIGURATION FILE | |
# Consult the keyboard(5) manual page. | |
XKBMODEL="logicd" | |
XKBLAYOUT="us" | |
XKBVARIANT="" | |
XKBOPTIONS="terminate:ctrl_alt_bksp" | |
BACKSPACE="guess" | |
EOF | |
sudo cp /tmp/keyboard /etc/default/keyboard | |
#WIFI COUNTRY | |
sudo perl -p -i -e 's/country=.*$/country=AU/' /etc/wpa_supplicant/wpa_supplicant.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment