Hello all it has been a while since I posted anything. It is sometimes hard for me to come up with subjects to talk about, but alas! i have found some information that may be useful. In my quest for new gadgets and electronics, i have recently purchased a Raspberry PI. One thing that i purchased along with it was an Edimax Wireless adapter. Now connecting to a network using WIFI in linux is not as simple as a wired connection. Once plugging in the adapter, you should ensure that your drivers are up to date for your wireless card. This can affect how you are able to connect to your wireless network.

      Now not everyone keeps there home network wide open without security. If you do, please reconsider changing your router settings to use WEP / TKIP for securing your network. Once you are setup with your router with the security strength you desire. open a terminal session to your Linux server and type 

     $ iwlist wlan0 scan

This will scan for wireless networks using your wirless card. If you are unsure of the name of your wireless card you can type:

     $ ifconfig

This should output a list of your adapters including wired connections, and output their current connection state. Once you have received your available wireless networks you can now connect to your wireless network using the SSID that you get from iwlist output and the PSK or pre-shared key that you get from your wireless network router. If you are using a Debian flavor of Linux, you can edit your /etc/network/interfaces file and add the following settings​

​   auto wlan0

  iface wlan0 inet dhcp

  wpa-ssid “NAME OF YOUR WIFI”

  wpa-psk “YOUR PSK”​​

  #wpa-proto WPA — optional setting if needed your can uncomment this

  #wpa-pairwise TKIP — optional setting if needed your can uncomment this

  #wpa-group TKIP — optional setting if needed your can uncomment this

  #wpa-key-mgmt WPA-PSK — optional setting if needed your can uncomment this

The commented lines can be used to set the protocol for which your linux box will connect to your wireless network. In short this would be the settings of the type of encryption used to connect to your wireless network. I have found though that the first 4 lines are the basic essentials needed to connect to your wireless network, and work the majority of the time.

I hope this post helps you with setting up your wireless card. If you have questions or comments, feel free to let me know. Also feel free to check out my new blog at 

http://www.mjd-design.net/blog

Advertisements