Difference between revisions of "Iwconfig: akses dengan wpa"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 9: | Line 9: | ||
pastikan tidak ada interface wifi yang di block | pastikan tidak ada interface wifi yang di block | ||
− | sudo systemctl stop NetworkManager | + | # sudo systemctl stop NetworkManager |
− | |||
==Cek WiFi== | ==Cek WiFi== |
Revision as of 10:23, 2 January 2021
Sumber: https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant
Lakukan rfkill
apt install rfkill rfkill list
pastikan tidak ada interface wifi yang di block
# sudo systemctl stop NetworkManager
Cek WiFi
iwconfig
Jika di perlukan untuk up
sudo ifconfig wlp2s0 up
Scan
sudo iwlist wlp2s0 scan | grep ESSID sudo iwlist wlp2s0 scan
Set wpa_supplicant
sudo apt install wpasupplicant
wpa_passphrase your-ESSID your-passphrase | sudo tee /etc/wpa_supplicant.conf wpa_passphrase diamankan 1234567890 | sudo tee /etc/wpa_supplicant.conf
Connect
Ini akan connect, tapi tidak dapat IP address
sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlp2s0
Ini akan connect, dan akan request IP address
sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp2s0 sudo dhclient wlp2s0