I have installed Ubuntu 14.04 server and I need to connect to my WiFi network. How can I connect to my WiFi network using only the command line.
Ubuntu – ubuntu 14.04 connect to a wifi network using command line
14.04wireless
14.04wireless
I have installed Ubuntu 14.04 server and I need to connect to my WiFi network. How can I connect to my WiFi network using only the command line.
Best Answer
First run iwconfig to see if the wireless extensions are enabled.
If you are informed that there is a card, for example wlan0 and wireless interface is recognized as you are going to:
Second to view the available wireless networks run iwlist
Networks will show at your fingertips. Note the proper ESSID, which then need to enter.
Third, knowing the ESSID and the network password, run:
In the last command, the s: is to indicate that what is below is a sequence of characters.
If the key is in hexadecimal numbers put the key starting with 0x:
Fourth, you must request an IP address from the DHCP server, or by ifconfig if you give the IP, netmask, gateway, etc.:
The steps can be automated script:
A simple text file with the following content:
Control + O. save file. Control + X, close nano.
And you give execute permissions and add the system startup: