Last active
January 19, 2019 04:27
-
-
Save RezhaBlue/13e535b27445007d53464f1b1dfc26da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# setup wifi | |
# | |
# BACKUP: sudo cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak | |
# DEBUG: `sudo iwlist wlan0 scan` | |
echo "country=US" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf | |
echo "" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf | |
echo "$WIFI_PASSWORD" | wpa_passphrase "$ESSID" >> sudo /etc/wpa_supplicant/wpa_supplicant.conf | |
wpa_cli -i wlan0 reconfigure | |
# DEBUG: `ifconfig wlan0` | |
# DEBUG: `ping google.com` | |
# | |
# update everything | |
sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove | |
# | |
# change keyboard layout to us | |
sed -i "s#^\(XKBLAYOUT=\).*#\1"\""us"\""#" /etc/default/keyboard | |
# | |
# change passwd | |
echo "pi:$NEW_PASSWORD" | sudo chpasswd > /dev/null 2>&1 | |
# | |
# get fim to view images | |
# sudo apt-get install fim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment