[Kubuntu]: Connect To Wireless Through Command Line

KDE 4.3 once again gave me a hard time. KNetworkManager crashed every time I tried to run it. It has something to do with segmentation fault.

Frustrated, I decided to find a way to connect to wireless using command line. After long hours of Googling, I found the solution.

First, you need to list available interfaces:

shidi@euphoria:~$ sudo iwlist scanning

and this will show something similar to the following:

lo        Interface doesn’t support scanning.

eth0      Interface doesn’t support scanning.

eth1      Scan completed :
Cell 01 – Address: 00:97:3G:G1:17:D4
ESSID:”MYNETWORK”
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.412 GHz (Channel 1)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=77/100  Signal level=-49 dBm
Extra: Last beacon: 364ms ago

pan0      Interface doesn’t support scanning.

Continue reading “[Kubuntu]: Connect To Wireless Through Command Line” »