Thursday, September 2, 2021

Wifi setup from command line on linux

 1. find the wireless interface (starting with w)


ip a


2. To check the configuration of the wireless interface


sudo iwconfig


2. make sure the wireless interface is up


sudo ip link set w___ up


3. find the ESSID of available for connection


sudo iwlist w___ scan | grep ESSID


4.1 Connect to the ESSID of your choice ( yyy )


sudo iwconfig w___ essid yyy


4.2 If it's password-protected then use


sudo iwconfig w___ essid yyy key s:zzz


(Here "s:" is used for string, while "zzz" is your key)


5. Setting up dhcp


sudo dhclient w___


6. check the connection to the internet


ping 8.8.8.8




No comments: