最简单的RASPBERRY PI wifi配置
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:
- sudo nano /etc/network/interfaces
- auto lo
- iface lo inet loopback
- iface eth0 inet dhcp
- allow-hotplug wlan0
- auto wlan0
- iface wlan0 inet dhcp
- wpa-ssid "ssid"
- wpa-psk "password"
- auto lo
- iface lo inet loopback
- iface eth0 inet dhcp
- auto wlan0
- allow-hotplug wlan0
- iface wlan0 inet dhcp
- wpa-scan-ssid 1
- wpa-ap-scan 1
- wpa-key-mgmt WPA-PSK
- wpa-proto RSN WPA
- wpa-pairwise CCMP TKIP
- wpa-group CCMP TKIP
- wpa-ssid "My Secret SSID"
- wpa-psk "My SSID PSK"
- 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.
最新文章
- scrapy 知乎用户信息爬虫
- jquery 监听常用监听方法
- 该用 QGraphicsView ? QtQuick-QML ?
- JavaScript中的直接量与初始器的区别
- 讽刺的是,我在linux下使用最多的命令,竟然是windows的
- 运行hexo提示/usr/bin/env: node: 没有那个文件或目录
- 最全的Android源码目录结构详解(转)
- [WinForm] VS2010发布、打包安装程序(超全超详细)
- ListView 使用
- 第三十八篇、给UITabBar按钮的动画效果
- Java web 项目搭建
- MySQL 慢查询配置
- cocos2dx中Action汇总
- HDU5734 Acperience(数学推导)
- iptables系列
- PAT甲级1049 Counting Ones【规律】
- k8s学习笔记之八:存储卷
- Iris框架源码阅读和分析
- 洛谷P2680 运输计划
- 【R】自定义函数方法