Portal:MicroOS/WifiSetup
Wifi Setup
If you're running MicroOS in a device with wifi support the steps below would help you to setup wifi.
Checking if wlan is present
Running the command below will show all your network interfaces. To be able to setup wifi, the interface wlan0 should be present in the output
ip link show
Configuring wlan0
Turn the interface up:
ip link set wlan0 up
Check if your network is being listed when running iwconfig:
iwlist wlan0 scan
Now create a new file /etc/wpa_supplicant/wpa_supplicant.conf with the following content:
network={ ssid=âyour_network_nameâ psk=âpasswordâ }
If you don't want to put your plain password in this file, check this other tutorial about how to encrypt your password within wpa_supplicant.
Start and enable the wpa_supplicant service:
systemctl enable --now wpa_supplicant@wlan0.service
Since currently eth0 has dhcp already configured, let's just copy the file and change the name to wlan0:
cd /etc/sysconfig/network cp ifcfg-eth0 ifcfg-wlan0
Restart the network service in order to make wlan0 to have a proper ip:
systemctl restart network
Now once MicroOS boots, wlan0 will be setup automatically.