Hello Raspberry Pi
Raspberry Pi 入手好一段时间了,原意是想撸 linux,但是后来一整年都在忙孩子房子户口本子的事,这玩意也就搁了一年尘。
最近终于被生活折腾到了尾声,开始找一些东西来折腾折腾。
一、什么是 Rsapbbery Pi
Raspberry Pi 是一款信用卡大小,基于 Linux 的卡片电脑,700MHz CPU,B Pi 升级为 512(A Pi 256 内存)。UK pi 定价 B Pi 35 刀(A Pi 25 刀),天朝版 B Pi 约 300 软妹B。
Raspberry Pi 基金的定位是提供给学生的学习机,没想到发行之后在 Geek 手上大放异彩。
总结来说 Raspberry Pi 的特点:
1. 便宜,出厂价约等于成本价,目前盈利仅满足于基金会日常运作
2. 麻雀虽小,五脏俱全,号称世界上最小电脑
3. 可塑性强,Raspberry Pi 提供的仅仅是一个原型,看看 Geek 都用它来做什么:
- Web 服务器:http://www.penguintutor.com/linux/raspberrypi-webserver
- 家庭自动化:http://www.instructables.com/id/Raspberry-Pi-GPIO-home-automation/
- BitTorrent 服务器:http://blog.snapdragon.cc/raspberry-pi-as-bittorrent-server/
- Web Cam 服务器:http://www.raspberrypi.org/archives/tag/webcam
- 天气预报站:http://blog.retep.org/2012/07/30/installing-a-usb-weather-station-on-a-raspberry-pi-part-1/
- BitCoin Wallet:https://bitcointalk.org/index.php?topic=93724.0
- QuadCopter:http://hackaday.com/2012/12/01/raspberry-pi-quadcopter/
- VoIP PBX:http://www.raspberry-asterisk.org/
- XMBC 多媒体中心:http://hackaday.com/2012/11/19/raspberry-pi-reaches-critical-mass-as-xbmc-hardware/
- 有声书籍播放器:http://hackaday.com/2012/11/01/one-button-audiobook-player-made-from-a-raspberry-pi/
- Arduino Shields:http://www.cooking-hacks.com/index.php/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge
- NAS 服务器:http://elinux.org/R-Pi_NAS
- Apple Time Machine 支持:http://www.andadapt.com/2012/09/06/raspberry-pi-raspbian-hfs-afp-and-time-machine/
- Tor 中继:http://lifehacker.com/5953155/use-a-raspberry-pi-as-a-tor-relay-and-help-others-browser-anonymously
- 家用 VPN 服务器:http://wellsb.com/post/29412820494/raspberry-pi-vpn-server
- GPS 跟踪器(带 3G 支持):http://www.milos.ivanovic.co.nz/blog/252
- Advice Machine(无用但很酷):http://hackaday.com/2012/09/26/machine-offers-cheap-advice-charges-more-for-something-profound/
- 模拟输入:http://hackaday.com/2012/09/14/a-truly-professional-raspi-analog-input/
- 超级电脑:http://www.southampton.ac.uk/~sjc/raspberrypi/
- Kindle 作为显示屏:http://www.ponnuki.net/2012/09/kindleberry-pi/
- PIC Programmer:http://holdenc.altervista.org/rpp/
- PenTesting/Hacking:http://blog.pwnieexpress.com/post/24967860602/raspberry-pwn-a-pentesting-release-for-the-raspberry
- Android 系统:http://www.raspberrypi.org/archives/1700
- 检查网络状态:https://wiki.bitlair.nl/Pages/Projects/Netlight
- Solar 数据记录器:http://www.briandorey.com/post/Raspberry-Pi-Solar-Data-Logger.aspx
- 把我发到太空:http://www.daveakerman.com/?p=592
- 咖啡:http://moccapi.blogspot.co.uk/2012/03/idea.html
- 制作一个酷坦克:http://blog.ianrenton.com/raspberry-tank-build-diary/
- 电子相框:http://www.cjb.im/2012/06/raspberry-pi-wireless-display-using.html
- 添加 WiFi:http://pingbin.com/2012/12/setup-wifi-raspberry-pi/
- OpenSource Kiosk:http://pikiosk.tumblr.com/
- Node JS:http://elsmorian.com/post/23474168753/node-js-on-raspberry-pi
- 流量监视:http://www.thepowerbase.com/2012/12/integreen-brings-open-source-traffic-monitoring-to-italy/
- 超频:http://www.jeremymorgan.com/tutorials/raspberry-pi/how-to-overclock-raspberry-pi/
二、准备
硬件:
1.Raspberry Pi,建议 B 型(512 内存 + 网卡插槽),国产 Pi 方便
2.tf 卡 + tf 转 sd 卡套,建议 class10,速度好一些
3.sd 读卡器,用于烧卡
4.电源线 5v,通过 MicroUSB 或 GPIO 头
5.网线一条
6.usb 无线网卡一个(可选),注意型号,兼容列表http://elinux.org/RPi_VerifiedPeripherals#USB_Wi-Fi_Adapters
软件:
1.Win32DiskImager 用来烧卡
2.操作系统镜像 地址为 http://www.raspberrypi.org/downloads
- NOOBS 新手包,包括了几个 OS,可以随时切换
- Raspbian 基于 Debian,官方推荐
- OpenELEC/RaspBMC 多媒体中心
- Arch
- Risc OS
3.ssh 客户端
- PuTTY,For PC
- ServerAuditor,For IPad
- Irssi ConnectBot,For Android 手机
三、系统安装
- 下载镜像,推荐 Raspbian
- 用读卡器把 tf 卡插到 PC 上,用 Win32DiskImager 把镜像烧到 tf 卡
- 把读卡器插到 Raspberry Pi 的 sd 卡槽,接上网线,电源线,系统就会自动启动
- 取得 Raspberry Pi 的 ip 地址,可以进路由器查,也可以用 arp 工具扫
- Raspbian 已经默认安装 ssh 服务并启动,直接用 ssh 客户端连接到 Raspberry Pi,用户名和密码是 pi,raspberry
四、系统初始化
1.打开 Raspberry Pi 高级设置面板:sudo raspi-config
- Expand Filesystem:扩展 sd 卡可用空间(建议)
- Change User Passwork:修改用户密码,看个人喜好
- Enable Boot To Desktop/Scratch:选择默认启动高桌面 GUI /命令行界面
- Internationlisation Options:
- Change Locale:修改编码,选择 en_US.UTF-8、zh_CN.UTF-8、zh_CN.GBK
- Change Timezone:修改时区,选择 Asia/Shanghai
- Change Keuboard Layout:修改键盘布局,选择 English(US)
2.升级系统和软件 upgrade,update,一个漫长的等待...
3.时间同步,Raspberry Pi 没有实时时钟,靠网络同步时间
安装 ntpdate,在 rc.local 文件添加开机同步时间命令,保存退出
4.安装远程桌面,需要安装 xrdp,然后就可以用 windows 的远程桌面来直接远程,登录名就是 pi,raspberry
linux 下的桌面意义并不大(耗性能),偶尔用来配置些东西(比如无线网卡)还是挺方便的
5.无线网卡配置
- 配置 WiFi
- 远程桌面登录
- WiFi Config > Manage Networks > Add
- SSID 输入 WiFi 连接,Authentication 选择 WPA2-Persional(PSK),Encryption 选择 CCMP,需与路由器配置对应,PSK 输入 WiFi 密码,保存
- 每次开机启动,绑定指定 IP
- 打开 rc.local 文件
- 添加命令 /sbin/ifconfig wlan0 192.168.10.121 broadcast 192.168.10.121 netmask 255 .255.255.0 up,保存退出
- 插入无线网卡,拔掉网线,重新接上电源线
五、接下来撸什么
ftp 服务
web 服务(mono + jexus)
nginx,lvs,keepalived ...
redis,memcached,mongoDB,hdfs ...
golang,lua ...
Hello Raspberry Pi的更多相关文章
- 让Mono 4在Raspberry Pi上飞
最近公司有项目想要在树莓派上做,代替原来的工控机(我们是把工控主机当作小的主机用,一台小的工控主机最少也要600左右,而树莓派只要200多).于是,公司买了一个Raspberry Pi B+和一个Ra ...
- Kali v2.1.2 for Raspberry Pi 3B
最新的下载地址是: https://www.offensive-security.com/kali-linux-arm-images/ 按照官网的说法是找不到树莓派版本的SHA1SUM和SHA1SUM ...
- A new comer playing with Raspberry Pi 3B
there are some things to do for raspberry pi 3b for the first time: 1, connect pi with monitor/KB/mo ...
- Windows Iot:让Raspberry Pi跑起来(1)
首先请大家原谅我的"不务正业",放着RabbitHub不写,各种系列的文章不写搞什么Iot,哈哈,最近心血来潮想搞个速度极快的遥控车玩,望着在角落的Raspberry Pi恶狠狠的 ...
- 【转】【Raspberry Pi】Unix NetWork Programming:配置unp.h头文件环境
一.初衷 近期正在做网络计算编程的作业.要求平台为unix/linux,想着Raspberry Pi装的Debian系统也是Linux改的,也应该能够勉强用着,所以就用它来做作业了! 二.说明 先把环 ...
- 【Raspberry Pi】新入手的Raspberry Pi3拼装日志
一.概述 2016年暑假某宝入手Raspberry Pi 3,装机清单: 树莓派主板 亚克力外壳 小风扇 散热片 30G SD card 螺丝若干颗 因机型问题,可能与你的机器有微小差异 二.装机过程 ...
- 【树莓派】【转】将树莓派Raspberry Pi设置为无线路由器(WiFi热点AP,RTL8188CUS芯片)
下文为转载,文章转自:http://wangye.org/blog/archives/845/,仅供本次学习实践参考. 最近又开始折腾起Raspberry Pi来了,因为某处上网需要锐捷拨号,于是我就 ...
- 最简单的RASPBERRY PI wifi配置
Setting up Wifi with the Command Line SIMON MONK This tutorial works best if your router is broad ...
- RASPBERRY PI 外设学习资源
参考: http://www.siongboon.com/projects/2013-07-08_raspberry_pi/index.html Raspberry Pi Get st ...
- Raspberry Pi UART with PySerial
参考:http://programmingadvent.blogspot.hk/2012/12/raspberry-pi-uart-with-pyserial.html Raspberry Pi UA ...
随机推荐
- MVC5+EF6 Code First 从零开始——第一章
一直在用Database First 突然感觉关系复杂的时候,生成json经常出现死循环,不够灵活. 今天正好是周五,不太忙就想试试code first吧,试了2次,终于有结果. ok废话不多说,先撸 ...
- HTML5.dcloud.io-stream-app
dcloud.io提出的Stream App 本文仅仅是关于dcloud.io提出的SteamApp初探,所有内容请参考其官网. 1. Application promotion by scaning ...
- C++使用继承时子对象的内存布局
C++使用继承时子对象的内存布局 // */ // ]]> C++使用继承时子对象的内存布局 Table of Contents 1 示例程序 2 对象的内存布局 1 示例程序 class ...
- jsp文件引入js文件的方式(项目部署于web容器中)
在页面中引入javascript文件的方式是多种多样的,本文介绍两种. 通过<script>标签插入js文件 通过这种方式引入的js,写对js文件和jsp文件的路径很重要.下面给出一个项目 ...
- 安装ubuntu系统
1. CTRL+ALT+F2 由图形界面进入命令行界面 ALT+CTRL+F7切换到图形界面 2. ubuntu12.04不会在安装时确定root的密码,需要你在后来更改密码有其他方法更改文件:在终端 ...
- 03-Swift常量&变量
什么是常量和变量 在Swift中规定:在定义一个标识符时必须明确说明该标识符是一个常量还是变量 使用let来定义常量,定义之后不可以修改 使用var来定义变量,定义之后可以修改 常量和变量的基本使用 ...
- javascript语言精粹摘要
JavaScript中五种基本类型:string,number,boolean,null,undefined.还有一个对象类型object. javascript只有一个数字类型.它在内部被表示为64 ...
- arcgis操作笔记-根据属性提取某区域要素
1. 提取
- silverLight--绑定数据dataGrid
后台代码编写 ,为表格绑定数据: using System; using System.Collections.Generic; using System.Linq; using System.Net ...
- css3之多列