Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
introduction_to_cubieboard
Search
Zoom.Quiet
May 27, 2013
Technology
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
introduction_to_cubieboard
[5.15]2013I/O大会珠海GDG直播之夜——吉大分场纪实
http://www.chinagdg.com/thread-1815-1-1.html
Zoom.Quiet
May 27, 2013
Transcript
34 slides
Cubieboard.org An introduction to cubieboard
Cubieboard.org About me 汤亮 (Tom Cubie) From cubietech @hipboi
Cubieboard.org About cubietech • The company behind cubieboard • Founded
in 2012 • Based in Zhuhai • Embedded devices manufacture • Community driven • Global small company
Cubieboard.org About cubieboard • Started in July, 2011 • Announced
in Sept, 2011 • More than 10000 pcs sold • Over 70 countries
Cubieboard.org
Cubieboard.org Quick overview - top
Cubieboard.org Quick overview - HDMI
Cubieboard.org Quick overview – USB host
Cubieboard.org Quick overview - SATA
Cubieboard.org What needed • Power adapter • Power cable •
HDMI cable • HDMI monitor/TV • USB mouse & keyboard
Cubieboard.org What needed(optional) • Serial cable • Micro SD card
• Card reader • 2.5inch hard disk • SATA cable • USB cable(Type B-Mini)
Cubieboard.org Prepare the uSD card • 1. Download the tool
Window – Win32DiskImager http://sourceforge.net/projects/win32diskimager/ Linux – dd • 2. Download the image Lubuntu – ubuntu with lxde desktop http://dl.cubieboard.org/software/ubuntu/cb-sdcard-1.1-linaro-quantal-alip-20130227-290.img.tgz
Cubieboard.org Prepare the uSD card • Insert the uSD card
to card reader and connect to PC • Run Image Writer • Choose the image and disk and click Write • Done
Cubieboard.org Prepare the uSD card
Cubieboard.org Power on • Insert the uSD card to the
cubie • Connect HDMI/Ethernet cable • Connect USB mouse/keyboard • Plug in the power cable Power red led on, cubie starts booting...
Cubieboard.org Power on
Cubieboard.org Status leds Default configuration of two leds • Blue:
heart beat • Green: uSD card reading/writing More information: http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs
Cubieboard.org Lubuntu Desktop
Cubieboard.org Applications • Internet browsing – Chromium • File manager
– Pacman FM • Office – Libreoffice • PDF reader - Evince • Terminal – Lxterminal …...
Cubieboard.org What's else? • Use cubie as web server •
Use cubie as android tv • Use cubie as NAS • Use cubie as...
Cubieboard.org Example 1 – GPIO • sudo apt-get install python-dev
• wget http://dl.linux- sunxi.org/users/tom/pySUNXI- 0.1.12.tar.gz • tar zxf pySUNXI-0.1.12.tar.gz • sudo python setup.py install
Cubieboard.org Wrap the breadboard
Cubieboard.org
Cubieboard.org Code – blink leds #!/usr/bin/env python import SUNXI_GPIO as
GPIO import time RED_LED = GPIO.PD0 GPIO.init() GPIO.setcfg(RED_LED, GPIO.OUT) while True: GPIO.output(RED_LED, GPIO.HIGH) time.sleep(1) GPIO.output(RED_LED, GPIO.LOW) time.sleep(1)
Cubieboard.org Gmail notifier • sudo apt-get install python-pip • sudo
pip install feedparser
Cubieboard.org Code - Gmail notifier #!/usr/bin/env python import SUNXI_GPIO as
GPIO, feedparser, time DEBUG = 1 USERNAME = "tomcubie" # just the part before the @ sign, add yours here PASSWORD = "cubieboard" GREEN_LED = GPIO.PD0 RED_LED = GPIO.PD2 GPIO.init() GPIO.setcfg(GREEN_LED, GPIO.OUT) GPIO.setcfg(RED_LED, GPIO.OUT) while True: newmails = int(feedparser.parse("https://" + USERNAME + ":" + PASSWORD +"@mail.google.com/gmail/feed/atom")["feed"]["fullcount"]) if DEBUG: print "You have", newmails, "new emails!" if newmails > 0: GPIO.output(GREEN_LED, GPIO.LOW) GPIO.output(RED_LED, GPIO.LOW) else: GPIO.output(GREEN_LED, GPIO.HIGH) GPIO.output(RED_LED, GPIO.HIGH) time.sleep(60)
Cubieboard.org Example 2 – Owncloud on cubie • sudo apt-get
install apache2 php5 php5-gd php-xml-parser php5-intl • sudo apt-get install php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl • wget http://download.owncloud.org/community/ow ncloud-5.0.6.tar.bz2
Cubieboard.org Install owncloud • tar jxf owncloud-5.0.6.tar.bz2 • sudo rm
/var/www/index.html • sudo mv owncloud/* /var/www/ • sudo chown -R www-data:www-data /var/www • Open web browser, point to cubie IP
Cubieboard.org Owncloud login
Cubieboard.org Owncloud
Cubieboard.org Owncloud android client
Cubieboard.org Community • Chinese Forum: cn.cubieboard.org • QQ group: 92017963
• Google group: cubieboard • IRC channel: #cubieboard • G+ community: cubieboard
Cubieboard.org Documents • http://linux-sunxi.org/Cubieboard • https://github.com/cubiebook/cubiebook
Cubieboard.org Thank you Questions?
More Decks by Zoom.Quiet
See All by Zoom.Quiet
PyCon2014China-Zhuhai-high performance
zoomquiet
0
220
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
190
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
160
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
170
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
170
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
180
PyCon2014China-Zhuhai-jeff
zoomquiet
0
170
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
220
DevFest2014-Zhuhai-Polymer
zoomquiet
0
510
Other Decks in Technology
See All in Technology
業務の傍らで進める改善ループエンジニアリング
bengo4com
0
120
変更差分を読むために環境を整備しよう
pipepasta
1
410
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
17
120k
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
2
130
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
130
速くなるほど、深く考える AI時代のQAに学ぶ
kobayashiyorimitsu
0
250
AWS Emulator を評価する: 手元で動く AWS の API の仕組み、始め方、確かめ方
inariku
PRO
1
730
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
0
260
AIで実装が加速したのに、 なぜ私は仕事の大半で人と話し続けていたのか?
say_no_w
0
170
Sonnetだけで業務はまわる?
kintotechdev
1
140
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
1
390
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
1
240
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
3
12k
My Coaching Mixtape
mlcsv
0
390
Building an army of robots
kneath
307
47k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Technical Leadership for Architectural Decision Making
baasie
4
650
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
480
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
600
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
Typedesign – Prime Four
hannesfritz
42
3.2k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k