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 ...
随机推荐
- Guava学习笔记:Google Guava 类库简介
http://www.cnblogs.com/peida/tag/Guava/ Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, cachin ...
- rpm常用命令
* 手动安装 rpm 包 `rpm-ivh xxxxx.rpm` 参数: --force 即使覆盖其他包的文件也没强迫安装 --nodeps 即使依赖包没安装,也被强制安装 * 查看 rp ...
- 在 Boolan 网开讲《网络编程实战》课程
<网络编程实战>是一门以讲解实例为主的课程,每一节都讲一两个网络编程的例子程序,课程偏重 Linux 服务端 TCP 网络编程. 本课程要求听课人员已经读过<Unix 网络编程> ...
- js获取新浪天气接口
<!doctype html> <html class="no-js fixed-layout"> <head> <meta charse ...
- [PHP] Xhprof 非侵入式使用指南
一般使用 Xhprof ,按文档操作可以快速上手,文件头开启 Xhprof,应用结束处得到访问的url查看. 这种使用方式可以快速看到效果,同时也有一些不好的地方: 一是不利于重复利用写好的示例代码: ...
- [03]APUE:文件 I/O
[a] open #include <fcntl.h> int open(const char *path, int oflag, ... ,mode_t mode) 成功返回文件描术符, ...
- com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败。
com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登录失败. at com.microsoft.sqlserver.jdbc.SQLSe ...
- LeetCode OJ-- Single Number II **@
有一列数,其中有1个数出现了1次,其它数都出现了3次,求这个数. class Solution { public: int singleNumber(int A[], int n) { ) ; ; ; ...
- C#引用类型(class)和值类型(struct)
1. 值参数 当利用值向方法传递参数时,编译程序给实参的值做一份拷贝,并且将此拷贝传递给该方法.被调用的方法不传内存中实参的值,所以使用值参数时,可以保证实际值是安全的. using System; ...
- MySQL 分区表
转载自MySQL 分区表 今天统计数据的时候发现一张表使用了表分区,借此机会记录一下. 1. 什么是表分区? 表分区,是指根据一定规则,将数据库中的一张表分解成多个更小的,容易管理的部分.从逻辑上看, ...