Cov txheej txheem:

Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws: 4 Cov Kauj Ruam
Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws: 4 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws
Yuav Ua Li Cas Teeb Raspberry Pi thiab Pib Siv Nws

Rau cov nyeem yav tom ntej, peb nyob rau xyoo 2020. Xyoo uas, yog tias koj muaj hmoo kom muaj kev noj qab haus huv thiab tsis kis los ntawm Covid-19, koj, tag li tam sim ntawd, tau txais txoj hauv kev ntau dua li koj tau xav. Yog li cas kuv thiaj tuaj yeem nyob kuv tus kheej hauv txoj kev tsis ruam heev? Huag yog, kuv tus poj niam muab kuv Raspberry Pi 2 xyoos dhau los, uas kuv tsis tau siv dua (yog, nws yog tus saib xyuas!). Eureka! Cia peb kawm paub siv nws li cas!

Yog li ntawm no peb mus, kuv thawj zaug puas tau Raspberry Pi Project thiab qhia. Kuv hais rau koj … ntau lub sijhawm dawb! Nov yog thawj ntawm ob peb qhov kev qhia uas kuv yuav sau los sau ua dab tsi kuv tau kawm hauv kuv thawj qhov haujlwm kawg-rau-kawg.

Hauv qhov no, peb yuav pib nrog cov hauv paus. Yuav pib thiab pib qhov twg yog tias koj tsis tau siv Raspberry Pi. Nov yog yam koj xav tau:

  • 1 Raspberry Pi, yam qauv twg koj nyiam
  • Thiab nws cuam tshuam nrog daim npav SD
  • 1 cov keyboard
  • 1 mus
  • 1 npo

Kauj Ruam 1: Txhim Kho Cov Txheej Txheem Ua Haujlwm ntawm SD Card

Thawj qhov koj yuav tsum tau ua yog teeb tsa Cov Txheej Txheem Ua Haujlwm (OS) ntawm SD daim npav. Kuv yuav tsis rov txhim kho lub log ntawm no, yog li ntawm no yog cov lus qhia zoo heev rau qhov ntawd:

projects.raspberrypi.org/en/projects/noobs-install

Kauj ruam 2: Teeb Linux

Linux teeb
Linux teeb

Nov yog qhov uas nws pib nthuav. Koj yuav tsum txuas lub vijtsam + nas + keyboard rau Raspberry Pi rau cov kauj ruam no. Peb yuav pom tom qab yuav ua li cas koj tuaj yeem nkag mus rau koj Pi nyob deb ntawm koj lub khoos phis tawj ib txwm muaj, tsis tas yuav xav tau txuas txhua qhov ntawd. Yog tias koj siv Raspberry Pi 4, koj tuaj yeem siv thawj daim duab nyob rau sab saum toj ntawm kev qhia kom paub yuav ua li cas txuas lawv.

Koj yuav tsum tau ua raws cov lus qhia hauv "Txais tos rau Raspberry Pi" qhov rai.

Qhov kawg ntawm qhov no thiab yog tias tsis tau ua tiav, koj yuav tsum txuas tus Pi mus rau koj li kev txuas wifi. Txhawm rau ua li ntawd, koj tuaj yeem siv qhov Chaw Ntawv qhia zaub mov los ntawm kev nkag mus rau hauv Cov Ntawv Qhia lossis koj tuaj yeem ua nws los ntawm kab hais kom ua. Kuv pom zoo kom siv rau kab hais kom ua, uas muaj txiaj ntsig zoo thiab ua haujlwm tau zoo thaum koj nkag mus rau koj li Pi nyob deb. Qhib kab hais kom ua (daim duab saum toj no) thiab ua raws cov lus qhia no:

  1. Hom: "sudo raspi-config". Qhov no yuav qhib qhov Raspberry Pi Configuration window (cov lus txib zoo nkauj kom nco qab!)
  2. Xaiv qhov kev xaiv thib 2 “2 Network Options Configure network settings”
  3. Tom qab ntawd xaiv qhov kev xaiv thib ob dua "N2 Wireless LAN Nkag mus rau SSID thiab cov lus zais"
  4. Tom qab ntawd ntaus koj li SSIP (lub npe network)

  5. Thiab tom qab ntawv tus lej uas yog tus password

Koj li Raspberry Pi tam sim no yuav tsum txuas nrog koj li internet txuas. Tam sim no peb yuav tsum hloov kho Raspberry Pi ua ntej peb ua dab tsi. Qhov no yog vim tias koj li kev khiav haujlwm rub tawm los ntawm lub vev xaib yuav tsis yog qhov tshiab tshaj plaws. Txhawm rau ua li ntawd, hauv kab hais kom ua:

  1. Ntaus "sudo apt hloov tshiab"
  2. Tom qab ntawv ntaus "sudo apt full-upgrade"

Kauj Ruam 3: Kev Nkag Mus Los Rau Koj Raspberry Pi

Kev Nkag Mus Nkag Mus Rau Koj Lub Raspberry Pi
Kev Nkag Mus Nkag Mus Rau Koj Lub Raspberry Pi

Tom qab ntawd, yog tias koj xav tau nkag mus rau koj Pi nyob deb, los ntawm koj lub khoos phis tawj ib txwm muaj, tsis tas yuav xav tau txuas lub vijtsam thiab lwm yam … rau nws, koj yuav xav tau VNC (Kev Sib Txuas Network Virtual) lossis SSH (Ruaj Ntseg Plhaub) txuas. Kev sib txuas VNC yuav tso cai rau koj nkag mus rau lub graphical interface ntawm koj Raspberry Pi los ntawm lwm lub khoos phis tawj thaum SSH ib tus yuav ua tib yam tab sis tsuas yog nkag mus rau kab hais kom ua ntawm koj Pi. Ua raws cov lus qhia ntawm qhov txuas no kom ua tau:

www.raspberrypi.org/documentation/remote-access/

Kuv pom zoo teeb tsa koj lub router kom faib qhov chaw nyob tus kheej IP zoo rau koj Pi, txhawm rau pab txhawb nws txoj kev sib txuas. Txwv tsis pub, koj yuav pom koj tus kheej hauv qhov xwm txheej uas koj tau teeb tsa koj li SSH / VNC kev sib txuas ntawm ib hnub, tab sis yuav tsum rov teeb tsa nws tom ntej nrog tus IP Pi tshiab tshiab … uas yuav cuam tshuam yog tias koj xav tau nkag mus rau ntawm tsis tu ncua. Kuv tsis tuaj yeem piav qhia yuav ua li cas, vim tias cov lus qhia yuav sib txawv ntawm ib lub router mus rau lwm qhov. Tab sis koj yuav tsum nkag mus rau koj lub router teeb tsa los ntawm kev ntaus 192.168.1.1 los ntawm koj lub computer browser thiab mus los ntawm qhov ntawd.

Kauj Ruam 4: Qhov Xav Tau ntawm Github

Qhov Zoo Tshaj Plaws ntawm Github
Qhov Zoo Tshaj Plaws ntawm Github

Thaum kawg, yog tias koj yuav ua haujlwm ntawm koj Python (lossis yam lus twg koj xav tau) cov cai los ntawm koj lub khoos phis tawj tseem ceeb, koj xav tau cov txheej txheem yooj yim uas yuav rov ua dua koj cov lej los ntawm koj lub khoos phis tawj tseem ceeb mus rau Raspberry Pi. Txais tos rau lub ntiaj teb zoo kawg ntawm Github! Nov yog cov lus qhia zoo uas dhau los ntawm cov kauj ruam rau nruab thiab kawm paub Git ua haujlwm li cas:

projects.raspberrypi.org/en/projects/getting-started-with-git

Kuv siv kuv tus kheej lub khoos phis tawj rau lub khoos phis tawj ntawm Python, siv PyCharm, ua ke nrog "GitHub Desktop" los thawb qhov hloov tshiab rau Git server thiab rub nws ntawm Raspberry Pi. Kuv pom zoo kom teeb tsa zoo sib xws uas yuav pab txhawb koj txoj haujlwm.

Thiab koj mus, npaj txhij pib ua haujlwm ntawm txhua qhov haujlwm koj xav tau!

Pom zoo: