├── .gitignore
├── LICENSE
├── README.md
├── content
├── 34 个使用 Raspberry Pi 的酷创意 — LinuxTOY.html
├── 35 美元电脑 Raspberry Pi 的故事.html
├── 90元打造树莓派的HIFI播放器,追求音质看过来,耳放很配....html
├── ArchLinux的pacman下载巨慢无比怎么办?手动更换镜像站教程.html
├── Debian Wheezy Raspberry Pi minimal image.html
├── DesignSpark新增四个Raspberry Pi国语视频教程 » DesignSpark.html
├── Java ME Embedded 3.3 on Raspberry Pi (EA).html
├── Linux Convert an MP3 File to WAV Format.html
├── Linux下minicom的配置和使用方法_儒雅_百度空间.html
├── RPi Text to Speech (Speech Synthesis).html
├── RPi打造超简易家居监控网站.html
├── RaspCTL--将树莓派打造成视频机顶盒--支持优酷,迅雷,PPS等....html
├── Raspberry Pi 24小时 全攻略.html
├── Raspberry Pi VPN Server.html
├── Raspberry Pi 入手安装配置 (有图有真相).html
├── Raspberry Pi 常见的技術问题 » DesignSpark.html
├── Raspberry Pi 没想到自己会那么成功.html
├── Raspberry Pi 的远端操作好助手.html
├── Raspberry Pi(树莓派)的GPIO接口控制步进电机.html
├── Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地.html
├── Raspberry Pi 入手初始化记录.html
├── Raspberry Pi变身媒体播放中心(增加遥控和BT).html
├── Raspberry Pi基本设定、编译核心,上网.html
├── Raspberry Pi夏日之初体验.html
├── Raspberry Pi安装 Archlinux.html
├── Raspberry Pi实作项目 - 语音识别.html
├── Raspberry Pi常见问题的解决方法.html
├── Raspberry Pi开发板介绍.html
├── Raspberry Pi普通话版本教学视频全纪录(十个) » DesignSpark.html
├── Raspberry Pi的GPIO端口控制入门.html
├── Raspberry Pi的折腾.html
├── Raspberry Pi的集成传感器应用.html
├── Raspberry Pi编程工具Scratch.html
├── Raspberry pi分享赢大奖文章汇总.html
├── Raspberry_Pi上运行Android系统 » DesignSpark.html
├── Raspberry Pi入手设置教程_BH3NVN_新浪博客.html
├── Raspbian apt.html
├── Raspbian中国用户定制版发布!!!.html
├── Raspbian系统中文化(中文支持、中文字体、中文输入法).html
├── Swift Board - 中国的树莓派?.html
├── VNC远程登录树莓派的图形界面(桌面环境)[一帖完结].html
├── Weston on Raspberry Pi.html
├── XBIAN设置中文教程_树莓派Raspberry Pi试玩.html
├── XMBC——你HTPC的最佳伴侣 » DesignSpark.html
├── [Raspbian] 使用 UART 作为 Raspberry Pi 的终端 » Technical Blog.html
├── [分享]树莓派新版和旧版GPIO对应关系.html
├── [多图]廉价迷你Linux机器Raspberry Pi详解_cnBeta 硬件新闻_cnBeta.COM.html
├── [翻译完成] 树莓派搭建hadoop集群 - 文盲在编码 - 开源中国社区.html
├── debian 无线命令配置(WAP2)_在路上_百度空间.html
├── iwlwifi.html
├── linux超级终端minicom的使用方法.html
├── minicom使用介绍 [TurboLinux知识库].html
├── raspberry-gpio-python.html
├── webiopi README.html
├── xbmc-addons-chinese.html
├── 【多图+视频】连接Raspberry pi 设备Top10.html
├── 三步实现在 Raspberry Pi 上运行 JavaFX 应用.html
├── 为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net.html
├── 乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法.html
├── 使用 Raspberry Pi 远程桌面.html
├── 使用 ip tunnel 建立 VPN » Technical Blog.html
├── 使用webiopi控制树莓派的GPIO引脚电平(WEB在线管理).html
├── 使用树莓派制作的远程开门器.html
├── 修改raspbian的源,加速apt-get.html
├── 关于 Raspberry Pi 的 30+ 个超酷的点子.html
├── 关于“3D打印Raspberry Pi便携式电脑”的拓展阅读.html
├── 在Raspberry Pi 的Raspbian 操作系统上安装中文环境.html
├── 在树莓派上启用samba服务(在电脑与pi间互传文件)Raspberry Pi.html
├── 在树莓派上安装使用硬件看门狗防止树莓派死机.html
├── 基于Raspberry Pi的便携式电脑Pi to go » DesignSpark.html
├── 对树莓派 Raspberry Pi 进行超频测试 - 开源中国 OSChina.NET.html
├── 将树莓派作为自己的软件代码托管服务器!!!.html
├── 将树莓派作为自己的软件代码托管服务器!!!Raspberry Pi.html
├── 将树莓派变成一个FM的音频发射器!!!.html
├── 将树莓派变成打印机服务器!!!!!.html
├── 将树莓派变成打印机服务器!!!!!_1.html
├── 尝尝树莓派.html
├── 帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi.html
├── 开发一个Raspberry Pi 之上的基本操作系统【完整教程】.html
├── 把树梅派配置为无线路由器.html
├── 提供丰富Raspberry Pi资源的网站介绍 » DesignSpark.html
├── 新鲜树莓派 你属哪一派.html
├── 树莓派(Raspberry Pi)USB无线网卡配置方法.html
├── 树莓派(raspberry pi)播放FM收音机(音频流).html
├── 树莓派+USB摄像头+Yeelink.html
├── 树莓派+fedora.html
├── 树莓派Raspberry Pi靠谱系统Xbian使用指南.html
├── 树莓派wiki.html
├── 树莓派个人实测 Q&A(最新修改使用windows连接远程桌面).html
├── 树莓派使用说明.html
├── 树莓派内核编译教程.html
├── 树莓派内核编译教程_1.html
├── 树莓派可用的迅雷离线下载程序,分享给大家!.html
├── 树莓派无线控制开关,开启智能家居的第一步.html
├── 树莓派无线监控小车菜鸟教程!!!! - 树莓派 - 开发者问答.html
├── 树莓派最简便的系统安装方法BerryBoot(一)安装debian.html
├── 树莓派系统(raspbian)安装XBMC的方法.html
├── 树莓派通过软件实现GPIO的pwm(PiSoftPwm).html
├── 树莓派配置网络.html
├── 树莓派|LOFTER.html
├── 派上如何收听在线广播呢.html
├── 用树莓派做个街机.html
├── 用树莓派构建你自己的微型服务器,可以外网访...Raspberry Pi.html
├── 系统镜像写入工具USB Image Tool(比win32diskimager好10000倍!!).html
├── 给树莓派安装红外接收管并控制XBMC.html
├── 绝对不要在树莓派上使用无源的HDMI→VGA视频转换器!.html
├── 自定义树莓派的显示分辨率.html
├── 解决XBMC中文乱码_Sunny Beach_百度空间.html
├── 适用于树莓派的ARM版Arch Linux发布,提供该系统下载.html
├── 通过Raspberry Pi(树莓派)的GPIO接口控制发光二极管.html
├── 通过网页远程控制树莓派的GPIO.html
└── 配置Xbian,并用NodeJS搭建一个Hexo的极简BLOG(连载一).html
├── index.html
├── index2.html
├── js
├── common.js
├── jquery-1.11.1.js
├── strapdown.css
├── strapdown.js
└── themes
│ ├── bootstrap-responsive.min.css
│ ├── bootstrap.min.css
│ └── united.min.css
├── lastcontent
├── 34 个使用 Raspberry Pi 的酷创意 — LinuxTOY.html
├── 35 美元电脑 Raspberry Pi 的故事.html
├── 90元打造树莓派的HIFI播放器,追求音质看过来,耳放很配....html
├── ArchLinux的pacman下载巨慢无比怎么办?手动更换镜像站教程.html
├── Debian Wheezy Raspberry Pi minimal image.html
├── DesignSpark新增四个Raspberry Pi国语视频教程 » DesignSpark.html
├── Java ME Embedded 3.3 on Raspberry Pi (EA).html
├── Linux Convert an MP3 File to WAV Format.html
├── Linux下minicom的配置和使用方法_儒雅_百度空间.html
├── RPi Text to Speech (Speech Synthesis).html
├── RaspCTL--将树莓派打造成视频机顶盒--支持优酷,迅雷,PPS等....html
├── Raspberry Pi 24小时 全攻略.html
├── Raspberry Pi VPN Server.html
├── Raspberry Pi 入手安装配置 (有图有真相).html
├── Raspberry Pi 常见的技術问题 » DesignSpark.html
├── Raspberry Pi 没想到自己会那么成功.html
├── Raspberry Pi 的远端操作好助手.html
├── Raspberry Pi(树莓派)的GPIO接口控制步进电机.html
├── Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地.html
├── Raspberry Pi 入手初始化记录.html
├── Raspberry Pi变身媒体播放中心(增加遥控和BT).html
├── Raspberry Pi基本设定、编译核心,上网.html
├── Raspberry Pi夏日之初体验.html
├── Raspberry Pi安装 Archlinux.html
├── Raspberry Pi实作项目 - 语音识别.html
├── Raspberry Pi常见问题的解决方法.html
├── Raspberry Pi开发板介绍.html
├── Raspberry Pi普通话版本教学视频全纪录(十个) » DesignSpark.html
├── Raspberry Pi的GPIO端口控制入门.html
├── Raspberry Pi的折腾.html
├── Raspberry Pi的集成传感器应用.html
├── Raspberry Pi编程工具Scratch.html
├── Raspberry pi分享赢大奖文章汇总.html
├── Raspberry_Pi上运行Android系统 » DesignSpark.html
├── Raspberry Pi入手设置教程_BH3NVN_新浪博客.html
├── Raspbian apt.html
├── Raspbian中国用户定制版发布!!!.html
├── Raspbian系统中文化(中文支持、中文字体、中文输入法).html
├── Swift Board - 中国的树莓派?.html
├── VNC远程登录树莓派的图形界面(桌面环境)[一帖完结].html
├── Weston on Raspberry Pi.html
├── XBIAN设置中文教程_树莓派Raspberry Pi试玩.html
├── XMBC——你HTPC的最佳伴侣 » DesignSpark.html
├── [Raspbian] 使用 UART 作为 Raspberry Pi 的终端 » Technical Blog.html
├── [分享]树莓派新版和旧版GPIO对应关系.html
├── [多图]廉价迷你Linux机器Raspberry Pi详解_cnBeta 硬件新闻_cnBeta.COM.html
├── debian 无线命令配置(WAP2)_在路上_百度空间.html
├── iwlwifi.html
├── linux超级终端minicom的使用方法.html
├── minicom使用介绍 [TurboLinux知识库].html
├── raspberry-gpio-python.html
├── webiopi README.html
├── xbmc-addons-chinese.html
├── 【多图+视频】连接Raspberry pi 设备Top10.html
├── 三步实现在 Raspberry Pi 上运行 JavaFX 应用.html
├── 为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net.html
├── 乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法.html
├── 使用 Raspberry Pi 远程桌面.html
├── 使用 ip tunnel 建立 VPN » Technical Blog.html
├── 使用webiopi控制树莓派的GPIO引脚电平(WEB在线管理).html
├── 使用树莓派制作的远程开门器.html
├── 修改raspbian的源,加速apt-get.html
├── 关于 Raspberry Pi 的 30+ 个超酷的点子.html
├── 关于“3D打印Raspberry Pi便携式电脑”的拓展阅读.html
├── 在Raspberry Pi 的Raspbian 操作系统上安装中文环境.html
├── 在树莓派上启用samba服务(在电脑与pi间互传文件)Raspberry Pi.html
├── 在树莓派上安装使用硬件看门狗防止树莓派死机.html
├── 基于Raspberry Pi的便携式电脑Pi to go » DesignSpark.html
├── 对树莓派 Raspberry Pi 进行超频测试 - 开源中国 OSChina.NET.html
├── 将树莓派作为自己的软件代码托管服务器!!!.html
├── 将树莓派作为自己的软件代码托管服务器!!!Raspberry Pi.html
├── 将树莓派变成一个FM的音频发射器!!!.html
├── 将树莓派变成打印机服务器!!!!!.html
├── 将树莓派变成打印机服务器!!!!!_1.html
├── 尝尝树莓派.html
├── 帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi.html
├── 开发一个Raspberry Pi 之上的基本操作系统【完整教程】.html
├── 把树梅派配置为无线路由器.html
├── 提供丰富Raspberry Pi资源的网站介绍 » DesignSpark.html
├── 新鲜树莓派 你属哪一派.html
├── 树莓派(Raspberry Pi)USB无线网卡配置方法.html
├── 树莓派(raspberry pi)播放FM收音机(音频流).html
├── 树莓派+USB摄像头+Yeelink.html
├── 树莓派+fedora.html
├── 树莓派Raspberry Pi靠谱系统Xbian使用指南.html
├── 树莓派wiki.html
├── 树莓派个人实测 Q&A(最新修改使用windows连接远程桌面).html
├── 树莓派使用说明.html
├── 树莓派内核编译教程.html
├── 树莓派内核编译教程_1.html
├── 树莓派可用的迅雷离线下载程序,分享给大家!.html
├── 树莓派无线控制开关,开启智能家居的第一步.html
├── 树莓派无线监控小车菜鸟教程!!!! - 树莓派 - 开发者问答.html
├── 树莓派最简便的系统安装方法BerryBoot(一)安装debian.html
├── 树莓派系统(raspbian)安装XBMC的方法.html
├── 树莓派通过软件实现GPIO的pwm(PiSoftPwm).html
├── 树莓派配置网络.html
├── 树莓派|LOFTER.html
├── 派上如何收听在线广播呢.html
├── 用树莓派做个街机.html
├── 用树莓派构建你自己的微型服务器,可以外网访...Raspberry Pi.html
├── 系统镜像写入工具USB Image Tool(比win32diskimager好10000倍!!).html
├── 给树莓派安装红外接收管并控制XBMC.html
├── 绝对不要在树莓派上使用无源的HDMI→VGA视频转换器!.html
├── 自定义树莓派的显示分辨率.html
├── 解决XBMC中文乱码_Sunny Beach_百度空间.html
├── 适用于树莓派的ARM版Arch Linux发布,提供该系统下载.html
├── 通过Raspberry Pi(树莓派)的GPIO接口控制发光二极管.html
├── 通过网页远程控制树莓派的GPIO.html
└── 配置Xbian,并用NodeJS搭建一个Hexo的极简BLOG(连载一).html
├── logo.jpg
├── md
├── 1.新鲜树莓派你属哪一派.html
├── 2.树莓派搭建hadoop集群[翻译].html
├── 3.树莓派搭建GoogleTV[翻译].html
└── 4.打造超简易家居监控网站.html
├── pdf
├── Raspberry_Pi树莓派用户手册.pdf
└── 比较全的树莓派入门介绍.pdf
└── src
├── 4
├── 4_1.jpg
├── 4_2.jpg
├── 4_3.jpg
├── 4_4.jpg
├── 4_5.jpg
└── RPi_HTTP.zip
├── 1_1.jpg
├── 1_2.jpg
├── 1_3.jpg
├── 1_4.jpg
├── 1_5.jpg
├── 1_6.jpg
├── 1_7.jpg
├── 3_1.jpg
├── 3_2.jpg
├── 3_3.jpg
├── 3_4.jpg
├── 3_5.jpg
├── 3_6.jpg
└── logo.gif
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.sln.docstates
8 |
9 | # Build results
10 | [Dd]ebug/
11 | [Dd]ebugPublic/
12 | [Rr]elease/
13 | x64/
14 | build/
15 | bld/
16 | [Bb]in/
17 | [Oo]bj/
18 |
19 | # MSTest test Results
20 | [Tt]est[Rr]esult*/
21 | [Bb]uild[Ll]og.*
22 |
23 | #NUNIT
24 | *.VisualState.xml
25 | TestResult.xml
26 |
27 | # Build Results of an ATL Project
28 | [Dd]ebugPS/
29 | [Rr]eleasePS/
30 | dlldata.c
31 |
32 | *_i.c
33 | *_p.c
34 | *_i.h
35 | *.ilk
36 | *.meta
37 | *.obj
38 | *.pch
39 | *.pdb
40 | *.pgc
41 | *.pgd
42 | *.rsp
43 | *.sbr
44 | *.tlb
45 | *.tli
46 | *.tlh
47 | *.tmp
48 | *.tmp_proj
49 | *.log
50 | *.vspscc
51 | *.vssscc
52 | .builds
53 | *.pidb
54 | *.svclog
55 | *.scc
56 |
57 | # Chutzpah Test files
58 | _Chutzpah*
59 |
60 | # Visual C++ cache files
61 | ipch/
62 | *.aps
63 | *.ncb
64 | *.opensdf
65 | *.sdf
66 | *.cachefile
67 |
68 | # Visual Studio profiler
69 | *.psess
70 | *.vsp
71 | *.vspx
72 |
73 | # TFS 2012 Local Workspace
74 | $tf/
75 |
76 | # Guidance Automation Toolkit
77 | *.gpState
78 |
79 | # ReSharper is a .NET coding add-in
80 | _ReSharper*/
81 | *.[Rr]e[Ss]harper
82 | *.DotSettings.user
83 |
84 | # JustCode is a .NET coding addin-in
85 | .JustCode
86 |
87 | # TeamCity is a build add-in
88 | _TeamCity*
89 |
90 | # DotCover is a Code Coverage Tool
91 | *.dotCover
92 |
93 | # NCrunch
94 | *.ncrunch*
95 | _NCrunch_*
96 | .*crunch*.local.xml
97 |
98 | # MightyMoose
99 | *.mm.*
100 | AutoTest.Net/
101 |
102 | # Web workbench (sass)
103 | .sass-cache/
104 |
105 | # Installshield output folder
106 | [Ee]xpress/
107 |
108 | # DocProject is a documentation generator add-in
109 | DocProject/buildhelp/
110 | DocProject/Help/*.HxT
111 | DocProject/Help/*.HxC
112 | DocProject/Help/*.hhc
113 | DocProject/Help/*.hhk
114 | DocProject/Help/*.hhp
115 | DocProject/Help/Html2
116 | DocProject/Help/html
117 |
118 | # Click-Once directory
119 | publish/
120 |
121 | # Publish Web Output
122 | *.[Pp]ublish.xml
123 | *.azurePubxml
124 |
125 | # NuGet Packages Directory
126 | packages/
127 | ## TODO: If the tool you use requires repositories.config uncomment the next line
128 | #!packages/repositories.config
129 |
130 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
131 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
132 | !packages/build/
133 |
134 | # Windows Azure Build Output
135 | csx/
136 | *.build.csdef
137 |
138 | # Windows Store app package directory
139 | AppPackages/
140 |
141 | # Others
142 | sql/
143 | *.Cache
144 | ClientBin/
145 | [Ss]tyle[Cc]op.*
146 | ~$*
147 | *~
148 | *.dbmdl
149 | *.dbproj.schemaview
150 | *.pfx
151 | *.publishsettings
152 | node_modules/
153 |
154 | # RIA/Silverlight projects
155 | Generated_Code/
156 |
157 | # Backup & report files from converting an old project file to a newer
158 | # Visual Studio version. Backup files are not needed, because we have git ;-)
159 | _UpgradeReport_Files/
160 | Backup*/
161 | UpgradeLog*.XML
162 | UpgradeLog*.htm
163 |
164 | # SQL Server files
165 | *.mdf
166 | *.ldf
167 |
168 | # Business Intelligence projects
169 | *.rdl.data
170 | *.bim.layout
171 | *.bim_*.settings
172 |
173 | # Microsoft Fakes
174 | FakesAssemblies/
175 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # shumeipai(树莓派)
4 |
5 | 树莓派玩机教程
6 |
7 | 你可以使用你的浏览器访问
8 |
9 | 本资源主页:https://flyher.github.io/shumeipai/index2.html
10 |
11 | MrakDown版本索引页面:https://flyher.github.io/shumeipai/ [未完成]
12 |
13 |
14 | test
15 | ===
16 | 更新时间:2014-07-04
17 |
18 | 更新栏目:
19 |
20 | https://flyher.github.io/shumeipai/index.html
21 |
22 | ===
23 |
24 | 更新时间:2014-06-23
25 |
26 | 更新栏目:
27 |
28 | 1.markdown化开始;
29 |
30 | ===
31 |
32 | 更新时间:2014-04-26
33 |
34 | 更新栏目:
35 |
36 | 1.增加两张资料片,格式pdf(当前资料片114篇)
37 |
38 | 2.有时间我会加个索引pdf输出到html的方法
39 |
40 | ===
41 |
42 | 更新时间:2014-04-23
43 |
44 | 更新栏目:
45 |
46 | 1.删除重复资源;
47 |
48 | 2.索引目录;
49 |
50 | ===
51 |
52 | ## 感谢和声明
53 | ###### 感谢奋斗在树莓派一线的人们
54 | ###### 本资源大部分内容均来自网络,我只是整理、修改和编辑,并未征得原创作者的同意,也无法一一保证所有文章内容的实时性和可操作性。如果你是作者,需要加上版权链接或者需要删除本文你的文章,请Email我删除。
55 | ###### 如果你有什么关于树莓派的玩机资源,你可以Fork该项目,新建Develop分支,添加资源内容的Html和Mrakdown版本(尽量有Mrakdown版本,本资源已经正在转换至Mrakdown版本中),我会尽量及时合并分支。
56 | ###### 为了保证资源质量,请在提交时尽量不要将链接贴在文章中,如需引用参考文档,请使用 标题超链接的形式,并尽量保留原文版权信息。
57 |
58 |
--------------------------------------------------------------------------------
/content/Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地.html:
--------------------------------------------------------------------------------
1 |
Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地1.安装usb摄像头,
http://www.eeboard.com/bbs/thread-1510-1-1.html
2 | 2.安装强大的网络监控软件motion,输入
3 | sudo apt-get install motion (如果安装不了的,可以先sudo apt-get update 一下)
4 | 3.配置motion,编辑motion.conf文件
5 | sudo vi /etc/motion/motion.conf (或者运行sudo xedit /etc/motion/motion.conf)
6 |
7 | 4.找到”control_localhost on “和”webcam_localhost on“这两行,改为以下两行后,保存退出
8 | control_localhost off
9 | webcam_localhost off
10 | 5.运行motion软件,输入
11 | motion -n
12 | 6.在pc上用IE浏览器打开,192.168.99.53是我的树莓派ip,换成你们自己的
13 | 配置网页:
http://192.168.99.53:8080
14 |
15 |
16 |
17 |
18 |
19 |
27 |
28 |
29 |
30 | 监控网页:
http://192.168.99.53:8081
31 |
32 |
33 |
34 |
35 |
36 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/content/Raspbian apt.html:
--------------------------------------------------------------------------------
1 | Raspbian apt
2 | apt-get的速度当然是越快越好了,但是有些时候就是会出现10KB/s甚至更少的速度
3 |
4 | 究其原因,是因为官方放在Raspbian里的软件源地址,其实只是一个跳转入口。
5 | 这个入口根据负载均衡和地理位置考虑,将用户301送到合适的镜像站
6 | 但是跳转既然是机器做的,就不可能100%合适和可靠。别说慢了,偶尔down都有可能。我昨天早晨还刚撞到一次清华的服务器停机了一会儿……
7 |
8 | 碰到这种郁闷情况,可以考虑手工指定一个镜像站代替机器选择。
9 |
10 | 镜像站列表:http://www.raspbian.org/RaspbianMirrors
11 | 然后点击试试,或者ping甚至下载测试都行,总之找个快的。推荐清华大学或者新加坡国立大学的服务器
12 |
17 | 复制下软件源地址,改软件源列表文件:sudo nano /etc/apt/sources.list- # 注释掉原来这行
18 | - #deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
19 |
20 | - # 加入新的一行
21 | - deb 镜像站地址 wheezy main contrib non-free rpi
22 |
复制代码 (Ctrl+X退出,答Yes存盘)
23 |
24 | 修改后务必更新一下软件包列表。如果不更新,install命令会出莫名其妙的问题。
25 | 另外此时也可以看一眼,系统使用的镜像站网址是否和我们修改的一致。
26 | |
--------------------------------------------------------------------------------
/content/debian 无线命令配置(WAP2)_在路上_百度空间.html:
--------------------------------------------------------------------------------
1 | debian 无线命令配置(WAP2)_在路上_百度空间 在有如 gnome/kde/xfce 等图形环境里可以用 networkmanager 或 wicd 来进行图形方式的配置,只是没有通用性。
并且回到终端下无线网络就不可用,也太让人不爽了。
下面介绍用命令行方式来对无线网络进行配置,以我的机器配置为例。
注:1、图形界面的网络配置工具与下面修改文本配置方式冲突,请移除这些软件包。
2、下面无线网络配置使用 WPA2 加密。WEP加密很容易破解,WPA1已经过时。
1、安装驱动
识别网卡
$lspci | grep Wireless
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
安装驱动
$sudo aptitude install firmware-iwlwifi
加载驱动
$sudo modprobe iwl3945
2、安装软件
$sudo aptitude install wireless-tools wpasupplicant
3、收集信息
获取 SSID
$sudo iwlist scan
4、配置无线网络
把下面文件中的 ssid 和 passwd 换成无线网络的 ssid 和密码。
$sudo vim /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid ssid
wpa-ssid ssid
wpa-psk password
5、启用无线网线
$sudo ifup wlan0
#每次重启之后会自动连接无线网络
参考:
http://wiki.debian.org/WiFi/HowToUsehttp://wiki.debian.org/iwlwifihttp://www.cactus.org.cn/2010/05/debian-linux-wifi-config-wpa.html [❤]
--------------------------------------------------------------------------------
/content/为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net.html:
--------------------------------------------------------------------------------
1 | 为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net
2 |
3 |
4 |
5 |
6 |
7 |
来自加拿大 圣力嘉学院 的 CDOT 开放技术开发中心刚刚发布了 Pidora 18 系统。该系统是其专门为树莓派迷你计算机开发的基于 Fedora remix 的系统。Pidora 18 完全基于 ARMv6 架构的 Fedora 软件包。
开发在称,几乎所有 Fedora 软件包都可以在 Pidora 上通过 yum 安装,Pidora 的包是从 Fedora 官方资源库直接构建。同时 Pidora 包含树莓派特定的一些配置模块,包括默认 SD 卡映像、库和外部硬件设备(GPIO/I2C/SPI接口等)的支持都已包含。
同时 Pidora 提供了 headless 模式,可以让用户在无监视器的情况下安装系统,用户只需安装 SD卡,然后在插入 SD 卡钳在启动文件系统中创建名为 headless 的文件。Pidora 也可以通过网路进行安装和管理,详细的教程请看这里。
更多关于 Pidora 18 版本的信息请看 release notes. 该分发版可从项目首页获取,可参考安装指南。
8 |
--------------------------------------------------------------------------------
/content/乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法.html:
--------------------------------------------------------------------------------
1 | 乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法
2 |
树莓派到手的时候,在电视上测试Raspbian和Arch系统的时候,都是没问题的,但是HDMI到VGA转换器到手以后,在22寸1680×1050显示器上面就黑屏。在网上找了一下,需要配置config.txt文件解决。elinux.org上面有一个config.txt配置的说明,这个除了能解决黑屏的问题外,还能为树莓派超频,甚至调电压。地址为http://elinux.org/RPi_config.txt。
3 |
在我们做好的树莓派启动SD卡上面,会有两个分区,一个是Linux分区,在Windows下看不到,一个是FAT分区,在Windows下能看到。在里面有两个文件,分别是cmdline.txt和config.txt。
4 |
要解决黑屏问题需要对config.txt做如下修改:
5 |
6 | - 取消hdmi_force_hotplug=1前面的注释。这是为了强制使用hdmi作为视频输出。
7 | - 取消hdmi_group=2前面的注释,并修改为2。这是为了使用显示器模式输出。
8 | - 取消hdmi_mode=58前面的注释,并修改为58。这个数值需要根据你显示器的分辨率和刷新频率来设置,具体设置成什么参考http://elinux.org/RPi_config.txt。
9 | - 取消config_hdmi_boost=4前面的注释。这个是为了加大HDMI口输出的功率,加强信号。如果前面的设置都不管用的话,在设置这个。
10 |
11 |
保存以后插回树莓派就应该好用了。需要说明的是这个config.txt是一个unix格式的txt文件,也就是说windows的文本编辑器打开它看上去没有换行。你可以使用notepad++或者editplus来修改这个问题。
12 |
13 |
--------------------------------------------------------------------------------
/content/修改raspbian的源,加速apt-get.html:
--------------------------------------------------------------------------------
1 | 修改raspbian的源,加速apt-get
2 |
本帖最后由 hanchao 于 2012-12-15 23:47 编辑
3 |
4 | 使用了一天Raspberry Pi ,发现aspbian系统下载程序实在是慢的无法接受了。今天终于找到一些镜像的源。
5 | 具体可见
6 | http://www.raspbian.org/RaspbianMirrors
7 |
8 | 国内用户推荐使用这两个,我这里测试第一个速度在还可以。第二个是清华大学的,好多人都说不给力,教育网的同学们可以试试。
9 | Asia Singapore NUS School of Computing SigLabs http://mirror.nus.edu.sg/raspbian/raspbian
10 | Asia China Tsinghua University Network Administrators http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
11 |
12 | 更新源的方法
13 | 备份之前的源文件
14 | sudo cp /etc/apt/sources.list /etc/apt/sources.list_bk
15 | 更新源
16 | sudo vi /etc/apt/sources.list
17 | 将默认地址替换成上面的地址
18 |
19 |
20 |
21 |
22 |
23 |
31 |
32 |
33 |
34 | 更新源信息
35 | sudo apt-get update
36 |
37 | 接下来就可以下载软件咯
38 | sudo apt-get install tightvncserver
39 |
40 | 昨天一天没下载完成,现在一会就下好了。

41 | 远程连接成功啦
42 |
43 |
44 |
45 |
46 |
47 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/content/在Raspberry Pi 的Raspbian 操作系统上安装中文环境.html:
--------------------------------------------------------------------------------
1 | 在Raspberry Pi 的Raspbian 操作系统上安装中文环境
2 |
默认的raspbian操作系统是不带中文字库的,所以不能正常显示中文字体
3 |
4 | 我们可以用apt来安装开源字库的安装包 实现中文的显示
5 |
6 | 输入命令
7 | sudo apt-get install ttf-wqy-zenhei
8 | 这条命令安装的是文泉驿的正黑体
9 |
10 | sudo apt-get install ttf-wqy-microhei
11 | 这条命令安装的是文泉驿的微米黑体
12 |
13 | sudo apt-get install ttf-arphic-ukai
14 | 这条命令安装的是文鼎的楷体
15 |
16 | sudo apt-get install ttf-arphic-uming
17 | 这条命令安装的是文鼎的明体
18 |
19 | linux下中文输入法有scim和ibus 2套不同的输入法引擎可以选择
20 |
21 | 我这里用口碑比较好的ibus举例
22 |
23 | 安装ibus 输入法引擎 和 ibus 拼音输入法
24 | sudo apt-get install ibus ibus-pinyin
25 |
26 | 会提示安装一系列的库文件
27 |
28 | 安装完毕后重新启动lxde,可以在屏幕右下角看到ibus的图标.
29 | 右键选择preference ,然后在input method选项卡的select a input method 里面选择Chinese ,然后选pinyin.
30 | 点击add添加拼音输入法,然后点击Close关闭窗口.
31 | 再次点击ibus的图标 可以发现列表里面有拼音输入法可供选择,到这里拼音输入就安装完毕.
本文出自 “爱上树莓派” 博客,请务必保留此出处http://raspberrypi.blog.51cto.com/6262956/1086503
32 |
--------------------------------------------------------------------------------
/content/帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi.html:
--------------------------------------------------------------------------------
1 | 帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi
2 |
3 |
4 |
5 |
6 |
7 |
15 |
16 |
17 |
18 | 1月25日消息,大家对35美金(约合人民币218元)的树莓派电脑板并不陌生,树莓派电脑的相关报道也非常多,它的尺寸只有大约一盒纸牌的样子。它不是大家接触的速度最快的PC机,甚至结构简单的不能说是个事儿,但是,你可以利用这个微型电脑做一些非常有趣好玩的项目,比如今天要给大家介绍的由电池供电的便携式电脑,它便是由树莓派改造而成,且配备微型键盘和显示器。虽然它是由一堆零件拼凑而成,但是俨然一台日常使用的简易PC,非常有意思。
SK Pang Electronic利用一些现成的零件,然后将它们组合起来并放置在一个定制的由激光剪切的底座上,这样就形成了一台便携式Linux PC机,你可以像提着公文包一样带着它。
改造电脑的组件包括一个标准的电池,通过一个USB接口你可以正常地拿它给手机或其他设备充电;一个小的TF显示器,就像你给汽车配对的后视摄像头一样;一个无线迷你键盘,键盘还带有一个内置的触控板,这个键盘可以在亚马逊以27美金(约合人民币168元)的价格购得。
该电脑最复杂的部分莫过于让显示器能够利用电池组提供的电力进行工作,还有分开充电线以同时给显示器和树莓派电脑供电。有兴趣的玩家可以尝试一下哦。
--------------------------------------------------------------------------------
/content/树莓派+USB摄像头+Yeelink.html:
--------------------------------------------------------------------------------
1 | 树莓派+USB摄像头+Yeelink
2 | 5分钟一点也不夸张, 在你熟悉Yeelink使用的情况下, 你真的只需几分钟就可以搭建一套在线图像监控, 神马入室小偷啥的, 还能逃过你的千里眼 当然, 要是使用motion来获取图像, 还能做到画面动作检测, 有兴趣的同学可以继续发挥哦. 废话少说, 来看看几分钟怎么做到的吧.
3 |
4 | 1. 将USB摄像头接到Pi上, 安装驱动, 我所使用的版本(2012-10-28-wheezy-raspbian.img)已经包含了V4L2驱动, 略去xxx字. 有问题的话Google一下
5 | pi@raspberrypi ~ $ ls -l /dev/video0
6 | crw-rw---T 1 root video 81, 0 Jan 1 1970 /dev/video0
7 |
8 | 2. 安装抓图软件fswebcam
9 | pi@raspberrypi ~ $ sudo apt-get install fswebcam
10 |
11 | 3. 登录Yeelink, 在用户中心增加一个设备, 再为之增加一个图像传感器.
12 |
13 | 4. 在/home/pi下准备脚本yeelink.sh, 内容为以下两行命令, 其中的ApiKey和URL请改为自己设备对应的信息.
14 | sudo fswebcam -d /dev/video0 -r 320x240 --bottom-banner --title "RaspberryPi @ Yeelink" --no-timestamp /home/pi/yeelink.jpg
15 | curl --request POST --data-binary @"/home/pi/yeelink.jpg" --header "U-ApiKey: xxxxxxxxxxxxxxxxxxxx" http://api.yeelink.net/v1.0/device/1022/sensor/1294/photos
16 |
17 | 注:上面的命令中,1022和1294分别是设备号和传感器好,U-ApiKey是yeelink账号的APIKEY,如果你使用的话,可以根据自己的情况进行修改
18 |
19 |
20 | 为脚本增加可执行权限
21 | pi@raspberrypi ~ $ chmod +x yeelink.sh
22 |
23 | 5. 将脚本加入cronjob
24 | pi@raspberrypi ~ $ crontab -e
25 |
26 | 加入下面一行, 让脚本每分钟运行一次, 保存退出.
27 | */1 * * * * /home/pi/yeelink.sh
28 |
29 |
30 | 搞定, 至此我们的监控就开始运行了, 上网页上看看效果吧
31 | http://www.yeelink.net/devices/1022 |
--------------------------------------------------------------------------------
/content/树莓派最简便的系统安装方法BerryBoot(一)安装debian.html:
--------------------------------------------------------------------------------
1 | 树莓派最简便的系统安装方法BerryBoot(一)安装debian
2 |
3 | Berry Boot应该是当前最为简便的系统安装方法了,简约而不简单,支持U盘启动,支持添加自定义系统。
4 | 确保SD卡是FAT格式:
5 |
6 | 然后下载Berry Boot的zip包:
7 |
berryboot-20121126.zip
8 |
http://178.63.95.79/dl/berryboot-20121126.zip
9 |
10 | 拷贝解压缩到文件到SD卡的根目录,关闭SD卡目录,安全弹出SD卡。
11 |
12 | 把SD卡插入树莓派,开机,会看到如下欢迎界面
13 |
14 |
15 | 可以设置overscan、网络以及时区等,点击OK
16 |
17 | 这时候出现了目标驱动器界面,没有插入USB闪盘之前,能看到如下两个选项。
18 | mmcblk0就是引导用的SD卡,第二个选项是网盘。
19 |
20 |
21 |
22 | 如果想把系统安装在SD卡上,选择默认的第一个选项,文件系统也是默认的ext4,选择Format
23 |
24 | 如果想把系统安装在USB闪盘,而不是引导的SD卡的话,在这个界面插入USB闪盘,会多出一个驱动器选项:
25 |
26 |
27 |
28 | sda:USB 3.0 Cable 是我用Seagate USB 3.0 to SATA转接头接的一块SSD固态硬盘
29 | 选中多出来的U盘作为目标驱动器,点击Format
30 |
31 | 这时候Berryboot 会开始格式化目标驱动器:
32 |
33 |
34 |
35 |
36 | 格式化成功之后,会自动Mount ext4格式的目标驱动器:
37 |
38 |
39 |
40 |
41 | 稍后会出现系统选项,可以选装心仪的操作系统,我这里先选的debian
42 |
43 |
44 |
45 |
46 | berryboot自动下载最新版本的操作系统,430兆的debian:
47 |
48 |
49 |
50 |
51 | 系统安装完毕重启以后,就会出现操作系统选择界面:
52 |
53 | 因为我们只安装了一个系统,所以也没啥好选的,直接点击boot启动。
54 | 这里要注意,如果用U盘启动的话,SD卡作为引导盘还是要插在树莓派里。
55 |
56 | 第一次进入debian的设置菜单:
57 |

58 |
59 |
60 | 注意这里locale不要选中文,进入系统装完中文字库以后,再改。
61 | timezone是时区设置,boot_behavior 可以调成自动进入图形界面。
62 |
63 | 然后就可以用了:
64 |

65 |
66 |
67 | 默认的用户是pi
68 | 密码是raspberry
69 | 如果默认进命令行模式,输入:
70 | startx
71 | 进入图形用户界面。
72 | 如果想要切换root权限,输入命令: sudo su
--------------------------------------------------------------------------------
/content/树莓派|LOFTER.html:
--------------------------------------------------------------------------------
1 | 树莓派|LOFTER Linus Torvalds 总是让人感兴趣,这不仅因为他是 Linux 的创始人,而且因为他常常语出惊人。当然,这并不是说他和另一位开源领袖 Richard Stallman 一样极端理想主义。Linus Tovalds 是个关注技术的实用主义者(至少他自己是这么说的)。当然,作为 Linux 内核的领导者,他早已不是单纯的技术人员,而是一个很有技巧的管理者了。当人们提到 Linux 发展壮大的原因的时候,不免会将部分原因归结于 Linus 的管理方法。对此,Linus Torvalds 曾说过很有意思的话:
第一、我很懒。
第二、我喜欢授权。
近日 Techradar 网站发布了一篇 Linux Format 对 Linus Torvalds 的采访,涉及的话题众多,我们从中找出一些有意思的言论。
没有厂商预装 Linux
在桌面市场,Linux 并没有取得什么值得骄傲的进展。对此,Linus 认为,技术原因是一方面,但是更大的原因是普通用户不会去安装操作系统,“除非有预装,否则你无法获得桌面……但从现实中看,没有人去预装(Linux)”。有些技术人员由于不满意 KDE 或 Gnome 而放弃了 Linux 桌面,不过,即使他们没有那样做,普通用户也不会使用 Linux 桌面,他们甚至不喜欢计算机。
他对 Gnome 和 KDE 所做的事情并不满意,不过从大方向看,那只是“小细节”。

我对 Linux 商标不感兴趣
Linus 说他对 Linux 商标并不感兴趣,因为那是一件痛苦的事情。商标会鼓励公司做些蠢事,因为律师们认为,如果不那样做的话,他们会失去商标的控制权,“这是狗屎,不过人们花钱雇律师们就是让他们做些混蛋的事情”。他说,有些人会抱怨 Google 和 Ubuntu 不谈“Linux”,只是说“Android”或“Ubuntu”,这让他感觉很有趣。
他说自己对此并不烦恼,因为厂商们那样做并没有什么错。“如果你要做自己的系统,Linux 是核心,但它仍然还是整个系统的一小部分,你不需要因为使用了 Linux 内核,就必须把系统称作 Linux,因此,我实际上并不想去利用商标,另外,我觉得那很愚蠢,因为人们应该给自己的东西重新起名”。
他也会因为商标问题在网上抱怨,和别人争论,因为那是一种宣泄,“争论是我最爱的业余活动,不是编程”。
Android 问题
Android 是基于 Linux 的,但是随着 Android 的发展,内核维护者和 Google 公司产生了分歧,Android 代码一直没有融回 Linux ,成了一个分立的项目,不过从 Linux 3.3 开始,Android 开始逐渐回归 Linux,这是双方逐渐达成一致认识的结果。回顾这段历史的时候,Linus 说,“在 Android 上出现的问题,其实更多是内核开发者的问题,而不是 Google 的问题。在上一次的内核大会上,我们讨论的一个重要问题就是‘我们对 Android 怎么办?’”
Linus 说,许多人和他的看法一样,那就是不喜欢 Android 方法的人是错误的。“Android 做的很好,而且它可用。没有人拿出了 Google 可以接受的可用代码,因为他们的问题是其他人无法解决的。”
Linus 说 Google 内部的内核开发者也讨厌目前这种状况,因此对于 Google来说,也有着把代码融合回去的压力。
安全启动
从 Windows8 开始,微软要求硬件商使用“安全启动”技术,这遭到开源社区的反对,被视为是微软进一步压制 Linux 桌面的举措。
Linus Torvalds 说他其实很喜欢安全启动,其实他们 10 年前也就应该去做,但是没有人想去做,因为有疯狂的反对声音。不过,他也说,安全启动的问题是,微软可以凭借自己的垄断地位,说服硬件商只支持微软的签证,那才是真正让人担心的。这只对微软有利,因此这样的事情应该不会发生。
他说自己其实更担心苹果,比如他们强迫开发者使用沙盒机制。Linux 喜欢苹果的硬件,他使用 Macbook Air,但是不用 OSX,因为“他们会做些蠢事,因此比 PC 更加不便”。
Linux 桌面
Linus 对 Linux 桌面一直不满意。他曾经反对过 Gnome,后来对 KDE 也产生了不满,现在他用的是 Xfce。至于发行版,他用的是 Fedora。他用过 openSUSE,不过对他们的一些做法有些受够了。
对 Linux 桌面不满的原因是,他觉得界面设计者只关注视觉效果,而不是实际操作。“从某种程度上说,界面设计人员看起来只关心界面本身,而不是你实际做的工作”。
Raspberry Pi
Linus 说那是个很有吸引力的想法。他对这样的主意一直喜欢。就是当硬件便宜到一定程度的时候,你可以给孩子们玩,99% 的人可能不会去做什么,但是如果你给予每个人一种去鼓捣电脑关系的可能性,那是很了不起的事情。不过,对于他来说,Raspberry Pi 太慢,而且硬件也太老了。
你会如何改变 Linux?
如果你是 Linus Torvalds,你会如何改变 Linux? “我不会改变任何东西”。
--------------------------------------------------------------------------------
/content/派上如何收听在线广播呢.html:
--------------------------------------------------------------------------------
1 | 派上如何收听在线广播呢
2 | 不知道是搞了啥,或者是装了一下xmms2,现在mplayer能播放mms了,下次做系统的时候再试

3 | 例如现在 mplayer mms://218.106.97.4/xwt -cache 512 最后是指定了缓存,好象默认的不够
--------------------------------------------------------------------------------
/content/自定义树莓派的显示分辨率.html:
--------------------------------------------------------------------------------
1 | 自定义树莓派的显示分辨率hdmi_mode=1 VGA
2 | hdmi_mode=2 480p 60Hz
3 | hdmi_mode=3 480p 60Hz H
4 | hdmi_mode=4 720p 60Hz
5 | hdmi_mode=5 1080i 60Hz
6 | hdmi_mode=6 480i 60Hz
7 | hdmi_mode=7 480i 60Hz H
8 | hdmi_mode=8 240p 60Hz
9 | hdmi_mode=9 240p 60Hz H
10 | hdmi_mode=10 480i 60Hz 4x
11 | hdmi_mode=11 480i 60Hz 4x H
12 | hdmi_mode=12 240p 60Hz 4x
13 | hdmi_mode=13 240p 60Hz 4x H
14 | hdmi_mode=14 480p 60Hz 2x
15 | hdmi_mode=15 480p 60Hz 2x H
16 | hdmi_mode=16 1080p 60Hz
17 | hdmi_mode=17 576p 50Hz
18 | hdmi_mode=18 576p 50Hz H
19 | hdmi_mode=19 720p 50Hz
20 | hdmi_mode=20 1080i 50Hz
21 | hdmi_mode=21 576i 50Hz
22 | hdmi_mode=22 576i 50Hz H
23 | hdmi_mode=23 288p 50Hz
24 | hdmi_mode=24 288p 50Hz H
25 | hdmi_mode=25 576i 50Hz 4x
26 | hdmi_mode=26 576i 50Hz 4x H
27 | hdmi_mode=27 288p 50Hz 4x
28 | hdmi_mode=28 288p 50Hz 4x H
29 | hdmi_mode=29 576p 50Hz 2x
30 | hdmi_mode=30 576p 50Hz 2x H
31 | hdmi_mode=31 1080p 50Hz
32 | hdmi_mode=32 1080p 24Hz
33 | hdmi_mode=33 1080p 25Hz
34 | hdmi_mode=34 1080p 30Hz
35 | hdmi_mode=35 480p 60Hz 4x
36 | hdmi_mode=36 480p 60Hz 4xH
37 | hdmi_mode=37 576p 50Hz 4x
38 | hdmi_mode=38 576p 50Hz 4x H
39 | hdmi_mode=39 1080i 50Hz reduced blanking
40 | hdmi_mode=40 1080i 100Hz
41 | hdmi_mode=41 720p 100Hz
42 | hdmi_mode=42 576p 100Hz
43 | hdmi_mode=43 576p 100Hz H
44 | hdmi_mode=44 576i 100Hz
45 | hdmi_mode=45 576i 100Hz H
46 | hdmi_mode=46 1080i 120Hz
47 | hdmi_mode=47 720p 120Hz
48 | hdmi_mode=48 480p 120Hz
49 | hdmi_mode=49 480p 120Hz H
50 | hdmi_mode=50 480i 120Hz
51 | hdmi_mode=51 480i 120Hz H
52 | hdmi_mode=52 576p 200Hz
53 | hdmi_mode=53 576p 200Hz H
54 | hdmi_mode=54 576i 200Hz
55 | hdmi_mode=55 576i 200Hz H
56 | hdmi_mode=56 480p 240Hz
57 | hdmi_mode=57 480p 240Hz H
58 | hdmi_mode=58 480i 240Hz
59 | hdmi_mode=59 480i 240Hz H
60 | H means 16:9 variant (of a normally 4:3 mode).
61 | 2x means pixel doubled (i.e. higher clock rate, with each pixel repeated twice)
62 | 4x means pixel quadrupled (i.e. higher clock rate, with each pixel repeated four times)
63 | 树莓派一般可以自动检测目标设备的分辨率。
64 | 但对于部分设备,尤其是HDMI-VGA转换器,分辨率可能会明显不对(过大或过小)。
65 | 这时就需要给树莓派指定一个分辨率。
66 |
67 | 更改树莓派前面那个FAT32分区里的config.txt,修改或加入以下项目:- hdmi_group=****
68 | - hdmi_mode=****
69 | - hdmi_ignore_edid=0xa5000080
复制代码 hdmi_group和hdmi_mode的值对应想要调整的分辨率。见1楼和2楼。
70 |
71 | 另外一项“hdmi_ignore_edid”,是命令树莓派不检测HDMI设备的任何信息,只按照我们指定的分辨率输出。
72 | 如果不加,树莓派可能仍会“自作聪明”的检测HDMI设备的分辨率,结果造成我们设置的分辨率无效。
73 |
74 | 注意:如果您使用HDMI-VGA转换器出现以下故障:
75 | |
--------------------------------------------------------------------------------
/content/解决XBMC中文乱码_Sunny Beach_百度空间.html:
--------------------------------------------------------------------------------
1 | 解决XBMC中文乱码_Sunny Beach_百度空间 XBMC是支持中文的,但自身不带中文字体。这也是为什么直接在软件中设置界面为中文,会导致操作界面文字变乱码。
解决乱码的方法就是给他加入中文字体。
解决方法:
1、先找一款喜欢的字体(下面以细黑字体simhei.ttf为例),放到桌面,然后在终端输入下面命令
sudo -i
mv /usr/share/xbmc/media/Fonts/simhei.ttf /usr/share/xbmc/media/Fonts/arial.ttf
说明:重命名simhei.ttf为arial.ttf并替换XBMC安装目录下的arial.ttf字体
将以上命令中的 simhei.ttf 换成要你想用的字体名就可以了
2、打开XBMC,进入SETTING-Appearance----Look and Feel中将Skin Fonts设置为arial,再将 region中的language设置为Chinese simplified即可。
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 | 树莓派
3 |
4 | ####[[目录]](index.html) [[Give me a Star]](https://github.com/flyher/shumeipai) [[返回老版本]](index2.html)
5 |
6 |
7 | ######2014-06-23
8 | [1.新鲜树莓派你属哪一派](md/1.新鲜树莓派你属哪一派.html)
9 | ######2014-07-04
10 | [2.树莓派搭建hadoop集群[翻译]](md/2.树莓派搭建hadoop集群[翻译].html)
11 |
12 | [3.树莓派搭建GoogleTV[翻译]](md/3.树莓派搭建GoogleTV[翻译].html)
13 | ######2014-10-11
14 | [4.打造超简易家居监控网站](md/4.打造超简易家居监控网站.html)
15 |
16 |
17 |
18 | [感谢和声明]
19 | ######1.感谢奋斗在树莓派一线的人们
20 | ######2.本资源大部分内容均来自网络,我只是整理、修改和编辑,并未征得原创作者的同意,也无法一一保证所有文章内容的实时性和可操作性。如果某篇文章侵犯了你的版权,请及时联系我删除。
21 | ######3.如果你有什么关于树莓派的玩机资源,你可以Fork该项目,新建develop分支,向该分支提交内容,应提交的版本为Mrakdown版本,编码为UTF-8,如果你没有好的样式,参考本资源模板,我会尽量及时合并分支。
22 | ######4.太忙了,只能在闲的时候更新了。(2014-08-18)
23 | ######5.本资源的Markdown版本页面适配不同分辨率的浏览器,为了保证资源质量,请严格排版,请在提交时尽量不要将链接贴在文章中。如需引用参考文档,请使用 标题超链接的形式,并尽量保留原文版权信息。感谢各位的提交,本资源一概不接受排版不过关的作品,请理解。(2014-10-11)
24 |
25 |
26 |
27 | © 2014 [flyher@GitHub, Inc.](https://github.com/flyher)
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/index2.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/index2.html
--------------------------------------------------------------------------------
/js/common.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/js/common.js
--------------------------------------------------------------------------------
/js/strapdown.css:
--------------------------------------------------------------------------------
1 |
2 | /*******************************************************************
3 |
4 | This chunk is to fix Bootstrap so that the Markdown output looks good
5 |
6 | *******************************************************************/
7 |
8 | body {
9 | padding-top: 60px;
10 | padding-bottom: 40px;
11 | font-size: 15px;
12 | line-height: 150%;
13 | }
14 |
15 | xmp, textarea {
16 | display: none;
17 | }
18 |
19 | h1,h2,h3,h4 {
20 | margin: 15px 0;
21 | }
22 |
23 | pre {
24 | margin: 20px 0;
25 | }
26 |
27 | img {
28 | margin: 10px 0;
29 | }
30 |
31 | .navbar {
32 | z-index: 1;
33 | }
34 |
35 |
36 | /*******************************************************************
37 |
38 | This chunk is for Google's Code Prettify:
39 | http://google-code-prettify.googlecode.com
40 |
41 | *******************************************************************/
42 |
43 |
44 | /* Pretty printing styles. Used with prettify.js. */
45 |
46 | /* SPAN elements with the classes below are added by prettyprint. */
47 | .pln { color: #000 } /* plain text */
48 |
49 | @media screen {
50 | .str { color: #080 } /* string content */
51 | .kwd { color: #008 } /* a keyword */
52 | .com { color: #800 } /* a comment */
53 | .typ { color: #606 } /* a type name */
54 | .lit { color: #066 } /* a literal value */
55 | /* punctuation, lisp open bracket, lisp close bracket */
56 | .pun, .opn, .clo { color: #660 }
57 | .tag { color: #008 } /* a markup tag name */
58 | .atn { color: #606 } /* a markup attribute name */
59 | .atv { color: #080 } /* a markup attribute value */
60 | .dec, .var { color: #606 } /* a declaration; a variable name */
61 | .fun { color: red } /* a function name */
62 | }
63 |
64 | /* Use higher contrast and text-weight for printable form. */
65 | @media print, projection {
66 | .str { color: #060 }
67 | .kwd { color: #006; font-weight: bold }
68 | .com { color: #600; font-style: italic }
69 | .typ { color: #404; font-weight: bold }
70 | .lit { color: #044 }
71 | .pun, .opn, .clo { color: #440 }
72 | .tag { color: #006; font-weight: bold }
73 | .atn { color: #404 }
74 | .atv { color: #060 }
75 | }
76 |
77 | /* Put a border around prettyprinted code snippets. */
78 | pre.prettyprint { padding: 2px; border: 1px solid #888 }
79 |
80 | /* Specify class=linenums on a pre to get line numbering */
81 | ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
82 | li.L0,
83 | li.L1,
84 | li.L2,
85 | li.L3,
86 | li.L5,
87 | li.L6,
88 | li.L7,
89 | li.L8 { list-style-type: none }
90 | /* Alternate shading for lines */
91 | li.L1,
92 | li.L3,
93 | li.L5,
94 | li.L7,
95 | li.L9 { background: #eee }
96 |
97 |
--------------------------------------------------------------------------------
/js/themes/bootstrap-responsive.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Responsive v2.0.4
3 | *
4 | * Copyright 2012 Twitter, Inc
5 | * Licensed under the Apache License v2.0
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Designed and built with all the love in the world @twitter by @mdo and @fat.
9 | */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}@media(max-width:767px){.visible-phone{display:inherit!important}.hidden-phone{display:none!important}.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}}@media(min-width:768px) and (max-width:979px){.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:18px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-group>label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.modal{position:absolute;top:10px;right:10px;left:10px;width:auto;margin:0}.modal.fade.in{top:auto}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:auto;margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;content:""}.row:after{clear:both}[class*="span"]{float:left;margin-left:20px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:28px;margin-left:2.762430939%;*margin-left:2.709239449638298%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:99.999999993%;*width:99.9468085036383%}.row-fluid .span11{width:91.436464082%;*width:91.38327259263829%}.row-fluid .span10{width:82.87292817100001%;*width:82.8197366816383%}.row-fluid .span9{width:74.30939226%;*width:74.25620077063829%}.row-fluid .span8{width:65.74585634900001%;*width:65.6926648596383%}.row-fluid .span7{width:57.182320438000005%;*width:57.129128948638304%}.row-fluid .span6{width:48.618784527%;*width:48.5655930376383%}.row-fluid .span5{width:40.055248616%;*width:40.0020571266383%}.row-fluid .span4{width:31.491712705%;*width:31.4385212156383%}.row-fluid .span3{width:22.928176794%;*width:22.874985304638297%}.row-fluid .span2{width:14.364640883%;*width:14.311449393638298%}.row-fluid .span1{width:5.801104972%;*width:5.747913482638298%}input,textarea,.uneditable-input{margin-left:0}input.span12,textarea.span12,.uneditable-input.span12{width:714px}input.span11,textarea.span11,.uneditable-input.span11{width:652px}input.span10,textarea.span10,.uneditable-input.span10{width:590px}input.span9,textarea.span9,.uneditable-input.span9{width:528px}input.span8,textarea.span8,.uneditable-input.span8{width:466px}input.span7,textarea.span7,.uneditable-input.span7{width:404px}input.span6,textarea.span6,.uneditable-input.span6{width:342px}input.span5,textarea.span5,.uneditable-input.span5{width:280px}input.span4,textarea.span4,.uneditable-input.span4{width:218px}input.span3,textarea.span3,.uneditable-input.span3{width:156px}input.span2,textarea.span2,.uneditable-input.span2{width:94px}input.span1,textarea.span1,.uneditable-input.span1{width:32px}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;content:""}.row:after{clear:both}[class*="span"]{float:left;margin-left:30px}.container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:28px;margin-left:2.564102564%;*margin-left:2.510911074638298%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145300001%;*width:91.3997999636383%}.row-fluid .span10{width:82.905982906%;*width:82.8527914166383%}.row-fluid .span9{width:74.358974359%;*width:74.30578286963829%}.row-fluid .span8{width:65.81196581200001%;*width:65.7587743226383%}.row-fluid .span7{width:57.264957265%;*width:57.2117657756383%}.row-fluid .span6{width:48.717948718%;*width:48.6647572286383%}.row-fluid .span5{width:40.170940171000005%;*width:40.117748681638304%}.row-fluid .span4{width:31.623931624%;*width:31.5707401346383%}.row-fluid .span3{width:23.076923077%;*width:23.0237315876383%}.row-fluid .span2{width:14.529914530000001%;*width:14.4767230406383%}.row-fluid .span1{width:5.982905983%;*width:5.929714493638298%}input,textarea,.uneditable-input{margin-left:0}input.span12,textarea.span12,.uneditable-input.span12{width:1160px}input.span11,textarea.span11,.uneditable-input.span11{width:1060px}input.span10,textarea.span10,.uneditable-input.span10{width:960px}input.span9,textarea.span9,.uneditable-input.span9{width:860px}input.span8,textarea.span8,.uneditable-input.span8{width:760px}input.span7,textarea.span7,.uneditable-input.span7{width:660px}input.span6,textarea.span6,.uneditable-input.span6{width:560px}input.span5,textarea.span5,.uneditable-input.span5{width:460px}input.span4,textarea.span4,.uneditable-input.span4{width:360px}input.span3,textarea.span3,.uneditable-input.span3{width:260px}input.span2,textarea.span2,.uneditable-input.span2{width:160px}input.span1,textarea.span1,.uneditable-input.span1{width:60px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:18px}.navbar-fixed-bottom{margin-top:18px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 9px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#999;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:6px 15px;font-weight:bold;color:#999;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .dropdown-menu a:hover{background-color:#222}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:block;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:9px 15px;margin:9px 0;border-top:1px solid #222;border-bottom:1px solid #222;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}}
10 |
--------------------------------------------------------------------------------
/lastcontent/Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地.html:
--------------------------------------------------------------------------------
1 | Raspberry Pi-教你用树莓派通过usb摄像头实现网络监控功能!!! - 电子工程师学习交流园地1.安装usb摄像头,
http://www.eeboard.com/bbs/thread-1510-1-1.html
2 | 2.安装强大的网络监控软件motion,输入
3 | sudo apt-get install motion (如果安装不了的,可以先sudo apt-get update 一下)
4 | 3.配置motion,编辑motion.conf文件
5 | sudo vi /etc/motion/motion.conf (或者运行sudo xedit /etc/motion/motion.conf)
6 |
7 | 4.找到”control_localhost on “和”webcam_localhost on“这两行,改为以下两行后,保存退出
8 | control_localhost off
9 | webcam_localhost off
10 | 5.运行motion软件,输入
11 | motion -n
12 | 6.在pc上用IE浏览器打开,192.168.99.53是我的树莓派ip,换成你们自己的
13 | 配置网页:
http://192.168.99.53:8080
14 |
15 |
16 |
17 |
18 |
19 |
27 |
28 |
29 |
30 | 监控网页:
http://192.168.99.53:8081
31 |
32 |
33 |
34 |
35 |
36 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/lastcontent/debian 无线命令配置(WAP2)_在路上_百度空间.html:
--------------------------------------------------------------------------------
1 | debian 无线命令配置(WAP2)_在路上_百度空间 在有如 gnome/kde/xfce 等图形环境里可以用 networkmanager 或 wicd 来进行图形方式的配置,只是没有通用性。
并且回到终端下无线网络就不可用,也太让人不爽了。
下面介绍用命令行方式来对无线网络进行配置,以我的机器配置为例。
注:1、图形界面的网络配置工具与下面修改文本配置方式冲突,请移除这些软件包。
2、下面无线网络配置使用 WPA2 加密。WEP加密很容易破解,WPA1已经过时。
1、安装驱动
识别网卡
$lspci | grep Wireless
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
安装驱动
$sudo aptitude install firmware-iwlwifi
加载驱动
$sudo modprobe iwl3945
2、安装软件
$sudo aptitude install wireless-tools wpasupplicant
3、收集信息
获取 SSID
$sudo iwlist scan
4、配置无线网络
把下面文件中的 ssid 和 passwd 换成无线网络的 ssid 和密码。
$sudo vim /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid ssid
wpa-ssid ssid
wpa-psk password
5、启用无线网线
$sudo ifup wlan0
#每次重启之后会自动连接无线网络
参考:
http://wiki.debian.org/WiFi/HowToUsehttp://wiki.debian.org/iwlwifihttp://www.cactus.org.cn/2010/05/debian-linux-wifi-config-wpa.html [❤]
--------------------------------------------------------------------------------
/lastcontent/为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net.html:
--------------------------------------------------------------------------------
1 | 为树莓派开发的Fedora衍生版Pidora 18发布 - 系统&软件 - 树莓派论坛 - Powered by www.Shumeipai.net
2 |
3 |
4 |
5 |
6 |
7 |
来自加拿大 圣力嘉学院 的 CDOT 开放技术开发中心刚刚发布了 Pidora 18 系统。该系统是其专门为树莓派迷你计算机开发的基于 Fedora remix 的系统。Pidora 18 完全基于 ARMv6 架构的 Fedora 软件包。
开发在称,几乎所有 Fedora 软件包都可以在 Pidora 上通过 yum 安装,Pidora 的包是从 Fedora 官方资源库直接构建。同时 Pidora 包含树莓派特定的一些配置模块,包括默认 SD 卡映像、库和外部硬件设备(GPIO/I2C/SPI接口等)的支持都已包含。
同时 Pidora 提供了 headless 模式,可以让用户在无监视器的情况下安装系统,用户只需安装 SD卡,然后在插入 SD 卡钳在启动文件系统中创建名为 headless 的文件。Pidora 也可以通过网路进行安装和管理,详细的教程请看这里。
更多关于 Pidora 18 版本的信息请看 release notes. 该分发版可从项目首页获取,可参考安装指南。
8 |
--------------------------------------------------------------------------------
/lastcontent/乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法.html:
--------------------------------------------------------------------------------
1 | 乐趣为王 » 树莓派使用HDMI到VGA转换器时黑屏的解决办法
2 |
树莓派到手的时候,在电视上测试Raspbian和Arch系统的时候,都是没问题的,但是HDMI到VGA转换器到手以后,在22寸1680×1050显示器上面就黑屏。在网上找了一下,需要配置config.txt文件解决。elinux.org上面有一个config.txt配置的说明,这个除了能解决黑屏的问题外,还能为树莓派超频,甚至调电压。地址为http://elinux.org/RPi_config.txt。
3 |
在我们做好的树莓派启动SD卡上面,会有两个分区,一个是Linux分区,在Windows下看不到,一个是FAT分区,在Windows下能看到。在里面有两个文件,分别是cmdline.txt和config.txt。
4 |
要解决黑屏问题需要对config.txt做如下修改:
5 |
6 | - 取消hdmi_force_hotplug=1前面的注释。这是为了强制使用hdmi作为视频输出。
7 | - 取消hdmi_group=2前面的注释,并修改为2。这是为了使用显示器模式输出。
8 | - 取消hdmi_mode=58前面的注释,并修改为58。这个数值需要根据你显示器的分辨率和刷新频率来设置,具体设置成什么参考http://elinux.org/RPi_config.txt。
9 | - 取消config_hdmi_boost=4前面的注释。这个是为了加大HDMI口输出的功率,加强信号。如果前面的设置都不管用的话,在设置这个。
10 |
11 |
保存以后插回树莓派就应该好用了。需要说明的是这个config.txt是一个unix格式的txt文件,也就是说windows的文本编辑器打开它看上去没有换行。你可以使用notepad++或者editplus来修改这个问题。
12 |
13 |
--------------------------------------------------------------------------------
/lastcontent/修改raspbian的源,加速apt-get.html:
--------------------------------------------------------------------------------
1 | 修改raspbian的源,加速apt-get
2 |
本帖最后由 hanchao 于 2012-12-15 23:47 编辑
3 |
4 | 使用了一天Raspberry Pi ,发现aspbian系统下载程序实在是慢的无法接受了。今天终于找到一些镜像的源。
5 | 具体可见
6 | http://www.raspbian.org/RaspbianMirrors
7 |
8 | 国内用户推荐使用这两个,我这里测试第一个速度在还可以。第二个是清华大学的,好多人都说不给力,教育网的同学们可以试试。
9 | Asia Singapore NUS School of Computing SigLabs http://mirror.nus.edu.sg/raspbian/raspbian
10 | Asia China Tsinghua University Network Administrators http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
11 |
12 | 更新源的方法
13 | 备份之前的源文件
14 | sudo cp /etc/apt/sources.list /etc/apt/sources.list_bk
15 | 更新源
16 | sudo vi /etc/apt/sources.list
17 | 将默认地址替换成上面的地址
18 |
19 |
20 |
21 |
22 |
23 |
31 |
32 |
33 |
34 | 更新源信息
35 | sudo apt-get update
36 |
37 | 接下来就可以下载软件咯
38 | sudo apt-get install tightvncserver
39 |
40 | 昨天一天没下载完成,现在一会就下好了。

41 | 远程连接成功啦
42 |
43 |
44 |
45 |
46 |
47 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/lastcontent/在Raspberry Pi 的Raspbian 操作系统上安装中文环境.html:
--------------------------------------------------------------------------------
1 | 在Raspberry Pi 的Raspbian 操作系统上安装中文环境
2 |
默认的raspbian操作系统是不带中文字库的,所以不能正常显示中文字体
3 |
4 | 我们可以用apt来安装开源字库的安装包 实现中文的显示
5 |
6 | 输入命令
7 | sudo apt-get install ttf-wqy-zenhei
8 | 这条命令安装的是文泉驿的正黑体
9 |
10 | sudo apt-get install ttf-wqy-microhei
11 | 这条命令安装的是文泉驿的微米黑体
12 |
13 | sudo apt-get install ttf-arphic-ukai
14 | 这条命令安装的是文鼎的楷体
15 |
16 | sudo apt-get install ttf-arphic-uming
17 | 这条命令安装的是文鼎的明体
18 |
19 | linux下中文输入法有scim和ibus 2套不同的输入法引擎可以选择
20 |
21 | 我这里用口碑比较好的ibus举例
22 |
23 | 安装ibus 输入法引擎 和 ibus 拼音输入法
24 | sudo apt-get install ibus ibus-pinyin
25 |
26 | 会提示安装一系列的库文件
27 |
28 | 安装完毕后重新启动lxde,可以在屏幕右下角看到ibus的图标.
29 | 右键选择preference ,然后在input method选项卡的select a input method 里面选择Chinese ,然后选pinyin.
30 | 点击add添加拼音输入法,然后点击Close关闭窗口.
31 | 再次点击ibus的图标 可以发现列表里面有拼音输入法可供选择,到这里拼音输入就安装完毕.
本文出自 “爱上树莓派” 博客,请务必保留此出处http://raspberrypi.blog.51cto.com/6262956/1086503
32 |
--------------------------------------------------------------------------------
/lastcontent/帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi.html:
--------------------------------------------------------------------------------
1 | 帅呆了!Raspberry Pi成功改造完整便携式电脑Raspberry Pi
2 |
3 |
4 |
5 |
6 |
7 |
15 |
16 |
17 |
18 | 1月25日消息,大家对35美金(约合人民币218元)的树莓派电脑板并不陌生,树莓派电脑的相关报道也非常多,它的尺寸只有大约一盒纸牌的样子。它不是大家接触的速度最快的PC机,甚至结构简单的不能说是个事儿,但是,你可以利用这个微型电脑做一些非常有趣好玩的项目,比如今天要给大家介绍的由电池供电的便携式电脑,它便是由树莓派改造而成,且配备微型键盘和显示器。虽然它是由一堆零件拼凑而成,但是俨然一台日常使用的简易PC,非常有意思。
SK Pang Electronic利用一些现成的零件,然后将它们组合起来并放置在一个定制的由激光剪切的底座上,这样就形成了一台便携式Linux PC机,你可以像提着公文包一样带着它。
改造电脑的组件包括一个标准的电池,通过一个USB接口你可以正常地拿它给手机或其他设备充电;一个小的TF显示器,就像你给汽车配对的后视摄像头一样;一个无线迷你键盘,键盘还带有一个内置的触控板,这个键盘可以在亚马逊以27美金(约合人民币168元)的价格购得。
该电脑最复杂的部分莫过于让显示器能够利用电池组提供的电力进行工作,还有分开充电线以同时给显示器和树莓派电脑供电。有兴趣的玩家可以尝试一下哦。
--------------------------------------------------------------------------------
/lastcontent/树莓派+USB摄像头+Yeelink.html:
--------------------------------------------------------------------------------
1 | 树莓派+USB摄像头+Yeelink
2 | 5分钟一点也不夸张, 在你熟悉Yeelink使用的情况下, 你真的只需几分钟就可以搭建一套在线图像监控, 神马入室小偷啥的, 还能逃过你的千里眼 当然, 要是使用motion来获取图像, 还能做到画面动作检测, 有兴趣的同学可以继续发挥哦. 废话少说, 来看看几分钟怎么做到的吧.
3 |
4 | 1. 将USB摄像头接到Pi上, 安装驱动, 我所使用的版本(2012-10-28-wheezy-raspbian.img)已经包含了V4L2驱动, 略去xxx字. 有问题的话Google一下
5 | pi@raspberrypi ~ $ ls -l /dev/video0
6 | crw-rw---T 1 root video 81, 0 Jan 1 1970 /dev/video0
7 |
8 | 2. 安装抓图软件fswebcam
9 | pi@raspberrypi ~ $ sudo apt-get install fswebcam
10 |
11 | 3. 登录Yeelink, 在用户中心增加一个设备, 再为之增加一个图像传感器.
12 |
13 | 4. 在/home/pi下准备脚本yeelink.sh, 内容为以下两行命令, 其中的ApiKey和URL请改为自己设备对应的信息.
14 | sudo fswebcam -d /dev/video0 -r 320x240 --bottom-banner --title "RaspberryPi @ Yeelink" --no-timestamp /home/pi/yeelink.jpg
15 | curl --request POST --data-binary @"/home/pi/yeelink.jpg" --header "U-ApiKey: xxxxxxxxxxxxxxxxxxxx" http://api.yeelink.net/v1.0/device/1022/sensor/1294/photos
16 |
17 | 注:上面的命令中,1022和1294分别是设备号和传感器好,U-ApiKey是yeelink账号的APIKEY,如果你使用的话,可以根据自己的情况进行修改
18 |
19 |
20 | 为脚本增加可执行权限
21 | pi@raspberrypi ~ $ chmod +x yeelink.sh
22 |
23 | 5. 将脚本加入cronjob
24 | pi@raspberrypi ~ $ crontab -e
25 |
26 | 加入下面一行, 让脚本每分钟运行一次, 保存退出.
27 | */1 * * * * /home/pi/yeelink.sh
28 |
29 |
30 | 搞定, 至此我们的监控就开始运行了, 上网页上看看效果吧
31 | http://www.yeelink.net/devices/1022 |
--------------------------------------------------------------------------------
/lastcontent/树莓派最简便的系统安装方法BerryBoot(一)安装debian.html:
--------------------------------------------------------------------------------
1 | 树莓派最简便的系统安装方法BerryBoot(一)安装debian
2 |
3 | Berry Boot应该是当前最为简便的系统安装方法了,简约而不简单,支持U盘启动,支持添加自定义系统。
4 | 确保SD卡是FAT格式:
5 |
6 | 然后下载Berry Boot的zip包:
7 |
berryboot-20121126.zip
8 |
http://178.63.95.79/dl/berryboot-20121126.zip
9 |
10 | 拷贝解压缩到文件到SD卡的根目录,关闭SD卡目录,安全弹出SD卡。
11 |
12 | 把SD卡插入树莓派,开机,会看到如下欢迎界面
13 |
14 |
15 | 可以设置overscan、网络以及时区等,点击OK
16 |
17 | 这时候出现了目标驱动器界面,没有插入USB闪盘之前,能看到如下两个选项。
18 | mmcblk0就是引导用的SD卡,第二个选项是网盘。
19 |
20 |
21 |
22 | 如果想把系统安装在SD卡上,选择默认的第一个选项,文件系统也是默认的ext4,选择Format
23 |
24 | 如果想把系统安装在USB闪盘,而不是引导的SD卡的话,在这个界面插入USB闪盘,会多出一个驱动器选项:
25 |
26 |
27 |
28 | sda:USB 3.0 Cable 是我用Seagate USB 3.0 to SATA转接头接的一块SSD固态硬盘
29 | 选中多出来的U盘作为目标驱动器,点击Format
30 |
31 | 这时候Berryboot 会开始格式化目标驱动器:
32 |
33 |
34 |
35 |
36 | 格式化成功之后,会自动Mount ext4格式的目标驱动器:
37 |
38 |
39 |
40 |
41 | 稍后会出现系统选项,可以选装心仪的操作系统,我这里先选的debian
42 |
43 |
44 |
45 |
46 | berryboot自动下载最新版本的操作系统,430兆的debian:
47 |
48 |
49 |
50 |
51 | 系统安装完毕重启以后,就会出现操作系统选择界面:
52 |
53 | 因为我们只安装了一个系统,所以也没啥好选的,直接点击boot启动。
54 | 这里要注意,如果用U盘启动的话,SD卡作为引导盘还是要插在树莓派里。
55 |
56 | 第一次进入debian的设置菜单:
57 |

58 |
59 |
60 | 注意这里locale不要选中文,进入系统装完中文字库以后,再改。
61 | timezone是时区设置,boot_behavior 可以调成自动进入图形界面。
62 |
63 | 然后就可以用了:
64 |

65 |
66 |
67 | 默认的用户是pi
68 | 密码是raspberry
69 | 如果默认进命令行模式,输入:
70 | startx
71 | 进入图形用户界面。
72 | 如果想要切换root权限,输入命令: sudo su
--------------------------------------------------------------------------------
/lastcontent/树莓派|LOFTER.html:
--------------------------------------------------------------------------------
1 | 树莓派|LOFTER Linus Torvalds 总是让人感兴趣,这不仅因为他是 Linux 的创始人,而且因为他常常语出惊人。当然,这并不是说他和另一位开源领袖 Richard Stallman 一样极端理想主义。Linus Tovalds 是个关注技术的实用主义者(至少他自己是这么说的)。当然,作为 Linux 内核的领导者,他早已不是单纯的技术人员,而是一个很有技巧的管理者了。当人们提到 Linux 发展壮大的原因的时候,不免会将部分原因归结于 Linus 的管理方法。对此,Linus Torvalds 曾说过很有意思的话:
第一、我很懒。
第二、我喜欢授权。
近日 Techradar 网站发布了一篇 Linux Format 对 Linus Torvalds 的采访,涉及的话题众多,我们从中找出一些有意思的言论。
没有厂商预装 Linux
在桌面市场,Linux 并没有取得什么值得骄傲的进展。对此,Linus 认为,技术原因是一方面,但是更大的原因是普通用户不会去安装操作系统,“除非有预装,否则你无法获得桌面……但从现实中看,没有人去预装(Linux)”。有些技术人员由于不满意 KDE 或 Gnome 而放弃了 Linux 桌面,不过,即使他们没有那样做,普通用户也不会使用 Linux 桌面,他们甚至不喜欢计算机。
他对 Gnome 和 KDE 所做的事情并不满意,不过从大方向看,那只是“小细节”。

我对 Linux 商标不感兴趣
Linus 说他对 Linux 商标并不感兴趣,因为那是一件痛苦的事情。商标会鼓励公司做些蠢事,因为律师们认为,如果不那样做的话,他们会失去商标的控制权,“这是狗屎,不过人们花钱雇律师们就是让他们做些混蛋的事情”。他说,有些人会抱怨 Google 和 Ubuntu 不谈“Linux”,只是说“Android”或“Ubuntu”,这让他感觉很有趣。
他说自己对此并不烦恼,因为厂商们那样做并没有什么错。“如果你要做自己的系统,Linux 是核心,但它仍然还是整个系统的一小部分,你不需要因为使用了 Linux 内核,就必须把系统称作 Linux,因此,我实际上并不想去利用商标,另外,我觉得那很愚蠢,因为人们应该给自己的东西重新起名”。
他也会因为商标问题在网上抱怨,和别人争论,因为那是一种宣泄,“争论是我最爱的业余活动,不是编程”。
Android 问题
Android 是基于 Linux 的,但是随着 Android 的发展,内核维护者和 Google 公司产生了分歧,Android 代码一直没有融回 Linux ,成了一个分立的项目,不过从 Linux 3.3 开始,Android 开始逐渐回归 Linux,这是双方逐渐达成一致认识的结果。回顾这段历史的时候,Linus 说,“在 Android 上出现的问题,其实更多是内核开发者的问题,而不是 Google 的问题。在上一次的内核大会上,我们讨论的一个重要问题就是‘我们对 Android 怎么办?’”
Linus 说,许多人和他的看法一样,那就是不喜欢 Android 方法的人是错误的。“Android 做的很好,而且它可用。没有人拿出了 Google 可以接受的可用代码,因为他们的问题是其他人无法解决的。”
Linus 说 Google 内部的内核开发者也讨厌目前这种状况,因此对于 Google来说,也有着把代码融合回去的压力。
安全启动
从 Windows8 开始,微软要求硬件商使用“安全启动”技术,这遭到开源社区的反对,被视为是微软进一步压制 Linux 桌面的举措。
Linus Torvalds 说他其实很喜欢安全启动,其实他们 10 年前也就应该去做,但是没有人想去做,因为有疯狂的反对声音。不过,他也说,安全启动的问题是,微软可以凭借自己的垄断地位,说服硬件商只支持微软的签证,那才是真正让人担心的。这只对微软有利,因此这样的事情应该不会发生。
他说自己其实更担心苹果,比如他们强迫开发者使用沙盒机制。Linux 喜欢苹果的硬件,他使用 Macbook Air,但是不用 OSX,因为“他们会做些蠢事,因此比 PC 更加不便”。
Linux 桌面
Linus 对 Linux 桌面一直不满意。他曾经反对过 Gnome,后来对 KDE 也产生了不满,现在他用的是 Xfce。至于发行版,他用的是 Fedora。他用过 openSUSE,不过对他们的一些做法有些受够了。
对 Linux 桌面不满的原因是,他觉得界面设计者只关注视觉效果,而不是实际操作。“从某种程度上说,界面设计人员看起来只关心界面本身,而不是你实际做的工作”。
Raspberry Pi
Linus 说那是个很有吸引力的想法。他对这样的主意一直喜欢。就是当硬件便宜到一定程度的时候,你可以给孩子们玩,99% 的人可能不会去做什么,但是如果你给予每个人一种去鼓捣电脑关系的可能性,那是很了不起的事情。不过,对于他来说,Raspberry Pi 太慢,而且硬件也太老了。
你会如何改变 Linux?
如果你是 Linus Torvalds,你会如何改变 Linux? “我不会改变任何东西”。
--------------------------------------------------------------------------------
/lastcontent/派上如何收听在线广播呢.html:
--------------------------------------------------------------------------------
1 | 派上如何收听在线广播呢
2 | 不知道是搞了啥,或者是装了一下xmms2,现在mplayer能播放mms了,下次做系统的时候再试

3 | 例如现在 mplayer mms://218.106.97.4/xwt -cache 512 最后是指定了缓存,好象默认的不够
--------------------------------------------------------------------------------
/lastcontent/自定义树莓派的显示分辨率.html:
--------------------------------------------------------------------------------
1 | 自定义树莓派的显示分辨率hdmi_mode=1 VGA
2 | hdmi_mode=2 480p 60Hz
3 | hdmi_mode=3 480p 60Hz H
4 | hdmi_mode=4 720p 60Hz
5 | hdmi_mode=5 1080i 60Hz
6 | hdmi_mode=6 480i 60Hz
7 | hdmi_mode=7 480i 60Hz H
8 | hdmi_mode=8 240p 60Hz
9 | hdmi_mode=9 240p 60Hz H
10 | hdmi_mode=10 480i 60Hz 4x
11 | hdmi_mode=11 480i 60Hz 4x H
12 | hdmi_mode=12 240p 60Hz 4x
13 | hdmi_mode=13 240p 60Hz 4x H
14 | hdmi_mode=14 480p 60Hz 2x
15 | hdmi_mode=15 480p 60Hz 2x H
16 | hdmi_mode=16 1080p 60Hz
17 | hdmi_mode=17 576p 50Hz
18 | hdmi_mode=18 576p 50Hz H
19 | hdmi_mode=19 720p 50Hz
20 | hdmi_mode=20 1080i 50Hz
21 | hdmi_mode=21 576i 50Hz
22 | hdmi_mode=22 576i 50Hz H
23 | hdmi_mode=23 288p 50Hz
24 | hdmi_mode=24 288p 50Hz H
25 | hdmi_mode=25 576i 50Hz 4x
26 | hdmi_mode=26 576i 50Hz 4x H
27 | hdmi_mode=27 288p 50Hz 4x
28 | hdmi_mode=28 288p 50Hz 4x H
29 | hdmi_mode=29 576p 50Hz 2x
30 | hdmi_mode=30 576p 50Hz 2x H
31 | hdmi_mode=31 1080p 50Hz
32 | hdmi_mode=32 1080p 24Hz
33 | hdmi_mode=33 1080p 25Hz
34 | hdmi_mode=34 1080p 30Hz
35 | hdmi_mode=35 480p 60Hz 4x
36 | hdmi_mode=36 480p 60Hz 4xH
37 | hdmi_mode=37 576p 50Hz 4x
38 | hdmi_mode=38 576p 50Hz 4x H
39 | hdmi_mode=39 1080i 50Hz reduced blanking
40 | hdmi_mode=40 1080i 100Hz
41 | hdmi_mode=41 720p 100Hz
42 | hdmi_mode=42 576p 100Hz
43 | hdmi_mode=43 576p 100Hz H
44 | hdmi_mode=44 576i 100Hz
45 | hdmi_mode=45 576i 100Hz H
46 | hdmi_mode=46 1080i 120Hz
47 | hdmi_mode=47 720p 120Hz
48 | hdmi_mode=48 480p 120Hz
49 | hdmi_mode=49 480p 120Hz H
50 | hdmi_mode=50 480i 120Hz
51 | hdmi_mode=51 480i 120Hz H
52 | hdmi_mode=52 576p 200Hz
53 | hdmi_mode=53 576p 200Hz H
54 | hdmi_mode=54 576i 200Hz
55 | hdmi_mode=55 576i 200Hz H
56 | hdmi_mode=56 480p 240Hz
57 | hdmi_mode=57 480p 240Hz H
58 | hdmi_mode=58 480i 240Hz
59 | hdmi_mode=59 480i 240Hz H
60 | H means 16:9 variant (of a normally 4:3 mode).
61 | 2x means pixel doubled (i.e. higher clock rate, with each pixel repeated twice)
62 | 4x means pixel quadrupled (i.e. higher clock rate, with each pixel repeated four times)
63 | 树莓派一般可以自动检测目标设备的分辨率。
64 | 但对于部分设备,尤其是HDMI-VGA转换器,分辨率可能会明显不对(过大或过小)。
65 | 这时就需要给树莓派指定一个分辨率。
66 |
67 | 更改树莓派前面那个FAT32分区里的config.txt,修改或加入以下项目:- hdmi_group=****
68 | - hdmi_mode=****
69 | - hdmi_ignore_edid=0xa5000080
复制代码 hdmi_group和hdmi_mode的值对应想要调整的分辨率。见1楼和2楼。
70 |
71 | 另外一项“hdmi_ignore_edid”,是命令树莓派不检测HDMI设备的任何信息,只按照我们指定的分辨率输出。
72 | 如果不加,树莓派可能仍会“自作聪明”的检测HDMI设备的分辨率,结果造成我们设置的分辨率无效。
73 |
74 | 注意:如果您使用HDMI-VGA转换器出现以下故障:
75 | |
--------------------------------------------------------------------------------
/lastcontent/解决XBMC中文乱码_Sunny Beach_百度空间.html:
--------------------------------------------------------------------------------
1 | 解决XBMC中文乱码_Sunny Beach_百度空间 XBMC是支持中文的,但自身不带中文字体。这也是为什么直接在软件中设置界面为中文,会导致操作界面文字变乱码。
解决乱码的方法就是给他加入中文字体。
解决方法:
1、先找一款喜欢的字体(下面以细黑字体simhei.ttf为例),放到桌面,然后在终端输入下面命令
sudo -i
mv /usr/share/xbmc/media/Fonts/simhei.ttf /usr/share/xbmc/media/Fonts/arial.ttf
说明:重命名simhei.ttf为arial.ttf并替换XBMC安装目录下的arial.ttf字体
将以上命令中的 simhei.ttf 换成要你想用的字体名就可以了
2、打开XBMC,进入SETTING-Appearance----Look and Feel中将Skin Fonts设置为arial,再将 region中的language设置为Chinese simplified即可。
--------------------------------------------------------------------------------
/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/logo.jpg
--------------------------------------------------------------------------------
/md/1.新鲜树莓派你属哪一派.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 新鲜树莓派 你属哪一派
4 |
5 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
6 |
7 | ##新鲜树莓派 你属哪一派
8 | ######树莓派(Raspberry Pi)是一种新兴的迷你主机,配合各类丰富配件可以实现让人意想不到的强大功能。袖珍又廉价的它设计初衷是让孩子们更好的学习编程,但因为扩展性强大它受到了许多极客的青睐。作为为之痴迷的一员,我为米饭们带来了我的经验分享。
9 |
10 | 1、娱乐“派”
11 |
12 | 用作娱乐观看电影,当然是最令人激动的用途。只要刷好系统并安装好软件,就可以利用树莓派观看1080p高清视频。需要注意的是播放视频最好用树莓派提供的官方系统,只需在终端运行“omxplayer +视频文件名”即可,因为只有omxplayer才能使用树莓派的硬件加速功能。此外,Xbian操作系统(树莓派众多可选系统之一)下自带的XBMC软件可以开机直接使用也是不错的选择。若米饭们需要在线观看网站视频则需要安装相关插件, 但在此需要提醒的是其他播放软件都需要通过软件解码才能正常使用,非常占用CPU资源且容易卡屏或死机。
13 |
14 | 
15 |
16 | 树莓派系统自带了许多python小游戏,比如《贪吃蛇》、《推箱子》等,操作简易有趣。对于会python编程的米饭,也可以自己在上面写小游戏,趣味性更高。在网络上有用树莓派运行《雷神之锤三:竞技场》这类大型游戏的视频,画面和操作都很流畅,但我尝试安装时却因为某个文件无法下载而只能放弃。
17 |
18 | 
19 |
20 | ####前期准备
21 | 
22 |
23 | #####Step 1 配置硬件
24 | 小派买来的时候只有一个主板,要让它正常运作的话还需要增加一些外围设备:
25 |
26 | 一张4GByte以上的SD卡,最好是Class10以上级别,因为需要将系统刷入其中,Class10级别可以保证快速的读写能力,从而使系统运行更流畅。
27 |
28 | 一根电源线。
29 |
30 | 一个电源,建议使用5V 2A电源。
31 |
32 | 一套USB键盘鼠标,用以对树莓派进行控制。
33 |
34 | 一根高清线,连接显示器。
35 |
36 | 一根网线,联网升级,更新系统,当然也可以使用USB无线网卡。
37 |
38 | 一个盒子,用以固定和保护树莓派。
39 |
40 | 耳机音箱等则根据个人需求准备。
41 |
42 | #####Step 2 下载系统
43 | 从树莓派官网下载系统之后,Linux用户可以使用dd命令将系统写入存储卡,Windows用户可以用官网提供的《Win32DiskImager》来刷写系统。
44 |
45 | 
46 | MI TIPS:《Win32DiskImager》下载地址http://ishare.iask.sina.com.cn/f/24539980.html
47 |
48 | #####Step 3 连线组装
49 | 按照上图连接,一部树莓派电脑就组装完成了,通电开机之后就可以看见官方系统桌面开始操作了。
50 |
51 | 
52 |
53 | ####DIY“派”
54 |
55 | DIY“派”可不会满足于看高清视频、玩游戏这样的低级玩法,接下来我给大家展示一下这个小小的树莓派的百变玩法。
56 |
57 | 
58 |
59 | #####1.无线路由器
60 |
61 | 准备:USB接口的无线网卡
62 |
63 | 首先将网线插到树莓派有线网卡上,配置IP地址后检查网络是否正常连接。网络正常连接后安装hostapd,并对包括内网IP地址段和用户名密码等进行配置。最后用笔记本或手机连接树莓派做成的无线网络,输入用户名和密码连接浏览器,联网成功就标志着树莓派路由器制作成功了。
64 |
65 | 体验感受:设置好后的树莓派“路由器”基础功能齐全,虽无openwrt强大,但在速度上和标准的路由器并无区别。
66 |
67 | TIPS:openwrt:嵌入式设备使用的一种linux系统。
68 |
69 | #####2.BT下载工具
70 |
71 | 准备:移动硬盘
72 |
73 | 首先打开Linux终端并输入“sudo aptgetinstall transmission-daemon”,完成《bittorrent》的下载安装。然后联网运行《bittorrent》,可打开客户端并在“设置”内打开网络管理功能。最后将下载网址完整地添加到软件中便可实现下载功能。将数据资料直接下载到移动硬盘中可解决树莓派存储卡较小,空间不足的问题。
74 |
75 | 体验感受:Web界面方便操作,可实现浏览器上远程添加下载任务。
76 |
77 | #####3.FM电台
78 |
79 | 准备:一根杜邦线、一个收音机首先在树莓派的GPIO4接口上插上杜邦线当作天线,然后再从github网站下载《pifm》解压,并将喜爱的歌曲存入树莓派。切换到刚才解压出来的文件夹里面,执行命令:sudo ./pifm music.wav 100.0。最后将收音机调到FM100.0频道,就能听到树莓派发射出来的广播音乐。
80 |
81 | 体验感受:信号很好,几百米内都可听见清晰的音乐。
82 |
83 | 
84 |
85 | 对于专业玩家而言还可以把树莓派稍加改造当作打印服务器、web服务器、git服务器或者组合为一个服务器集群。当然运用树莓派支持的python2和python3来开发程序也是创意无限的。
86 |
87 | 虽然从参数看来树莓派并不抢眼,在同时多程序运行的操作过程中容易卡屏甚至死机。但是针对于这样一个定价为35美元的迷你主机,不但能播放高清视频、玩游戏还可以根据自己的喜好编程,如此高的性价比相信也是诱惑十足的。功能丰富,小巧可爱的树莓派确实是一款惹人喜爱的产品,只要米饭们勤于动手,它便会实现意想不到的变化和功能,更多的趣味期待着与米饭们共同发现。
88 |
89 | 文章来源:《移动信息》 【大配角】栏目 撰文=马伟伟 图片=移动信息图库
90 |
91 |
92 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
93 |
94 | © 2014 [flyher@GitHub, Inc.](https://github.com/flyher)
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/md/2.树莓派搭建hadoop集群[翻译].html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 树莓派搭建hadoop集群[翻译]
4 |
5 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
6 |
7 | ##树莓派搭建hadoop集群[翻译]
8 | ######Hadoop是由Java实现的, 所以在树莓派上运行就和在其他x86平台上运行一样简单. 首先, 我们需要安装支持树莓派的JVM. 可以选用OpenJDK或者Oracle的JDK 8. 我个人推荐JDK8, 其速度稍微快些, 但是OpenJDK安装更容易些.
9 | 1. 安装Java
10 |
11 | 安装OpenJDK十分简单, 只要执行以下命令
12 |
13 | ```shell
14 | pi@raspberrypi ~ $ sudo apt-get install openjdk-7-jdk
15 | pi@raspberrypi ~ $ java -version
16 | java version "1.7.0_07"
17 | OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-1+rpi1)
18 | OpenJDK Zero VM (build 22.0-b10, mixed mode)
19 | ```
20 | 另外, 我们可以选择安装Oracle的JDK 8.可以从这获得: https://jdk8.java.net/fxarmpreview/index.html
21 | ```shell
22 | pi@raspberrypi ~ $sudo tar zxvf jdk-8-ea-b36e-linux-arm-hflt-*.tar.gz -C /opt
23 | pi@raspberrypi ~ $sudo update-alternatives --install "/usr/bin/java"
24 | "java" "/opt/jdk1.8.0/bin/java" 1
25 | pi@raspberrypi ~ $ java -version
26 | java version "1.8.0-ea"
27 | Java(TM) SE Runtime Environment (build 1.8.0-ea-b36e)
28 | Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode)
29 | ```
30 | 如果你两个都装了, 用以下命令来切换即可:
31 | ```shell
32 | sudo update-alternatives --config java
33 | ```
34 | 2. 新增一个hadoop系统用户
35 |
36 | ```shell
37 | pi@raspberrypi ~ $ sudo addgroup hadoop
38 | pi@raspberrypi ~ $ sudo adduser --ingroup hadoop hduser
39 | pi@raspberrypi ~ $ sudo adduser hduser sudo
40 | ```
41 | 3. 设置SSH
42 | pi@raspberrypi ~ $ su - hduserhduser@raspberrypi ~ $ ssh-keygen -t rsa -P ""
43 |
44 | 这会生成一个匹配空密码的RSA密钥. 在与其他节点通讯时Hadoop将不再提示输入密码
45 |
46 | hduser@raspberrypi ~$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
47 |
48 | 现在设置SSH允许用刚生成的密钥访问
49 |
50 | hduser@raspberrypi ~$ ssh localhost
51 |
52 | 现在我们就应该可以不使用密码也可以登录了
53 |
54 | 4. 安装Hadoop
55 |
56 | 我们可以从http://www.apache.org/dyn/closer.cgi/hadoop/core下载hadoop
57 | ```shell
58 | hduser@raspberrypi ~$ wget http://mirror.catn.com/pub/apache/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
59 | hduser@raspberrypi ~$sudo tar vxzf hadoop-1.1.2.tar.gz -C /usr/local
60 | hduser@raspberrypi ~$cd /usr/local
61 | hduser@raspberrypi /usr/local$ sudo mv hadoop-1.1.2 hadoop
62 | hduser@raspberrypi /usr/local$ sudo chown -R hduser:hadoop hadoop
63 | ```
64 | 现在hadoop就安装好了. 编译home目录下的.bashrc文件, 将以下内容添加到其中
65 | ```shell
66 | export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-armhf
67 | export HADOOP_INSTALL=/usr/local/hadoop
68 | export PATH=$PATH:$HADOOP_INSTALL/bin
69 | ```
70 | 如果你用的是oracle的JDK, 相应的修改JAVA_HOME.
71 |
72 | 重启一下树莓派来验证安装是否成功:
73 | ```shell
74 | hduser@raspberrypi ~$ hadoop version
75 | Hadoop 1.1.2
76 | Subversion https://svn.apache.org/repos/asf/hadoop/common/branches/
77 | branch-1.1 -r 1440782
78 | Compiled by hortonfo on Thu Jan 31 02:03:24 UTC 2013
79 | From source with checksum c720ddcf4b926991de7467d253a79b8b
80 | ```
81 | 5. 配置Hadoop
82 | 注意: 这里的配置是hadoop单节点模式的最低配.
83 |
84 | ```shell
85 | 配置文件位于"/usr/local/hadoop/conf/", 我们需要修改core-site.xml, hdfs-site.xml, mapred-site.xml三个文件
86 | ```
87 | core-site.xml
88 | ```shell
89 |
90 |
91 | hadoop.tmp.dir
92 | /fs/hadoop/tmp
93 |
94 |
95 | fs.default.name
96 | hdfs://localhost:54310
97 |
98 |
99 | ```
100 | ```shell
101 | mapred-site.xml
102 |
103 |
104 |
105 | mapred.job.tracker
106 | localhost:54311
107 |
108 |
109 | ```
110 | ```shell
111 | hdfs-site.xml
112 |
113 |
114 |
115 | dfs.replication
116 | 1
117 |
118 |
119 | ```
120 | 哦了, 即将完工, 还剩最后一步.
121 |
122 | ```shell
123 | hduser@raspberrypi ~$ sudo mkdir -p /fs/hadoop/tmp
124 | hduser@raspberrypi ~$ sudo chown hduser:hadoop /fs/hadoop/tmp
125 | hduser@raspberrypi ~$ sudo chmod 750 /fs/hadoop/tmp
126 | hduser@raspberrypi ~$hadoop namenode -format
127 | ```
128 | 注意:
129 |
130 | 如果选用的是JDK 8, 我们需要强制在JVM client模式下运行DataNode, 因为JDK 8还不支持server模式. 进入/usr/local/hadoop/bin目录中来编辑hadoop文件(请先备份). 使用nano进行修改的步骤如下:nano hadoop, ctrl-w输入“-server”进行查找. 我们需要删除“-server”这个参数, 然后保存退出就行了.
131 |
132 | hadoop单节点系统就算是搭建完成了. 下面给一些有用的命令.
133 |
134 | ```shell
135 | 1. jps // 输出本地VM标识符
136 | 2. start-all.sh // 启动所有hadoop进程
137 | 3. stop-all.sh // 停止所有hadoop进程
138 | ```
139 |
140 | 版权:2013-07-14 13:39 Oschina 作者:未知
141 |
142 |
143 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
144 |
145 | © 2014 [flyher@GitHub, Inc.](https://github.com/flyher)
146 |
147 |
148 |
149 |
--------------------------------------------------------------------------------
/md/4.打造超简易家居监控网站.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 树莓派打造超简易家居监控网站
4 |
5 |
6 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
7 |
8 | ##树莓派打造超简易家居监控网站
9 | ######目录
10 |
11 | *打造超简易家居监控网站
12 |
13 | RaspberryPi到手有些时日了,除了尝试电影、游戏、VNC、服务器等基本功能之外,一直在琢磨该拿它做什么。忽然想起可用它实现智能家居的网关部分,不过我的那套无线模块不知道放哪里了,所以就先做个简单的测试小站吧。
14 |
15 | 效果如图:
16 |
17 | 
18 |
19 | 
20 |
21 | 网上最常见的方法是用PHP服务器或Yeelink这样现成的网站,可惜兔子不会PHP又希望能够用RPi做自己的服务器,索性还是采用兔子自己的懒办法吧。之所以说超简易,是因为这个网站除了实现基本的功能以外,就没有别的东西了,连界面也是用Word排版的。
22 | 网站的实现方法就是HTTPD外加HTML自动刷新。照片是用fswebcam访问USB摄像头拍摄的,保存成jpg文件,传感器数据通过USB转串口接收,保存在txt文件中。
23 | HTTPD可以使用小巧的mini-httpd,安装指令如下:
24 |
25 | ```shell
26 | sudo atp-getinstall mini-httpd
27 | ```
28 |
29 | 配置方法也很简单,新建一个路径home/pi/mini-httpd/,在该路径下新建空白文件mini-httpd.conf,输入配置信息。
30 |
31 | ```shell
32 | port=80
33 | dir=/home/pi/mini-httpd/wwwroot
34 | cgipat=cgi-bin/*
35 | user=nobody
36 | pidfile=/home/pi/mini-httpd/mini-httpd.pid
37 | logfile=/home/pi/mini-httpd/mini-httpd.log
38 | ```
39 |
40 | 同时还需要在home/pi/mini-httpd/下建立wwwroot和cgi-bin文件夹。
41 |
42 | 运行指令如下:
43 |
44 | ```shell
45 | sudo mini-httpd-C home/pi/mini-httpd/mini-httpd.conf
46 | ```
47 |
48 | 界面可以用Dreamweaver之类的软件做,没有的话用Word也行,设计个看得过去的框架,保存成htm文件。
49 |
50 | 
51 |
52 | 用编辑器编辑该文件,在对应的表格位置处插入要显示内容,如temp.txt文件里保存的温度信息。
53 |
54 | ```html
55 |
56 | ```
57 |
58 | 再在HEAD处将网页设为Unicode模式,并添加页面自动刷新以更新数据和图像,这里设置的是60秒刷新。
59 |
60 | ```html
61 |
62 |
63 | ```
64 |
65 | 图片可以先在Word里添加一张,然后再修改HTML里的路径和文件名。
66 |
67 | 温湿度和光照用的以前做的一块板子,因为上面传感器蛮多的就用它来演示了。
68 |
69 | 软硬件基本都是现成的,资料我已经开源了,可以参考我[早期的博客](http://www.eefocus.com/nightseas/blog)。
70 |
71 | [编者注:这里建议在淘宝上买个配件减少折腾吧]
72 |
73 | 
74 |
75 | 串口传输数据的格式为:温度+湿度+光照度,如15C20%100lx。这里兔子写了个小程序将串口数据分别保存在三个txt文件中,代码很简单就不再说明了,大家可以自己下载下来看。个人感觉Linux的串口编程比较麻烦,数据有时候会莫名其妙地接收不成功。
76 |
77 | 代码和网页文件:[下载地址](../src/4/RPi_HTTP.zip)
78 |
79 | 摄像头采集照片可以用fswebcam软件,方法是网上看到的。安装方法:
80 |
81 | ```shell
82 | sudo apt-getinstall fswebcam
83 | ```
84 |
85 | 运行:
86 |
87 | ```shell
88 | sudo fswebcam -d/dev/video0 -r 320x240 /home/pi/mini-httpd/wwwroot/Photo.jpg
89 | ```
90 |
91 | 新建脚本cam.sh,加入上面的指令。设置权限chmod+x cam.sh,然后加入cronjob使其每分钟自动运行一次:
92 |
93 | ```shell
94 | crontab–e
95 | ```
96 |
97 | 加入如下内容:
98 | ```
99 | */1 * * * * /home/pi/cam.sh
100 | ```
101 |
102 | 保存退出。
103 |
104 | 最后把网页文件和兔子写的measure程序放到wwwroot文件夹中,运行程序。用浏览器访问RPi的IP地址就可以看到数据和图像了,每分钟自动刷新一次。如果想在办公室也能看到家里的情况,推荐使用花生壳,会赠送一个免费二级域名。在路由器上登录花生壳账号,并设置DMZ主机为RPi的IP。
105 |
106 | 经过测试,Chrome、小米手机自带浏览器和UC都没问题,但是IE里图片会显示不出来,不知道是不是HTML代码有问题。再上一张手机登录的截图。
107 |
108 | 
109 |
110 |
111 | 版权:2014-7-5 20:24 eeboard 作者:[懒兔子](http://www.eeboard.com/bbs/thread-5525-1-1.html)
112 |
113 |
114 | ####[[返回目录]](../index.html) [[Give me a Star]](https://github.com/flyher/shumeipai)
115 |
116 | © 2014 [flyher@GitHub, Inc.](https://github.com/flyher)
117 |
118 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/pdf/Raspberry_Pi树莓派用户手册.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/pdf/Raspberry_Pi树莓派用户手册.pdf
--------------------------------------------------------------------------------
/pdf/比较全的树莓派入门介绍.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/pdf/比较全的树莓派入门介绍.pdf
--------------------------------------------------------------------------------
/src/1_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_1.jpg
--------------------------------------------------------------------------------
/src/1_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_2.jpg
--------------------------------------------------------------------------------
/src/1_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_3.jpg
--------------------------------------------------------------------------------
/src/1_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_4.jpg
--------------------------------------------------------------------------------
/src/1_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_5.jpg
--------------------------------------------------------------------------------
/src/1_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_6.jpg
--------------------------------------------------------------------------------
/src/1_7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/1_7.jpg
--------------------------------------------------------------------------------
/src/3_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_1.jpg
--------------------------------------------------------------------------------
/src/3_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_2.jpg
--------------------------------------------------------------------------------
/src/3_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_3.jpg
--------------------------------------------------------------------------------
/src/3_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_4.jpg
--------------------------------------------------------------------------------
/src/3_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_5.jpg
--------------------------------------------------------------------------------
/src/3_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/3_6.jpg
--------------------------------------------------------------------------------
/src/4/4_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/4_1.jpg
--------------------------------------------------------------------------------
/src/4/4_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/4_2.jpg
--------------------------------------------------------------------------------
/src/4/4_3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/4_3.jpg
--------------------------------------------------------------------------------
/src/4/4_4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/4_4.jpg
--------------------------------------------------------------------------------
/src/4/4_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/4_5.jpg
--------------------------------------------------------------------------------
/src/4/RPi_HTTP.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/4/RPi_HTTP.zip
--------------------------------------------------------------------------------
/src/logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flyher/shumeipai/7eae62b5bda932b72845d3a421318d2a6df2d2f5/src/logo.gif
--------------------------------------------------------------------------------