Cov txheej txheem:

Nkag mus rau Raspberry Pi Cov Ntaub Ntawv Txheej Txheem Los ntawm Windows: 9 Cov Kauj Ruam
Nkag mus rau Raspberry Pi Cov Ntaub Ntawv Txheej Txheem Los ntawm Windows: 9 Cov Kauj Ruam

Video: Nkag mus rau Raspberry Pi Cov Ntaub Ntawv Txheej Txheem Los ntawm Windows: 9 Cov Kauj Ruam

Video: Nkag mus rau Raspberry Pi Cov Ntaub Ntawv Txheej Txheem Los ntawm Windows: 9 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Nkag mus rau Raspberry Pi File System Los ntawm Windows
Nkag mus rau Raspberry Pi File System Los ntawm Windows
Nkag mus rau Raspberry Pi File System Los ntawm Windows
Nkag mus rau Raspberry Pi File System Los ntawm Windows

Koj puas tau muaj Raspberry Pi thiab ploj mus "Kuv tau teeb tsa nws nrog lub ntsuas, nas, thiab keyboard txhua lub sijhawm!" Qhov kev chim siab nws ua rau tshem tawm/hloov koj lub monitor thiab keyboard/nas, tsuas yog nkag mus rau Raspberry Pi yog qhov thib ob uas tsis muaj. Koj cia li tso tseg txhua yam ntsaws rau hauv, ua rau koj muaj nuj nqis ntawm qhov chaw, lossis tsis zoo, qhov haujlwm tsis tiav *ntxig rau kev npau suav phem *! Puas yog nws tsuas yog yooj yim nkag tau cov ntaub ntawv thiab cov ntawv sau ncaj qha los ntawm koj lub tshuab?

Cov lus qhia no yuav coj koj mus teeb tsa cov ntaub ntawv nyob deb ntawm koj li Raspberry Pi. Qhov zoo tshaj plaws yog koj yuav tsis tau txuas ib yam dab tsi rau Raspberry Pi! Qhov no yuav ua haujlwm rau Windows, thiab yuav tsum ua haujlwm rau Mac thiab Linux ib yam.

Lub taub hau duab tau los ntawm ReasearchGate

Khoom siv

Rau qhov kev qhia no, koj yuav xav tau:

  • Raspberry Pi (pom tseeb)
  • Lub khoos phis tawj nrog LAN nkag (WiFi lossis ethernet)
  • Ib daim npav SD rau koj Raspberry Pi (8GB +)
  • Lub hwj chim muab rau koj Raspberry Pi

Kauj Ruam 1: Txhim Kho Raspberry Pi OS

Txhim kho Raspberry Pi OS
Txhim kho Raspberry Pi OS
Txhim kho Raspberry Pi OS
Txhim kho Raspberry Pi OS
Txhim kho Raspberry Pi OS
Txhim kho Raspberry Pi OS

Hauv ntu no, koj yuav txhim kho lub operating system (OS) rau Raspberry Pi mus rau koj daim npav SD.

Ib daim ntawv ntawm OS: Yog tias koj npaj yuav tsis siv Raspberry Pi desktop, Kuv yuav xaiv Lite version, vim nws tshem tawm cov software tsis tsim nyog (desktop, Chromium, Jupyter thiab lwm yam), tawm hauv qab tsuas yog cov lus txib console thiab cov software tsim nyog kiag li.. Qhov no ua kom lub cim xeeb zoo tshaj plaws rau khaws cov ntaub ntawv, pob khoom, thiab ua haujlwm cov kev cai, thiab tsis tas siv cov peev txheej ua haujlwm GUI thaum koj yuav tsis siv nws. Koj tuaj yeem pom nws nyob hauv Raspberry Pi OS (Lwm Yam) -> Raspberry Pi OS Lite (32 ntsis). Txwv tsis pub, lwm yam Raspberry Pi OS yuav ua.

  1. Txuas koj daim npav SD rau hauv koj lub computer. Yog tias koj lub khoos phis tawj tsis muaj tus nyeem daim npav SD, koj yuav xav yuav ib qho.
  2. [TSIS MUAJ] Format koj daim npav SD. Yog tias koj lub khoos phis tawj ua tsis tiav, sim lwm qhov chaw nres nkoj.
  3. Mus rau RaspberryPi lub vev xaib thiab rub tawm RaspberryPi Imager nqi hluav taws xob. Qhov no yuav pab koj txhim kho OS duab mus rau SD daim npav. Thaum cov khoom siv tau teeb tsa, tso nws.
  4. Nyem rau Xaiv OS. Thaum lub npov qhib, xaiv OS uas koj xaiv.
  5. Nyem rau Xaiv SD daim npav. Thaum lub npov qhib, xaiv koj daim npav SD.
  6. Nco ntsoov tias koj tau xaiv txoj cai tsav uas tuav koj daim npav SD!
  7. Txheeb dua!
  8. Nyem rau Sau. Tam sim no cov khoom siv yuav rub tawm thiab teeb tsa OS rau hauv SD daim npav.

Kauj Ruam 2: Teeb Kho Raspberry Pi (Ntu 1) - WiFi thiab SSH

Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH
Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH
Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH
Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH
Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH
Teeb tsa Raspberry Pi (Ntu 1) - WiFi thiab SSH

Hauv ntu no, koj yuav ua kom muaj SSH thiab WiFi ntawm koj li Raspberry Pi. SSH sawv rau Kev Ruaj Ntseg Plhaub, thiab tseem yog txoj hauv kev ruaj ntseg ntawm kev nkag mus rau cov kab hais kom ua. Koj tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv txog SSH nyob ntawm no.

  1. Txuas koj daim npav SD nrog OS teeb tsa rau hauv koj lub computer (yog tias nws tsis tau muaj).
  2. Qhib daim npav SD npe. Nws yuav muaj lub npe txawv, feem ntau yog khau raj, tab sis nws tseem yuav yog Raspberry Pi system.
  3. Tsim cov ntawv sau tshiab thiab hu nws ssh. Tsis muaj cov ntaub ntawv txuas ntxiv, tsuas yog ssh (tshem tawm. Txt txuas ntxiv).
  4. Tsim cov ntawv sau tshiab thiab hu nws wpa_supplicant.conf. Nco ntsoov koj hloov qhov.txt txuas ntxiv rau.conf. Tej zaum koj yuav raug hais kom lees paub.
  5. Tam sim no peb yuav teeb tsa WiFi nkag mus rau Raspberry Pi. Yog tias koj tab tom txuas Raspberry Pi mus rau Ethernet cable, koj tuaj yeem hla mus rau qib tom ntej ntawm cov lus qhia.
  6. Qhib koj cov ntaub ntawv tsim tshiab wpa_supplicant.conf nrog cov ntawv sau dab tsi koj xav tau. Luam thiab muab tshuaj txhuam rau hauv:

    teb chaws =

    ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev update_config = 1 network = {ssid = "" psk = "" key_mgmt = WPA-PSK}

  7. Hloov nrog koj lub tebchaws Alpha-2 ISO code.
  8. Hloov nrog koj lub npe network, thiab nrog koj tus password WiFi.

Koj cov ntaub ntawv wpa_supplicant.conf yuav tsum zoo ib yam li:

lub teb chaws = GB

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev update_config = 1 network = {ssid = "MyHomeNetwork" psk = "S3cretPa55word" key_mgmt = WPA-PSK}

Dab tsi yuav tshwm sim tam sim no yog tias Raspberry Pi yuav tshawb nrhiav cov ntaub ntawv ssh hauv khau raj. Yog tias nws pom nws (tsis muaj teeb meem dab tsi hauv cov ntawv muaj), nws yuav pab kom SSH. Nws tseem yuav nrhiav cov ntaub ntawv wpa_supplicant.conf los teeb tsa nws li WiFi. Qhov no yog vim li cas cov ntaub ntawv no xav tau.

Kauj Ruam 3: Nkag Mus Rau Raspberry Pi (Ntu 1) - Network Nkag Mus

Nkag mus rau Raspberry Pi (Ntu 1) - Kev Nkag Mus Rau Network
Nkag mus rau Raspberry Pi (Ntu 1) - Kev Nkag Mus Rau Network

Tam sim no peb tau teeb tsa rau SSH thiab teeb tsa WiFi, nws yog lub sijhawm hloov pauv ntawm Raspberry Pi. Nyab xeeb tshem daim npav SD ntawm koj lub khoos phis tawj, thiab ntsaws nws rau hauv Raspberry Pi's SD daim npav qhov. Txuas lub hwj huam hluav taws xob rau hauv, thiab ua kom muaj zog. Lub sijhawm no, Raspberry Pi yuav khau raj thiab txuas rau koj li WiFi network.

Txhawm rau SSH rau hauv koj li Raspberry Pi, koj yuav xav tau nws tus IP chaw nyob. Tus IP chaw nyob hauv cheeb tsam tso cai rau router txheeb xyuas lub tshuab twg uas nkag mus rau lub network. Koj tuaj yeem tau txais koj li Raspberry Pi tus IP chaw nyob los ntawm kev nkag mus rau hauv koj lub router thiab tshawb xyuas los ntawm txhua qhov khoom siv sib txuas, lossis los ntawm kev siv qee qhov IP scanning software (zoo li Npau taws IP Scanner). Kuv yuav siv Angry IP Scanner, vim nws yooj yim heev rau siv.

Qhov software no ua dab tsi yog luam theej tawm txhua tus IP chaw nyob hauv lub network, thiab pom txhua lub cuab yeej uas txuas nrog koj lub router. Lub npe software yog yuam kev me ntsis, vim tias nws tsis npau taws, thiab nws yuav tsis ua dab tsi phem rau koj lub khoos phis tawj lossis router.

Yog tias koj siv Angry IP Scanner:

  1. Nruab qhov software ntawm koj lub Windows/Mac tshuab, thiab tso nws.
  2. Teem koj tus IP ntau. Kuv lub network hauv ib cheeb tsam khiav ntawm 192.168.1.xxx, yog li kuv teeb tsa kuv li 192.168.1.0 txog 192.168.1.255. Txhawm rau pab koj txiav txim siab seb yuav siv dab tsi, nyeem hauv kab lus no.
  3. Nias lub Start khawm, thiab cia Npau taws IP Scanner luam tawm los ntawm tus IP chaw nyob.
  4. Thaum npau taws IP Scanner tau ua tiav, nrhiav tus IP chaw nyob uas nws lub npe siv yog qee yam xws li raspberrypi.local.
  5. Nrog koj zoo siab, koj muaj koj li Raspberry Pi tus IP chaw nyob!

Nco tseg: yog tias koj muaj ntau yam Raspberry Pis ntawm koj lub network, tej zaum koj yuav tsum tau luam theej duab nrog koj li Raspberry Pi tshiab tawm, tom qab ntawd luam theej duab dua nrog Raspberry Pi hloov pauv. Koj yuav tsum tau sib piv qhov kev sib txuas tshiab tau ua hauv lub network.

Kauj Ruam 4: Nkag Mus Rau Raspberry Pi (Ntu 2) - SSH Access

Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access
Nkag mus rau Raspberry Pi (Ntu 2) - SSH Access

Tam sim no koj muaj koj li Raspberry Pi tus IP chaw nyob, koj tuaj yeem SSH rau hauv. Raws li tus siv Windows, koj yuav xav tau SSH tus thov kev pab zoo li PuTTY.

  1. Tua tawm PuTTY.
  2. Hauv qab Pawg qeb ntawm sab laug ntawm lub qhov rais, nco ntsoov tias koj tau xaiv Sijhawm.
  3. Ntawm sab xis ntawm lub qhov rais, hauv qab Hostname (lossis IP chaw nyob), ntaus hauv koj li Raspberry Pi tus IP chaw nyob uas koj pom hauv qib dhau los. Hauv kuv qhov xwm txheej, nws yog 192.168.1.77.
  4. Hauv Port, nco ntsoov tias nws tau teeb tsa rau 22.
  5. Nyob hauv Hom Kev Sib Txuas, nco ntsoov xaiv SSH.
  6. [OPTIONAL] Koj tuaj yeem txuag cov kev teeb tsa no los ntawm kev ntaus koj lub npe sib tham nyob rau hauv Cov Sijhawm Txuag, tom qab ntawd nias lub pob Txuag.
  7. Nias lub pob qhib Yog tias koj tab tom txuas thawj zaug, PuTTY yuav qhia koj txog kev tso cai rau cov ntiv tes. Tso cai rau lawv txuas ntxiv SSH-ing rau hauv koj li Raspberry Pi.
  8. Lub console yuav tsum nug koj txog tus username nkag mus. Ntaus pi thiab nias Enter.
  9. Tom qab ntawd koj yuav raug nug rau tus password. Ntaus hauv raspberry thiab nias nkag mus.

Qhov ntawd yog nws!

Kauj Ruam 5: Teeb Tus Raspberry Pi (Ntu 2) - Hloov kho Raspberry Pi

Nws ib txwm coj ua zoo los khaws Raspberry Pi OS txog hnub. Thaum koj muaj SSH-ed rau hauv koj li Raspberry Pi, ntaus qhov hais kom ua sudo apt hloov tshiab thiab nias Enter. Qhov no yuav hloov kho pob khoom siv hauv OS. Yog tias yog nug koj kom paub meej, nias y. Koj yuav pom ntau cov ntawv thiab feem pua, tab sis qhov zoo!

Thaum nws ua tiav, koj yuav tsum hloov kho OS nws tus kheej. Khiav qhov hais kom ua sudo apt full-upgrade. Qhov no yuav rub tawm thiab hloov kho OS, thiab tshem tawm qhov qub uas nws tsis xav tau ntxiv lawm. Koj yuav pom ntau cov ntawv nyeem thiab feem pua, thiab qhov ntawd zoo ib yam!

Thaum qhov ntawd tau ua tiav, rov pib dua Raspberry Pi los ntawm kev ua haujlwm sudo rov pib dua. Qhov no yuav kaw qhov txuas SSH thiab rov pib dua Raspberry Pi. Tos ob peb feeb rau Raspberry Pi kom rov pib dua thiab txuas rau koj lub network. Tom qab ntawd rov ua ntu 4 saum toj no mus rau SSH rau hauv Raspberry Pi dua.

Kauj Ruam 6: Teeb Kho RaspberryPi (Ntu 3) - Yooj Yim Lub Npe

Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe
Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe
Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe
Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe
Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe
Teeb tsa RaspberryPi (Ntu 3) - Yooj Yim Lub Npe

Tam sim no, peb yuav tsum ua kom yooj yim nkag tau rau Raspberry Pi's file system kom peb tuaj yeem nkag mus rau Raspberry Pi cov ntaub ntawv thiab cov ntawv tais ceev tseg. Txhawm rau ua li ntawd peb yuav xav hloov lub Hostname thiab teeb tsa qee pob ntxiv.

  1. Hauv Raspberry Pi lub console, ntaus hauv sudo raspi-config thiab ntaus Enter.
  2. Nkag mus nrog koj cov yawm sij xub mus rau Network Options thiab ntaus Enter.
  3. Xaiv Hostname.
  4. Teem koj lub npe tswv tshiab. Piv txwv li, Kuv teeb kuv li MyLocalPi. Tom qab ntawv nyem Enter.
  5. Khaws xaiv Tiav, thiab rov qab mus rau lub vijtsam tseem ceeb. Tawm ntawm RaspiConfig cov khoom siv.
  6. Yog tias nws nug koj kom rov pib dua, xaiv yog. Yog tias tsis yog, hauv lub console, ntaus sudo reboot, thiab ntaus Enter.

Koj tuaj yeem tshawb xyuas tias koj lub npe host tau hloov pauv los ntawm kev ntaus hostname hauv console thiab nias Enter. Koj yuav tsum pom koj lub hostname tshiab tshwm. Koj kuj tseem tuaj yeem npau taws IP Scanner dua, thiab koj yuav tsum pom tias lub npe hostname ntawm koj Raspberry Pi yuav tau hloov pauv.

Kauj Ruam 7: Teeb Kho RaspberryPi (Ntu 4) - Samba

Tam sim no peb tab tom teeb tsa cov ntaub ntawv nkag mus siv Samba. Samba yog lub pob uas muab cov tshuab nkag mus rau Raspberry Pi's file system. Nrog nws, koj yuav tsum muaj peev xwm taug kev Raspberry Pi siv Windows 'explorer window lossis Mac's Finder. Rau cov neeg siv Windows, qhov no hu ua Windows File Share. Nws tseem tso cai rau Mac cov neeg siv nkag mus rau Raspberry Pi hauv qab Shared folder.

  1. Hauv lub console, ntaus sudo apt install -y samba. Qhov no yuav teeb tsa pob Samba.
  2. Thaum teeb tsa, ntaus hauv sudo nano /etc/samba/smb.conf. Qhov yuav qhib cov ntaub ntawv smb.conf hauv lub console, npaj rau kev kho.
  3. Peb yuav tsum teeb tsa Samba los pab peb nkag mus rau cov ntaub ntawv kaw lus ntawm Raspberry Pi. Hauv qab ntawm smb.conf cov ntaub ntawv, ntxiv cov kab hauv qab no:

    [PiShare]

    tawm tswv yim = Pi Qhia tawm txoj kev =/tsev/pi tuaj yeem nkag tau = yog sau tau = yog tsuas yog qhua = tsis tsim daim npog ntsej muag = 0740 daim npog ntsej muag = 0750 pej xeem = tsis

  4. Nias Ctrl+X (tswj tus yuam sij thiab X tus yuam sij) kom tawm mus. Thaum nug kom txuag, nyem Yog.
  5. Tam sim no peb xav tau los tsim Samba cov neeg siv rau kev nkag mus rau tej thaj chaw deb. Hauv console hom sudo smbpasswd -a pi. Qhov no yuav tsim Samba cov neeg siv pi.
  6. Tsim tus password rau koj tus neeg siv Samba. Koj yuav raug ceeb toom kom rov nkag mus rau tus lej qub.

Qhov ntawd yog nws!

Kauj Ruam 8: Nkag Mus Rau Raspberry Pi (Ntu 3) - Cov Ntaub Ntawv Nkag Mus

Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv
Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv
Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv
Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv
Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv
Nkag mus rau Raspberry Pi (Ntu 3) - Kev Nkag Mus Rau Cov Ntaub Ntawv

Tam sim no koj tau teeb tsa Raspberry Pi, nws yog lub sijhawm tig mus rau koj lub tshuab nyob deb.

Koj tuaj yeem nkag mus rau koj cov ntaub ntawv kaw lus raws li hauv qab no:

  • Qhib lub qhov rai Khiav los ntawm nias WinKey+R, thiab ntaus hauv [HOSTNAME], hloov [HOSTNAME] nrog lub hostname koj ntaus hauv Kauj Ruam 6.
  • Qhib lub qhov rai tshawb (piv txwv li, Cov Ntaub Ntawv lossis Kuv Lub PC). Hauv qhov chaw nyob bar, ntaus hauv [HOSTNAME], hloov [HOSTNAME] nrog lub hostname koj ntaus hauv Kauj Ruam 6.
  • Ntawm lub desktop, nyem-nyem thiab xaiv New-> Shortcut. Hauv kab ntawv qhov chaw nyob, ntaus hauv [HOSTNAME], hloov [HOSTNAME] nrog tus tswv lub npe koj ntaus hauv Kauj Ruam 6. Nyem Tom ntej. Tom qab ntawd koj tuaj yeem muab lub npe luv rau koj xaiv.

Thaum koj sim nkag mus rau Raspberry Pi cov ntaub ntawv kaw lus siv ib qho ntawm cov txheej txheem saum toj no, Windows yuav nug koj txog lub npe siv thiab tus lej nkag. Siv tus username thiab password koj teeb rau Samba profile (Kauj Ruam 7).

Kauj Ruam 9: Sau Ntawv Kawg

Qhov ntawd yog nws! Tam sim no koj tuaj yeem tshawb xyuas Raspberry Pi cov ntaub ntawv kaw lus los ntawm koj tus qauv tshuab cov ntaub ntawv qhia kab ke. Qhov no ua rau nws yooj yim dua li yuav tsum ntsaws nas, keyboard, thiab saib xyuas, lossis yuav tsum mus los ntawm cov npe nrog ntau ls cov lus txib.

Txhawm rau muaj kev ntseeg siab dua thiab siv tau zoo, koj tseem tuaj yeem khiav git kev txheeb xyuas cov lus txib ncaj qha mus rau Raspberry Pi los ntawm Windows. Qhov no ua rau nws yooj yim dua los lis kev txheeb xyuas, hloov kho, thiab ua cov cai rau lub chaw cia khoom.

Ib qho tseem ceeb ceeb toom

Thaum koj nkag mus rau Raspberry Pi cov ntaub ntawv kaw lus, koj yuav nthuav tawm nrog ob daim nplaub tshev: pi thiab PiShare (lossis zoo sib xws, nyob ntawm seb Samba lub npe siv thiab teeb tsa lub npe hauv smb.conf cov ntaub ntawv, ob qho hauv Kauj Ruam 7). Hauv qhov no, xaiv ob qho ntawv tais ceev tseg yuav ua rau koj nkag mus rau cov ntaub ntawv thiab qhib lawv, TAB SIS kev mus los ntawm pi nplaub tshev txhais tau tias koj plam kev kho tus kheej, piv txwv li koj yuav tsis muaj peev xwm tsim thiab kho cov ntaub ntawv. Txawm li cas los xij, kev mus los ntawm PiShare nplaub tshev muab rau koj nkag mus tau.

Qhov ntawd yog nws! Tam sim no koj tsis xav tau nas, keyboard, thiab saib xyuas rau koj li haujlwm Raspberry Pi! Kev ywj pheej yog li cas?

Pom zoo: