Cov txheej txheem:

Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network: 7 Kauj Ruam
Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network: 7 Kauj Ruam

Video: Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network: 7 Kauj Ruam

Video: Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network: 7 Kauj Ruam
Video: LOKY -Txhob Ua Yog Toog (Official MV )Hmong New Song 2024, Kaum ib hlis
Anonim
Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network
Txuas Koj Lub Headless Pi mus rau Lub Tsev Qiv Ntawv WiFi Network

Muaj pes tsawg lub sijhawm koj xav ua haujlwm ntawm koj lub taub hau Raspberry Pi cov haujlwm ntawm lub tsev qiv ntawv hauv zos, tsuas yog pom koj tus kheej nyam vim tias qhib WiFi network xav tau koj siv browser? Tsis txhob txhawj xeeb ntxiv, Cov Lus Qhia no nyob ntawm no los pab!

Peb yuav xav tias koj ua raws li peb Cov Lus Qhia ntawm yuav npaj koj li Raspberry Pi rau dab tsi.

Hauv qhov kev qhia no, peb yuav qhia koj yuav ua li cas:

  • siv lub xov tooj txuas nrog koj Raspberry Pi
  • teeb tsa pej xeem WiFi network hauv kab hais kom ua
  • siv kab hais kom ua browser w3m txuas rau pej xeem WiFi network

Nres tom ntej: yam peb yuav xav tau!

Kauj Ruam 1: Yam Peb Yuav Tsum Tau

Rau qhov haujlwm no, peb yuav xav tau:

  • Raspberry Pi (ib qho tsw qab, tab sis Pi 3 thiab Zero W tau teeb tsa hauv WiFi txuas)
  • ib daim npav microSD
  • ib tug serial cable
  • lub micro-USB charger
  • WiFi dongle (xaiv tau, nyob ntawm koj tus qauv Raspberry Pi)
  • Ethernet cable (yeem)

Cov lus qhia no xav tias koj ua raws peb phau ntawv qhia yuav npaj koj li Raspberry Pi li cas. Yog tias koj tsis muaj, mus xyuas nws tsuas yog nyob rau hauv rooj plaub!

Yog tias koj tau txais txhua yam, cia peb pib!

Kauj ruam 2: Nruab W3m Web Browser

Qhov teeb meem loj tshaj plaws ntawm kev txuas lub taub hau Raspberry Pi mus rau pej xeem WiFi network zoo li peb lub tsev qiv ntawv tau lees txais cov lus ntawm nplooj ntawv tsaws los ntawm kab hais kom ua. Cia nruab w3m, ib qho software uas yuav cia peb ua qhov ntawd!

Ua ntej koj mus rau lub tsev qiv ntawv, txuas koj li Raspberry Pi rau Is Taws Nem. Yog tias koj yuav siv lub network cable, tsuas yog ntsaws nws hauv koj lub Raspberry Pi lub network chaw nres nkoj thiab koj lub router yuav tsum txaus.

Yog tias koj yuav txuas koj Pi rau koj lub network WiFi, Raspberry Pi lub vev xaib tau qhia ntxaws qhia yuav ua li cas.

Txuas? Tom qab ntawd cia peb nruab w3m los ntawm kev ntaus cov hauv qab no hauv koj lub davhlau ya nyob twg:

sudo apt-tau nruab w3m

Yog tias koj tus Pi tau txuas nrog Is Taws Nem raug, w3m yuav tsum teeb tsa sai sai. Peb yuav luag tiav! Tam sim no ntim txhua yam, thiab cia mus rau lub tsev qiv ntawv!

Kauj ruam 3: Luam theej duab rau Tsev Qiv Ntawv WiFi Network

Luam theej duab rau Tsev Network WiFi Network
Luam theej duab rau Tsev Network WiFi Network
Luam theej duab rau Tsev Network WiFi Network
Luam theej duab rau Tsev Network WiFi Network

Thaum koj nyob ntawm lub tsev qiv ntawv, txuas koj li Raspberry Pi rau koj lub khoos phis tawj siv koj tus lej txuas thiab nkag mus rau nws nrog Putty. Lub sijhawm los tshuaj xyuas WiFi network nrog cov lus txib hauv qab no:

sudo iwlist wlan0 luam theej duab

Koj yuav tau txais daim ntawv teev npe ntev - Cov tes hauj lwm WiFi muaj nyob txhua qhov chaw! Nkag mus txog thaum koj pom lub npe ntawm koj lub tsev qiv ntawv WiFi network koj tab tom nrhiav - hauv peb cov ntaub ntawv JoCoLibrary Public Wireless. Nco tseg rau txhua tus ntawv sau qis lossis qis hauv lub npe ntawm WiFi network koj tab tom nrhiav, nws yuav yog qhov tseem ceeb rau tom qab!

Kauj Ruam 4: Ntxiv Lub Tsev Qiv Ntawv WiFi Network rau Koj Qhov Kev Nyiam Wireless

Lub sijhawm los ua qee qhov kev kho thiab teeb tsa koj tus Pi kom txuas tau ncaj qha rau WiFi network koj tab tom nrhiav. Ua ntej, qhib koj tus Pi cov ntawv sau los ntawm kev ntaus cov hauv qab no hauv koj lub davhlau ya nyob twg:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Thaum kawg ntawm cov ntawv, ntxiv cov hauv qab no:

network = {

ssid = "JoCoLibrary Public Wireless" key_mgmt = NONE scan_ssid = 1 id_str = "networkName"}

Tau kawg, hloov SSID lub npe nrog lub npe ntawm koj lub tsev qiv ntawv WiFi network.

Tom ntej no, lub sijhawm rov pib dua peb Pi's wireless adapter!

Kauj Ruam 5: Txheeb xyuas Kev Sib Txuas thiab rov pib dua WiFi Adapter

Txawm hais tias koj tab tom siv Pi 3's wifi-built lossis USB dongle ntawm Pi Zero lossis Pi computer qub, nws tuaj yeem pab rov pib dua koj lub wireless txuas tom qab teeb tsa.

Ua ntej tshaj hauv qab no hauv koj lub davhlau ya nyob twg:

sudo ifconfig

Yog tias peb tuaj yeem txuas rau lub network, zoo siab nrog koj, koj yuav tsum muaj tus IP chaw nyob! Yog tias koj tsis ua, tseem muaj qee yam uas koj tuaj yeem ua tau:

  • txheeb xyuas cov ntaub ntawv wpa-supplicant.conf rau kev sau ntawv thiab teeb tsa tsis raug;
  • reboot koj Raspberry Pi.

Tom qab ntawd, txhua yam yuav tsum ua haujlwm. Thaum kawg peb tuaj yeem txuas mus rau nplooj ntawv portal nplooj ntawv hauv cov kauj ruam tom ntej!

Kauj ruam 6: Txuas mus rau nplooj ntawv tsaws

Txuas mus rau nplooj ntawv tsaws
Txuas mus rau nplooj ntawv tsaws

Lub sijhawm qhib nplooj ntawv tsaws thiab lees txais nws cov lus siv! Hauv koj Pi lub davhlau ya nyob twg, ntaus ntawv

w3m

w3m yuav tsum pib thiab ntsaws cov nplooj ntawv ncaj qha: koj tuaj yeem siv cov xub xub ntawm koj lub computer kom nqes mus rau YES - Kuv lees "khawm" thiab ntaus Enter rau "nyem" nws. Thiab koj zoo mus! Nias Q ntawm koj cov keyboard kom txiav tawm tom qab nplooj ntawv hloov tshiab, thiab lees paub nrog Y.

Kauj Ruam 7: Kuaj Koj Kev Sib Txuas

Tam sim no koj tau lees txais cov ntsiab lus ntawm nplooj ntawv tsaws, koj yuav tsum txuas nrog Is Taws Nem. Muaj ob peb txoj hauv kev yooj yim los sim qhov ntawd:

  • qhib lwm lub vev xaib los ntawm w3m, lossis
  • sim hloov kho koj li Raspberry Pi nrog

    sudo apt-tau hloov tshiab

Yog tias koj Pi hloov kho tshiab ua tiav, zoo siab nrog koj ua tiav!

Pom zoo: