The simplest raspberry PI WiFi configuration

Source: Internet
Author: User

 Setting up Wi-Fi with the Command lineSIMON MONKThis tutorial works best if your router is broadcasting the SSID. Make sure the "broadcast SSID" set up on your router! This could not work with "private" SSID setups

Setting up WiFi in occidentalis, is also pretty straight forward. You just need to add the name of your wireless network (its SSID) and your password to a configuration file.

Step 1.

Boot the Raspberry Pi without the WiFi adapter plugged in.

Step 2.

Open a Terminal session by clicking on the Lxterminal icon, and enter the following command into it:

Copy Code
    1. sudo nano /etc/network/interfaces
Copy Code
    1. auto lo
    2.  
    3. iface lo inet loopback
    4. iface eth0 inet DHCP
    5.  
    6. allow-hotplug wlan0
    7. auto wlan0
    8.  
    9.  
    10. Wpa-ssid span class= "str" > "SSID"
    11. Wpa- PSK "password"
If you are using a ' hidden ' SSID, try the following (Hat-tip tohttp://www.dafinga.net/2013/01/how-to-setup-raspberry-pi-w ith-hidden.html)

Copy Code
  1. Auto Lo
  2. Iface Lo inet Loopback
  3. Iface eth0 inet DHCP
  4. Auto wlan0
  5. Allow-hotplug wlan0
  6. Iface Wlan0 inet DHCP
  7. WPA-Scan-SSID 1
  8. WPA-AP-Scan 1
  9. WPA-Key-Mgmt WPA-PSK
  10. WPA-Proto RSN WPA
  11. WPA-pairwise CCMP TKIP
  12. WPA-Group CCMP TKIP
  13. WPA-SSID "My Secret SSID"
  14. WPA-PSK "My SSID PSK"
  15. Iface default inet DHCP

Step 3.

This opens a editor screen of the WiFi configuration file, need to change.

The places where you need to make a change is on the last of the lines. The change of the file so it looks like this:

Of course, you should put in your network and password! Note that you need to keep the double-quote characters around your wireless network name and password.

This kind of editor does not let you use the mouse. Instead, use the cursor keys to move around the file.

Step 4.

When you have finished press [Ctrl]x. This would ask if you want to save the modified files.

Press ' Y ' and then Return to save the file with the same name.

Step 5.

Shut down your Raspberry Pi, plug the Wi-Fi adapter in and start it up again. You should find, the Raspberry Pi connects using the WiFi adapter as it boots up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.