-
-
Save franklinjavier/0f5781a9bccc99a235a1 to your computer and use it in GitHub Desktop.
Connect to the network automatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARQUIVO#1: init/start.sh | |
| #!/bin/bash | |
| sudo wpa_supplicant -D wired -i eno1 -c wpa_supplicant.conf & | |
| sudo dhclient eno1 | |
| ARQUIVO#2: init/wpa_supplicant.conf | |
| ctrl_interface=/var/run/wpa_supplicant | |
| ctrl_interface_group=0 | |
| ap_scan=0 | |
| eapol_version=2 | |
| network={ | |
| key_mgmt=IEEE8021X | |
| eap=PEAP | |
| phase2="auth=MSCHAPV2" | |
| identity="user" | |
| password="XXXXXXXX" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. salvar a congfiguracao em /etc/wpa_supplicant.conf | |
| ctrl_interface=/var/run/wpa_supplicant | |
| ctrl_interface_group=0 | |
| ap_scan=0 | |
| eapol_version=2 | |
| network={ | |
| ssid="" | |
| scan_ssid="" | |
| key_mgmt=IEEE8021X | |
| eap=PEAP | |
| phase2="auth=MSCHAPV2" | |
| identity="LOGIN" | |
| password="SENHA" | |
| } | |
| 2. colocar trecho abaixo no /etc/rc.local (antes do exit 0): | |
| wpa_supplicant -D wired -i eth0 -c /etc/wpa_supplicant.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment