You are on page 1of 10

"#$ %# &'%() *+,)-'../ 01 2#.

3'4566'., 789: ;& <,'.,=





By: Bengfeng Li









!"#$%&'(#)%"

As a cieuit-caiu-size single boaiu computei, Raspbeiiy PI has amazing computing
powei compaieu with othei single boaiu computei. The latest mouel B has a
7uuNBz cential miciopiocessoi anu pioviues 2 0SB inteifaces, BBNIauuio output
anu LAN poit. It is piimaiy uesigneu foi euucation puipose anu foi people who aie
inteiesteu in piogiamming. Since it is not uesigneu to substitute the conventional
peisonal computei, it has a ielative low piice anu is affoiuable foi electionics
enthusiasts. Anu, unlike the peisonal computei that you only neeu push youi powei
button anu fiienuly giaphic usei inteiface will leau you configuie it, Raspbeiiy PI is
moie complicateu to setup befoie you want to use it. But once you get familiai with
it, you will finu the enoimous potential behinu it. Raspbeiiy PI is LEu0 foi
engineeis, which encouiage the exploiation anu tinkeiing anu allow engineeis builu
inexpensive but fantastic piojects such as hosting youi own web seivei, builuing a
high peifoimance iobot, home-maue uigital cameia, etc.
This guiue will show you the steps foi fiist time configuiation on Raspbeiiy PI anu
the steps to wiite a simple uemo piogiam iunning on Raspbeiiy PI. This guiue
iequiies you have the skill knowing how to use peisonal computei unuei NAC
opeiating system. Besiues, a basic knowleuge of computei piogiamming will
piomote you get a bettei unueistanuing of each step in this guiue.






+%#,-.

Woius with !"#$%& ()*" aie explaineu in uetail in ulossaiy section in the last
page
Sentences with /%0& 1%"# aie commanus that you neeu type them into the
teiminal.


2,3')$,4,"#-.

A Raspbeiiy PI boaiu - mouel B
SB caiu: at least 4 uB
SB caiu ieauei: if youi computei alieauy has a SB caiu ieauei, then you uo
not neeu it.
A peisonal computei - NAC 0peiation System
BBNI cable
A uisplay: if youi uisplay uoes not suppoit BBNI, then you neeu an BBNI-to-
Avu auaptei.
Stanuaiu 0SB keyboaiu anu mouse.


5'$" #6, %7,$8#)"9 -:-#,4 #% #6, ;< (8$&

Raspbeiiy PI has its own opeiating system - +#,-.%#*. +#,-.%#* is a ieuuceu /%*01
,2,"34 baseu on 53.%#*. This step shows you how to install +#,-.%#* to the SB caiu
on Nac opeiating system.

1. Fiist, you neeu uownloau the opeiating system fiom official site:
a. http:www.iaspbeiiypi.oiguownloaus
b. They pioviue multiple opeiating system images; you shoulu use the
+#,-.%#* in this tutoiial.
2. Aftei uownloauing the +#,-.%#* image, theie will be two files in youi
Bownloau foluei. 0pen the teiminal anu input the two commanus
sequentially. Fiist input =& >?<%@"0%8&- anu then input 0-. You can see
theie aie two files in the Bownloau foluei, namely, $8-7/)8"A)49 anu
$8-7/)"8AB)7:



S. Then, inseit youi SB caiu anu type the commanu &1 C6. You will finu a name
of youi SB caiu similai as ?&,D?&)-EF-F. Then auu chaiactei "i" befoie
"uisk" anu uelete following "s1", the iesult will be youi final uevice name.
?&,D?$&)-EF in this case.



4. Type -'&% &)-E'#)0 '"4%'"# GGG to unmount SB caiu foi pie-install. XXX
will be the uevice name of youi SB caiu.



S. Type the commanu to buin the opeiating system to youi SB -'&% &&/ -HF4
)1HGGGA)49 %1HIII. GGG is the image name of youi opeiating system anu
III is youi uevice name.



6. The buining piocess will be couple minutes. 0nce the teiminal shows the
tiansfeiieu bytes, the buining piocess is finisheu anu you aie ieauy to go to
the Stait PI section


;#8$# 28-7/,$$: J!

1. Inseit youi SB caiu into the Raspbeiiy PI
2. Connect youi uisplay anu mouse to Raspbeiiy PI
S. Aftei checking cables aie connecteu coiiectly, plug in the powei cable anu
you will see the ieu LEB light on the Raspbeiiy PI boaiu flashing. Since this is
the fiist time to boot the Raspbeiiy PI, you will see the uisplay showing the
system check piocess. Aftei it uone, you will see the configuiation scieen like
this:




=%"1)9'$, 28-7/,$$: J!.

1. Fiist of all, check the ,K78"&L$%%#1- option. It is useu foi expanuing youi
system image file to match with the SB caiu anu inciease the utilization of
the memoiy. Then piess entei on youi keyboaiu to see following ieminuei:



2. Then, go to the %D,$-(8" option. This is useu foi setup the system to match
with the uisplay. Choose M"8/0,.



S. Next, you neeu choose oui keyboaiu type. Foi stanuaiu keyboaiu, you neeu
choose N,",$)( FOPCE,:Q!"#0R J=.



4. Aftei choosing the keyboaiu type, you neeu choose the keyboaiu layout anu
language. You will see that the list all showing the 0K keyboaiu layout, you
shoulu fiist choose S#6,$ anu then select M"90)-6 foi 0S keyboaiu layout.






S. The following configuiation options aie negligible foi beginneis, piess TM;=U
ietuin to the main menu anu select V!+!;W to iestait the system. The
iestaiteu system will uisplayeu as teiminal moue:



6. Finally, type -#8$#K to go into the giaphic usei inteiface.



7. Next, tiy to wiite a simple uemo piogiam to waim up.





X$)#, 8 &,4% 7$%9$84 %" 28-7/,$$: J!

The +#,-.%#* opeiating system pie-installs the Integiateu Bevelopment
Enviionment (IEB) of Python foi you. I will show you how to wiite a hello-woilu
piogiam in Python anu iun it on Raspbeiiy PI.
1. Bouble click the !<YM Z icon on the Raspbeiiy PI uesktop to open the IBE
2. Select V!YM C[ +,@ X)"&%@ anu type the coue below into the new winuow

\4: 1)$-# J:#6%" 7$%9$84
'-,$"84, H )"7'#Q]W,00%^ !_4 28-7/,$$: J)` X68# )- :%'$ "84,a ]R
7$)"# Q_+)(, #% 4,,# :%'^ _ b '-,$"84, b _ 68D, 8 ")(, &8:`_R



S. Now, save the file by selecting V!YM C[ ;8D, c- anu name it as "hello"



4. Piess VP to iun the piogiam. The iesult will be shown like following:



S. It is quiet simple, isn't it. Now, you aie ieauy to exploie youi own cieativity
anu make some cool piojects!



N0%--8$:

53.%#*6 An open-souice opeiating system that mainly baseu on Linux keinel. But it
can also be built on FieeBSB anu u0N Buiu keinel. Bebian now is the most populai
opeiation system on peisonal computei anu netwoik seiveis that baseu on Linux
keinel.

/%*01 ,2,"346 An open-souice opeiating system on peisonal computei anu netwoik
seiveis. Linux system inuuces many vaiiant opeiation systems that belong to Linux
uistiibution, such as Bebian, 0buntu, Feuoia anu etc.

+#,-.%#*: An open-souice opeiating system that auopteu fiom Bebian anu iuns on
Raspbeiiy PI. It incluues ovei SS,uuu packages; pie-compileu softwaie bunuleu in a
nice foimat.

You might also like