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 ...
随机推荐
- Ubuntu 14.04 server ssh 远程服务遇到的一点事儿
ubuntu server 14.04 root@ubuntu:/# lsb_release -aNo LSB modules are available.Distributor ID: Ubuntu ...
- 让padding、border等不占据宽度
box-sizing:border-box; -moz-box-sizing:border-box; /* Firefox */ -webkit-box-sizing:border-box; /* S ...
- shell---变量自增
我所知道的,bash中,目前有五种方法:1. i=`expr $i + 1`;2. let i+=1;3. (( i++ ));4. i=$[ $i+1 ];5. i=$(( $i + 1 ))
- jsp中,个别乱码进行转码操作
来自大神 if(xh!=null && xh!=""){ xhmc =new String(xh.getBytes("ISO-8859-1"), ...
- android接收短信——framework处理流程(android 5.1)
modem层不懂,所以直接从RIL.java开始.以电信卡接收短信为例 modem通知RIL.java中的 RILReceiver处理接收信息 class RILReceiver implements ...
- CSS position绝对定位absolute relative
常常使用position用于层的绝对定位,比如我们让一个层位于一个层内具体什么位置,为即可使用position:absolute和position:relative实现. 一.position语法与结 ...
- Android LayoutInflater原理分析,带你一步步深入了解View(一)
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/12921889 有不少朋友跟我反应,都希望我可以写一篇关于View的文章,讲一讲Vi ...
- webform 之LINQde 简单操作
LinQ: LinQ to Sql类它是一个集成化的数据访问类,微软将原本需要我们自己动手去编写的一些代码,集成到了这个类中,会自动生成. 数据库数据访问,能大大减少代码量. 那就是代码量减少 EF框 ...
- Android应用程序Monkey测试
Monkey是Android SDK中附带的一个测试工具:Monkey用于进行压力测试,软件开发人员结合monkey打印日志和系统日志,解决测试中出现的问题. Monkey测试的特点:所有事件都是随机 ...
- STM32 使用DMA+DAC+TIMER 输出正弦波
之前已经简单论述过,根据我个人菜鸟的了解与认识,对之前的知识进行整理回顾: DMA:我的理解就是一个通道,或者是一座桥梁.在静态内存到静态内存,或者外设到静态内存间的一个通讯的通道.建立这个通道的好处 ...