So i've just installed FreeBSD on my computer.
Preparation:
So, to get started for WIFI, i first need to plug in a wire, and install some of the tools required to enable WIFI.pkg install -y wpa_supplicant
Once this is installed, lets remove the wire, so we can be sure the next internet connection will be using the WIFI.
Saving the WIFI config
Is quite simple, we're using the just installed wpa_password tool, passing the AP-Name and its password, and redirect the output to a file:wpa_password APNAME PaSSwoRd >> /etc/wpa_supplicant.conf
Enable WIFI for startup
Basicly, you just need to get the device from the output of:
ifconfig | grep -B3 -i wireless
And save it to: /etc/rc.conf
wlans_ath0="wlan0" ifconfig_wlan0="WPA SYNCDHCP"
Or you cold type this:
WLAN=`ifconfig | grep -B3 -i wireless | grep ^[ai]|awk '{print $1}'`
echo "wlans_${WLAN/:}=wlan0
ifconfig_wlan0=\"WPA SYNCDHCP\"" >> /etc/rc.conf
Enable WIFI
To get it right away:
service netif restart
Or simply reboot to verify everything worked well.
Sources:
https://www.freebsd.org/doc/handbook/network-wireless.htmlhttp://www.wonkity.com/~wblock/docs/html/wireless.html