Connect Pi to WiFi
#iwconfig
# sudo iwlist wlan0 scan
update /etc/wpa_supplicant/wpa_supplicant.conf for open wifi
network={
ssid="testing"
key_mgmt=NONE
}
or the output of this command if use psk
# wpa_passphrase "<SSID>" "<SSIDpassword>"
see
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
Check if you can connect
# sudo wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
#sudo /etc/init.d/networking restart
------------------
Time sync
- Open rc.local filesudo nano /etc/rc.local
- add following line to the rc.local filesudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
- reboot the Rpisudo reboot
source: https://raspberrypi.stackexchange.com/questions/47542/raspberry-pi-wont-update-time
-----------------
go to or create /etc/apt/apt.conf.d/10proxy then add
Acquire::http::Proxy "http://username:password@host:port";
Comments
Post a Comment