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 ...
随机推荐
- 利用Kinect将投影变得可直接用手操控
Finally 总算是到了这一天了!假期里算法想不出来,或者被BUG折磨得死去活来的时候,总是YY着什么时候能心情愉快地坐在电脑前写一篇项目总结,今天总算是抽出时间来总结一下这神奇的几个月. 现在回过 ...
- Linux默认权限的计算公式(个人理解性的笔记~)
先记下Linux下的权限可以分为 常见的 r(Read,读取):对文件,读取文件内容的权限:目录来说,具有浏览目 录的权限.权限值=4 w(Write,写入):对文件而言,具有新增.修改文件内容的权限 ...
- 记一次PHP7+opcache+zmq出现SIGSEGV 问题的查找(一次不成功的bug查找)
Title: 记一次PHP7+opcache+zmq出现SEGSEGV问题的查找(一次不成功的bug查找) bug来历自述:线上代码PHP环境是5.2,为了提升性能(逼格),于是升级为PHP7并使用 ...
- XE3随笔19:实例 - 借用 Google 实现全文翻译
调用 Google 翻译的地址格式: http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=" + ...
- keepalived健康检查方式
keepalived对后端realserver的健康检查方式主要有以下几种: TCP_CHECK:工作在第4层,keepalived向后端服务器发起一个tcp连接请求,如果后端服务器没有响应或超时,那 ...
- js定义多行字符串
js本身没有提供类似的定义方式,但是可以通过多行注释(/* */),已经借助function的方式来达到多行字符的定义,例如代码: var jstr = function() { var fun = ...
- 安装Openfile环境和组件XMPP
打开ProFTPD和Apache Web Server 安装Openfile 在系统偏好设置中打开Openfile,开启Openfile状态 在safair浏览器中输入127.0.0.1:9090 配 ...
- 移动端前端笔记 — 遇到的常见JS与CSS问题及解决方法 ( 摘自zdwzdwzdw)
笔者接触移动前端快一年了,特将平时的一些笔记整理出来,希望能够给需要的人一些小小的帮助.同时也由于笔者的水平有限,虽说都是笔者遇到过使用过的,但文中可能也会出现一些问题或不严谨的地方,望各位指出,不胜 ...
- Caused by: java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapVOS_v2_1_3: findLibrary returned nu
我是在整合百度LBS服务与百度语音识别服务的时候遇到这个问题的........ 解决办法是:不要导armeabi-v7a这个文件夹即可. 貌似还有的人试一下以下这种方法(这种方法来自:http://w ...
- Java String字符串方法
1.String构造函数 1> String() 2> String(char[] chars) String(char[] chars,int startIndex,int numCha ...