Update with new version of armbian, version used: Armbian_5.69_Orangepilite_Debian_stretch_next_4.19.13
Set up wifi with the menu armbian-config
1. Network -> IP -> DHCP
2. Network -> Wifi -> Select your SSID and enter the password if necessary
Back to the shell check if you received an ip address with ipconfig -a
For WPA you still need to edit the network configuration, prepare it with wpa_passphrase using your SSID and WLAN password:
root@orangepilite:~# wpa_passphrase mySSIDhere myPasswordHere
network={
ssid="mySSIDhere"
#psk="myPasswordHere"
psk=04817c03bb5fd9d1c6d561a881f192da77501b47d0ac80598eb44191c603c516
}
root@orangepilite:~#
Then write the network configuration using the psk value:
echo "# Local loopback
auto lo
iface lo inet loopback
# Wlan
auto wlan0
iface wlan0 inet dhcp
wpa-ssid yourSSIDhere
wpa-psk 04817c03bb5fd9d1c6d561a881f192da77501b47d0ac80598eb44191c603c516" > /etc/network/interfaces
Also write the WLAN registration domain (replace it with your region):
echo "REGDOMAIN=CH" > /etc/default/crda
Then add a DNS server (usually your router, often 192.168.0.1) to the resolv.conf:
echo "nameserver 192.168.0.1" > /etc/resolv.conf
Now you should be able to resolve addresses with nslookup, e.g:
root@orangepilite:~# nslookup 8.8.8.8
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
8.8.8.8.in-addr.arpa name = google-public-dns-a.google.com.
Authoritative answers can be found from:
root@orangepilite:~#
That's it.
No comments:
Post a Comment