樹莓派3B+開發(fā)前準備_第1頁
樹莓派3B+開發(fā)前準備_第2頁
樹莓派3B+開發(fā)前準備_第3頁
樹莓派3B+開發(fā)前準備_第4頁
樹莓派3B+開發(fā)前準備_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、開發(fā)前準備工作1:插入TF卡,連接帶HDMI的顯示器,也可以用HDMI轉(zhuǎn)VGA線接 入顯示器,通電,等待系統(tǒng)安裝完成。2:為了方便開發(fā),我們選擇使用 SSH遠程登錄操作樹莓派,下面配 置SSH方法如下:使用SSH遠程登錄樹莓派時,首先在樹莓派圖形界面打開命令終端, 我們先啟用root權(quán)限,可以每次省略輸入sudo,操作文件可以任意 暢行。啟用root方法:輸入: sudo passwd root輸入兩次root密碼輸入: sudo passwd -unlock root切換root用戶:$: su$: passwd (這里輸入前面設(shè)置的root密碼)#:(此時原來由$變?yōu)?,表明已經(jīng)進入roo

2、t模式)進入boot路徑,新建一個空的ssh文件,最新版的樹莓派默認關(guān)閉 SS領(lǐng)能。#: vi ssh這時進入vi的編輯模式,這里不用寫任何內(nèi)容,使用"shift" + ":"組合按鍵在最下面冒號后輸入:“wq!”,表示強制保存退出。這里一定是 在root模式下,否則會提示錯誤說是只讀文件#: raspi-config進入樹莓派配置界面 進入如下界面ry Pj. £。工匚w總工口 Ccin.Liguxcii.on Tuul mzipi-coiiLJLg)'Sefjp OptionsEnauros 七ha七 all of tlie SD

3、card2 Change User Password3 Enable Boot to De s kt op/Sera t ch1 iriternaitlonalisat ion options5 Enable Coiner a6 Add. to Rast rack7 Overclock3 Advanced Options9 About Liaspi-conf ig<SelectsChae password for the default 服 Chocss whether to boot into a dss Set up language and regional sett Enable

4、 this Pi to work with the R ftrid thi尋 Pi to th-g online Faspber Configure overcleak!ng far your P Con£igux« advanced settings Information about this configurat<Finish>選才? 2,修改樹莓派pi用戶名密碼,F(xiàn)inish#: ifconfig查看連接網(wǎng)絡(luò)的ip地址,這里使用 wifi的ip,系統(tǒng)裝完可以連接wifi。rootra3pt>eirypi:ifeenfigCLhO Link encf

5、l.p:ErherneD H.Wadlr bS:27:eb;ec:fG:4falir ; "EStJ; ; fieS; 5563 11)e3c ; Lf 57 /<4 Scope ; LintUE1 KJLT工CAS二 KTU;15QQ Kric:1packet 3 :4TX packets:0colliaiarLS; 0errors ;0 dropped: ovemins:O frame:0 erro-r s : 0 dropped :0 over runs: 0 carrier: 0 txqu.euelen: 100 0RX biTea: 0 (0-0 B) 7X :0 (

6、3.0 B)LoLink encapslacaL LocpbacLinet adlr: Mask:255,0.0+0 inet6 adlr: :12£ 3ccp&:Hoat UE L00PB4CK RUNNING MTU:65536 Metric:! RX packers :500 err ora : 0 dropped 0 overruns: C f raite: 0 TX paslcELa ;200 errors; 0 drepped; 0 Qvernjna; 0 carrier; 0 Golli3Lona ;C tHJiu-enelen: 1 咫匕&q

7、uot;,;1鉆5營(1£,工 箱1司工Ki&|wl a jiLink m仁&p: E 工 he me 工 即hddt bS eb : a: lai_net addr J152-163 . o711T-| Bcaat: 192.1SS .0. 255 Mask: 2S5.255. 25S , 0 it£ adir: feflQ: : 32f8:a30e:b396: fe6c/£4 Sc凸peiLLnk UP BBDADCLST 叩麗ING MULTIQLST MHH15QQ Ue trie: 1 RX pactets!1270 errcrs:0 d

8、ropped:E551 cverruns!0 frame20 IX packets:59 errnra:0 droppedi0 overrun3:0 carrier!0 colliBL3H9:0 EXTieuelen:LOO0 RX bytes:255S0SL (2.4 MiB) TX 寺出(8S-0 Ki&)roou?raspbtrrypi; <# |這里記住wlan0中的ip地址,后面 windows遠程登錄時需要填寫樹莓派的ip地址。重啟系統(tǒng):#: reboot陞惻罪限2"心/T器卜面安裝 windows版的 ssh軟件,下載 一Window中,打開,如下所示填寫

9、上一步查看到的IP地址。叵SSF: - dfFau:t - Oeturp 小¥ IFile Ed亡 View Wirdow 坐匕g1昌衛(wèi)邑亙電電同帆由口粵*?E Quick Connect :| ProffesSSH Secure Shell 3.2.9 (Build 283)Copyright (c) 2000-2003 SSH CDimnnic3tLQXiJ SeGurity Corp - http:/www- ssh-ccna/non- ccsme r e i a 1 version-.Thia&Or24Not connected - press Enter or Sp

10、ace tc 選才C connect,如果出現(xiàn),如下表明樹莓派未啟用ssh服務(wù),需要重新啟動。This copy di S5H Secure Shell is a£j 192468 am - default - SSH Seciure Shellu 叵 S3File Edit View Window Help昌以叁歷電冠©I必為£>i需wjl Quick Connect _| ProfifesSSH Secure Shell 329 (Build 283)”Copyriglut (c) 20 00-2D03 SSH Communications Securi

11、ty Corp - This cojsy of 35H Secure Shell is a non-connrfercia 1 version.| Connecting to 11.-80x24|輸入如下命令,在樹莓派終端上。#service ssh start 或者 service ssh restart 啟動或者重啟 ssh 服務(wù)。如果提示 ssh client報algorithm negotiation failed的解決方法之一修改sshd的配置文件/etc/ssh/sshd_config 在配置文件中添加:Ciphersaes128-cbc,aes192-cbc

12、,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour 256,arcfour,blowfish-cbc,cast128-cbcMACshmac-md5,hmac-sha1,umac-64,hmac-ripemd160,hmac-sha1-96,hmac-md5-96KexAlgorithmsdiffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diff ie-hellman-gr

13、oup-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, diffie-hellman-group1-sha1,重啟sshd服務(wù)后,即可正常連接。輸入: service ssh restart導(dǎo)致此問題的原因是 ssh升級后,為了安全,默認不再采用原來一些加密算法,我們手工添 加進去即可。再次打開輸入密碼后右上角填寫備注,然后Add to profiles ,下次直接從菜單快速進入只要輸入密碼即可。從如下位置可以直接與樹莓派傳輸文件。商 192

14、46S,0.119 - default - SSH Secure Shell . ) File Edit View Window HelpJslsa Tj 電亳©|必為需w/I Quick Connect | ProfifesSSH Seeing Shell 3.2.& (Build 253)Copyright (c) 2000-2003 SSH Ccxminunicatiana Security Corp - hrtp:/www. sah.cejn/Thia copy of SSH Secure Shell 13 a ncia-ccunmercial version-Ihi

15、g viersion dcres not include PKI and PKC5 #11 functicnaltty.I tie pro-grams inclulel witti the DeMan S-tru/Linux ay 3 tex are free software; the ek司ut 11stribution terma for each program are d&acribed in the individual file? in /usr/share/doc/ + /c&pyright <.Debian <5WU/Linux comj with

16、 ABSOLUTELY NO WARRMTTY, co the extent permitLed by applicable law.Last loint Thu Jim 1 17:23:21 2017 from 192,166,0,107 piraspi)errypi: |Connected to 168.0.119SSH2 - msI28ybe * hmacmd5 | 80x24-| 石File Edit View M電won jtmdow 氏W扇 網(wǎng)電小酉a 3 j*而凡 >s:mt非溜熊| ©I也Z) Quick Connect |_| Profies11al向總由I片

17、 X三I Add B q而生番 K 死嬴病 三I枇dConnected to L9Z15B,恨 149 -限鵬加底H2 -aeslZB-cbc - hmac-mdS 9 hems (0 BesLaca Hamo/SZQTypeMRanotfl Hsmc" £cq TyipaNo7專聚但心LIDcclctopFold#r30' admini司放出1DcejmertcFolder:0鵬帆案統(tǒng)立*.DcvLnloadlFeidler20網(wǎng)運至Q坤LMusicFolder20內(nèi)三言in構(gòu)莖疑文件一PirtLresFolder二 L:亙1勝站系筑文件.PuoicFolder20司臥向短系院文件Ipython

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論