Debian
Network Setup
Edit /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto wlan0
iface wlan0 inet static
# iface wlan0 inet dhcp
# Omit the following 5 lines if using dhcp; or 7 lines if using eno1
address <address>
netmask <netmask>
network <network>
broadcast <broadcast>
gateway <gateway>
wpa-ssid <wpa-ssid>
wpa-psk <wpa-psk>
To get wpa-psk
$ wpa_passphrase Your-WiFi-Name-SSID <passphrase>