Overview
vi /etc/network/interfaces
auto lo iface lo inet loopback auto wlp2s0 iface wlp2s0 inet static address 192.168.1.11 netmask 255.255.255.0 gateway 192.168.1.1 wpa-ssid ic dns-nameserver 8.8.8.8 192.168.1.1 wpa-psk хеш пароля
wpa_passphrase ic MySecretPassphrase
и вставляем хеш пароля
sudo service networking restart