開箱清單
正常情況下对室,樹莓派開箱只有一塊主控板软驰,顯然是無法正常運(yùn)行的。
開機(jī)必要配件
- tf卡:最好是已安裝了raspbain系統(tǒng)(系統(tǒng)從tf卡啟動)锭亏;
- micro USB線(樹莓派通過micro USB進(jìn)行供電)慧瘤;
- 5V電源(可選固该,可以通過USB線從電腦取電)伐坏;
交互模式
添加了上面的配件樹莓派就可以正常工作了,但沒有輸入和輸出配件每瞒,對應(yīng)使用者和開發(fā)者都是毫無意義的剿骨。
1屏幕+鍵盤+鼠標(biāo)
最簡單的交互方式就是和臺式機(jī)一樣通過屏幕、鼠標(biāo)挤庇、鍵盤進(jìn)行交互贷掖。必要配件:
- HDMI線(樹莓派只提供了HDMI接口)苹威;
- 鍵盤屠升;
- 鼠標(biāo)狭郑;
這樣上電開機(jī)就和使用普通的Linux主機(jī)一樣了翰萨。
很多時候顯示器只有VGA接口,這時候需要添加配件:
- HDMI轉(zhuǎn)VGA接口(要求使用有源接口殖告,無源接口可能會損壞樹莓派主板)黄绩;
同時爽丹,需要修改tf卡中的配置文件(config.txt文件)辛蚊,如:
# For more options and information see
# http://rpf.io/configtxtreadme
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=9
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
#dtoverlay=hifiberry-dacplus
參考:http://www.reibang.com/p/1b5f21fbb928
2 SSH遠(yuǎn)程登錄
raspbain系統(tǒng)默認(rèn)開啟了ssh服務(wù)初澎,可以通過終端進(jìn)行登錄碑宴,這里終端推薦Putty软啼;
ssh登錄需要知道樹莓派的IP地址焰宣、用戶名和密碼匕积;
其中闪唆,樹莓派的默認(rèn)用戶名和密碼為:
- 用戶名:pi;
- 密碼:raspberry
IP的獲取悄蕾,可以通過IP嗅探器來獲取帆调,比如Advanced IP Scanner番刊。將樹莓派同掃描器的宿主主機(jī)置于同一網(wǎng)段(比如連接到同一路由器)芹务。
IP嗅探器掃描
掃描到IP后枣抱,就可以通過SSH進(jìn)行登錄。
上網(wǎng)
通過修改/etc/network/interfaces配置文件實現(xiàn)上網(wǎng)配置辆床,如:
interfaces文件修改
/etc/wpa.conf文件修改
參考:http://shumeipai.nxez.com/2016/09/17/raspberry-pi-set-up-a-wireless-internet-access.html
至此佳晶,樹莓派就基本滿足使用和開發(fā)需求了。