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 ...
随机推荐
- 初试Nodejs——使用keystonejs创建博客网站1(安装keystonejs)
我正在阿里云上创建一个简单的个人博客网站,刚好正在尝试NodeJs,决定找一款基于NodeJs的CMS来完成这个工作,最后找到了KeyStoneJS. KeyStoneJS是基于Express和Mon ...
- Python 9X9乘法口诀表
#乘法口诀 for i in range(1,10): for j in range(1,i+1): print ( j,'*',i,'=',j*i,'',' ',end='') print(end= ...
- 第一章 jQuery基础方法回顾
jQuery即JavaScript,它是一个.js文件(官网下载).使用时须将jQuery库的声明写在HTML文档的head标签里. 章节内容: 1.选择DOM节点 2.延迟的JavaScript的执 ...
- extjs学习之Ext.selection.CheckboxModel
Ext.onReady( function() { var store=Ext.create('Ext.data.Store', { storeId:'simpsonsStore', fields:[ ...
- ExtJs 获取Dom对象
对象指页面上的某一部分,如:Input等.我觉得在EXT JS中会有三类基本对象,htmlelement , EXT.Element和CompositeElement .分别解释一下: htmlele ...
- 异步I/O操作
今天在看boost库的时候注意到异步I/O操作时,缓冲区有效性问题. 如何实现异步操作:以异步读操作为例async_read(buffer, handler): void handler() {} v ...
- doT.js源码解读
doT.js非常的简洁.全部代码也就200行不到.它的基本思路就是通过强大的正则表达式,把模块转变成可执行的函数,动态生成html字符串.核心new Function(c.varname, str); ...
- 准备熟悉Kaggle -菜鸟进阶
原文链接http://www.bubuko.com/infodetail-525389.html 1.Kaggle简介 Kaggle是一个数据分析的竞赛平台,网址:https://www.kaggle ...
- iOS开发-automaticallyAdjustsScrollViewInsets属性
iOS开发-automaticallyAdjustsScrollViewInsets属性 Available in iOS 7.0 and later. 简单点说就是automaticallyAdju ...
- 转载:JAVA中关于set()和get()方法的理解及使用
对于JAVA初学者来说,set和get这两个方法似乎已经很熟悉了,这两个方法是JAVA变成中的基本用法,也是出现频率相当高的两个方法. 为了让JAVA初学者能更好的理解这两个方法的使用和意义,今天笔者 ...