How To Connect To A WPA Wifi Using Command Lines On Debian
How To Connect To A WPA Wifi Using Command Lines On DebianThis tutorial will explain how to connect to a WPA (1-2) wireless network without installing any graphical tool. I assume that your wireless drivers are activated in the kernel and that your card is detected in Linux with the command: ifconfig -a Mine is identified by wlan0 but that may change for you. For the others let's install wpa support now if you don't have it (you probably have it if you got a graphical interface): aptitude search wpasupplicant If there is an "i" in front of wpasupplicant, then it's installed otherwise do: aptitude install wpasupplicant Then we will configure a network, so we create and modify the configuration file: vim /etc/wpa_supplicant.conf Complete the file to make it look like that (replacing wifi_name and wifi_key by their real values of course). Press "i" to be able to edit. network={
ssid="wifi_name"
psk="wifi_key"
}
Then exit and save (press escape then :wq). The wifi network is now configured, we must now tell that we want to connect to it using this configuration file. wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext If your interface isn't named wlan0 then replace wlan0 by the real name of your interface. dhclient wlan0 If everything gone well you now see several lines containing some IP addresses and the command ping should work. This tutorial is now over, I hope you enjoyed it and it was helpful.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning







Recent comments
9 hours 53 min ago
11 hours 54 min ago
15 hours 5 min ago
17 hours 24 min ago
18 hours 34 min ago
19 hours 53 min ago
23 hours 56 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 18 hours ago