最简单的RASPBERRY PI wifi配置

Setting up Wifi with the Command Line

 SIMON MONK

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.

最简单的RASPBERRY PI wifi配置,布布扣,bubuko.com

时间: 2024-12-13 11:14:33

最简单的RASPBERRY PI wifi配置的相关文章

RASPBERRY PI wifi配置

Raspberry Pi 手把手教你在树莓派上安装USB无线网卡支持WIFI 树莓派虽然已经有了有线网卡,但是并未配置无线网卡,移动性不够强,好在机器配备了2个USB口,当然要分一个出来给WIFI无线网卡使用了,这样小派使用起来就更便利了!我手头有个NetCore磊科NW336无线网卡,非常便宜的那种,好像芯片是Realtek的,插入USB口试试,发现网卡上的指示灯会闪烁,感觉有戏,马上登陆系统折腾:(一)查看USB设备类型,寻找USB无线网卡是否已经被系统识别.运行lsusb[email pr

树莓派(Raspberry Pi)搭建简单的lamp服务

树莓派(Raspberry Pi)搭建简单的lamp服务: 1. LAMP 的安装 sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql –安装mysql.apache.php sudo chmod 777 /var/www/ –设置web目录的权限 2. phpmyadmin 安装 sudo apt-get install phpmyadmin –安装后选择apache2 3.配置 sudo

将树莓派Raspberry Pi设置为无线路由器(WiFi热点AP,RTL8188CUS芯片)

本文是基于在某东购买的usb无线网卡(RTL8188CUS芯片)来制作无线热点.本来想制作一个一键脚本.只是先把实现的过程记录下来. 參考文章 Turn Your Raspberry Pi Into a WiFi Hotspot with Edimax Nano USB EW-7811Un (RTL8188CUS chipset) Why won't dnsmasq's DHCP server work when using hostapd? 1.更新系统,安装须要的软件 我们首先须要更新系统.

树莓派进阶之路 (012) - 关于Raspberry Pi树莓派无线网卡配置

Raspberry Pi树莓派无线网卡配置[多重方法备选] 要想让树莓派方便操作,肯定需要配置无线网卡,这样可以大大增强树莓派的移动性和便利性,其实配置无线网卡基本就是和普通linux平台下配置无线网卡一样,几种方法大同小异,具体如下: 一.第一种方法:通过配置 /etc/network/interfaces 文件实现sudo nano /etc/network/interfaces修改后文件内容如下:auto lo iface lo inet loopbackiface eth0 inet d

【树莓派】【转】将树莓派Raspberry Pi设置为无线路由器(WiFi热点AP,RTL8188CUS芯片)

下文为转载,文章转自:http://wangye.org/blog/archives/845/,仅供本次学习实践参考. 最近又开始折腾起Raspberry Pi来了,因为某处上网需要锐捷拨号,于是我就想能不能让我的树莓派代劳,当然首先要将其改造为路由器,默认自带的网口作为WAN口,我们还缺一个网口,木有办法,只好占用一个USB口,接上一个USB网卡,网上的USB转RJ45网线口的适配器比较少,价格也不便宜,于是就考虑干脆将其改造成无线路由,也符合时下高端大气上档次的标准. 准备工作,当然要先去购

Turn Your Raspberry Pi Into a WiFi Hotspot with Edimax Nano USB EW-7811Un (RTL8188CUS chipset)

http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/ Posted by dconroy on Jul 10, 2013 in How To's, Raspberry Pi | 142 comments | 143,087 views I’m writing this blog to help anyone wi

树莓派raspberry pi配置

(1)国际化语言 树莓派初装系统之后,首次启动会出现“raspi-config”工具,如下图:(若不是初次启动,在命令模式下,请输入 sudo raspi-config 命令,即可调出此界面.若在图形桌面下,打开桌面的 LXT 客户端,输入 sudo raspi-config 命令也可以调出这个工具.   1.如上图,通过键盘上下键,将蓝条,移动到第 4 步“Internationalisation Options”,回车进入,会出现下图:   2.如上图,“Change Locale“,就是汉

从零开始搭建Raspberry Pi机器视觉编程环境

从零开始搭建Raspberry Pi机器视觉编程环境 本文主要包括如下内容: 安装Raspbian系统 连接和设置网络 安装中文支持 用电脑控制树莓派 通过SSH远程登录树莓派命令行界面 安装VNC远程登录树莓派图形桌面 通过串口连接树莓派 安装OpenCV及相关开发包 一键备份树莓派SD卡 1 安装Raspbian系统 拿到树莓派后第一件事当然是装系统.安装树莓派系统所需配置: 1个输出5V,>700mA(通常选择1A或2A)的USB电源适配器 1根micro USB线(安卓线) 1张拷贝好系

Raspberry pi,一个好玩的派:第八季 Raspbmc(下)

上一季安装好Raspbmc就等着这一季好好玩耍呢.我们要在这一季中完成如下任务:调整分辨率.连接wifi并在无线路由器中设置固定IP.手机遥控Raspbmc.改变语言为中文.远程访问Raspberry pi.安装插件(add-ons).观看中文电影.这么多有趣的任务,让我们现在就开始吧! 零.新装备 前几季作为Raspberry pi显示器的是家里的电视,每周日.三.五被老爸征用去看CBA,所以我就需要把我8年前的老古董液晶显示器改造成Raspberry pi的显示设备,老显示器没有HDMI接口