This tutorial works best if your router is broadcasting the SSID. Make sure you have "Broadcast SSID" set up on your router! This may 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. iface lo inet loopback
  3. iface eth0 inet dhcp
  4. allow-hotplug wlan0
  5. auto wlan0
  6. iface wlan0 inet dhcp
  7. wpa-ssid "ssid"
  8. 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-with-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 an editor screen of the wifi configuration file you need to change.

The two places where you need to make a change are on the last two lines. Change the file so that 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 will 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 WiFi adapter in and start it up again. You should find that the Raspberry Pi connects using the WiFi adapter as it boots up.

最新文章

  1. scrapy 知乎用户信息爬虫
  2. jquery 监听常用监听方法
  3. 该用 QGraphicsView ? QtQuick-QML ?
  4. JavaScript中的直接量与初始器的区别
  5. 讽刺的是,我在linux下使用最多的命令,竟然是windows的
  6. 运行hexo提示/usr/bin/env: node: 没有那个文件或目录
  7. 最全的Android源码目录结构详解(转)
  8. [WinForm] VS2010发布、打包安装程序(超全超详细)
  9. ListView 使用
  10. 第三十八篇、给UITabBar按钮的动画效果
  11. Java web 项目搭建
  12. MySQL 慢查询配置
  13. cocos2dx中Action汇总
  14. HDU5734 Acperience(数学推导)
  15. iptables系列
  16. PAT甲级1049 Counting Ones【规律】
  17. k8s学习笔记之八:存储卷
  18. Iris框架源码阅读和分析
  19. 洛谷P2680 运输计划
  20. 【R】自定义函数方法

热门文章

  1. jdbc.properties各种数据库连接配置
  2. iOS 工程功能实现之好用的第三方
  3. Android Fragment 深度解析
  4. windows字符串
  5. js根据ID修改背景图片
  6. 与String有关的强制转换
  7. 设计模式学习笔记-Adapter模式
  8. 如何让一个json文件显示在表格里
  9. Python【2】-列表和元组
  10. markdown语法书