Skip to content

Instantly share code, notes, and snippets.

@damoclark
Last active January 22, 2017 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damoclark/480d00018512e2b7822c93ecec31a68c to your computer and use it in GitHub Desktop.
Save damoclark/480d00018512e2b7822c93ecec31a68c to your computer and use it in GitHub Desktop.
Shell script to configure Raspbian Jessie for Queensland Australia
#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