Network On Lfs
To connect to a wireless network on LFS, we should read some content from BLFS.
First, we need install Net-tools, which contains the
Install Wireless Tools for
Install libnl and openssl for wpa_supplicant.
wpa_passphrase SSID SECRET_PASSWORD > /etc/wpa_supplicant.conf
Using the following command to connect:
wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dnl80211,wext sleep 2 # let it settle dhcpcd
If you cannot see the wireless interface with
iwconfig after rebooting, you may need to
recompile your Kernel with proper wireless device driver. Use
lspci | grep -i net to check
which wireless device you are using.