Cov txheej txheem:

Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi: 7 Cov Kauj Ruam
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi: 7 Cov Kauj Ruam

Video: Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi: 7 Cov Kauj Ruam

Video: Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi: 7 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 Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi
Yuav Ua Li Cas Cov Neeg Siv Khoom Siv Raspberry Pi

Tam sim no ib hnub nws yog qhov muaj ntau lub khoos phis tawj nyob hauv ib lub tsev nrog suab paj nruag thiab yeeb yaj kiab kis ntawm lawv. Lwm txoj hauv kev los npaj koj cov khoom yog khaws nws ntawm lub hauv paus server aka FILE SERVER.

Hauv cov lus qhia no, peb yuav tsim cov ntaub ntawv server siv raspberry pi.

Cia peb pib.

Kauj ruam 1: Yees duab

Image
Image

Ua tib zoo saib cov vis dis aus. Yog tias koj nyiam nws, tsis txhob hnov qab subscribe.

Kauj ruam 2: Cheebtsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

Txog rau qhov MiniProject no peb yuav xav tau cov khoom siv hauv qab no.

  1. Raspberry pi, nyiam dua raspberry pi 3 rau nws ua hauv wireless LAN,
  2. 5V USB fais fab mov,
  3. microSD daim npav thiab
  4. microSD daim npav nyeem ntawv.

Koj kuj tseem yuav xav tau lub khoos phis tawj/desktop los teeb raspberry pi.

Kauj Ruam 3: Tau Raspberry Pi nce thiab khiav

Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav
Tau Raspberry Pi Up thiab Khiav

Thawj qhov kev txiav txim ntawm kev lag luam yog kom tau raspberry pi nce thiab khiav. Cov kauj ruam hauv qab no qhia koj kom ua raws qhov ntawd.

  1. Rub tawm raspbian tseeb los ntawm raspberrypi.org,
  2. Ntxig daim npav microSD rau hauv daim npav nyeem ntawv microSD,
  3. Txuas nws mus rau koj lub tshuab hauv tsev (laptop/desktop) thiab
  4. Nruab thiab qhib lwm yam kom hlawv raspbian ntawm daim npav microSD.

Kauj Ruam 4: Pab Kom Nkag Mus Nkag Nkag Nkag Nkag rau Raspberry Pi

Pab kom Nkag Mus Nkag Nkag Nkag Nkag rau Raspberry Pi
Pab kom Nkag Mus Nkag Nkag Nkag Nkag rau Raspberry Pi
Enabling Remote ID nkag mus rau Raspberry Pi
Enabling Remote ID nkag mus rau Raspberry Pi
Enabling Remote ID nkag mus rau Raspberry Pi
Enabling Remote ID nkag mus rau Raspberry Pi
Pab kom Nkag Mus Nkag Nkag Nkag Nkag rau Raspberry Pi
Pab kom Nkag Mus Nkag Nkag Nkag Nkag rau Raspberry Pi

Thaum raspbain tau hlawv rau daim npav microSD. Luam raspbian cov npe chaw nyob, qhib lub davhlau ya nyob twg ntawm lub tshuab hauv tsev, hloov cov npe mus theej cov npe hauv paus chaw nyob. Hloov kho cov ntaub ntawv npe cuam tshuam hauv lwm yam/network npe kom zoo li ib qho pom hauv cov duab txuas. Thaum ua tiav, tsim cov ntaub ntawv khoob hu ua 'ssh' hauv raspbian boot directory. Thaum kawg nqa daim npav microSD los ntawm daim npav nyeem ntawv thiab ntxig rau hauv raspberry pi. Tom qab ntawd tig rau koj tus raspberry pi.

Thaum Raspberry pi khau looj plab hlaub nrhiav pom IP chaw nyob ntawm raspberry pi siv network scanning daim ntawv thov zoo li npau taws IPScanner. Siv tau tus IP chaw nyob koj tuaj yeem nkag mus deb rau raspberry pi nrog ssh los ntawm davhlau ya nyob twg hauv linux thiab software zoo li putty hauv windows.

Kauj Ruam 5: SAMBA

SAMBA
SAMBA
SAMBA
SAMBA

Thaum koj nyob deb tus ID nkag mus rau raspberry pi tsim cov ntawv npe hu ua Qhia tawm uas muaj cov npe hu ua 'Test_folder' hauv cov npe hauv tsev. Peb yuav siv 'Test_folder' rau cov ntaub ntawv server server demo.

Samba yog lub npe ntawm cov software uas cia koj yooj yim faib cov ntaub ntawv hla lub network.

Ntawm raspberry pi peb tuaj yeem nruab samba nrog-

sudo apt-tau nruab samba samba-common-bin

Kauj Ruam 6: Kho SAMBA

Kho SAMBA
Kho SAMBA
Kho SAMBA
Kho SAMBA
Kho SAMBA
Kho SAMBA

Thaum SAMBA tau teeb tsa peb yuav tsum kho cov ntaub ntawv teeb tsa kom nws paub qhov twg los saib rau peb 'Test_folder'. Qhib cov ntaub ntawv teeb tsa nrog

sudo nano /etc/samba/smb.conf

thiab rau hauv qab ntawm cov ntawv no ntxiv cov chaw hauv qab no.

[Pi qhia tawm] tawm tswv yim = Pi sib qhia cov kab lus =/tsev/pi/Qhia tawm tuaj yeem nkag tau = yog sau tau = Yog tsuas yog qhua = tsis tsim daim npog ntsej muag = 0777 daim npog ntsej muag = 0777 pej xeem = yog qhua ok = yog

Thaum ua tiav, txuag thiab tawm.

Ua raws li qhov no peb yuav tsum rov pib dua SAMBA tus lej siv

sudo smbpasswd -a

Thaum kawg rov pib dua SAMBA nrog

sudo /etc/init.d/samba rov pib dua

thiab peb tau ua tiav.

Kauj ruam 7: Ua tau

Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav

Tam sim no qhib cov ntaub ntawv browser ntawm koj lub tshuab hauv tsev. Nyem rau 'txuas rau server' ntawm sab ntawv qhia zaub mov thiab ntaus

swb: //

Koj yuav tsum pom 'Test_folder' tshwm sim.

Qhov ntawd yog cov neeg.

Ua tsaug rau kev nyeem ntawv.

Pom zoo: