Cov txheej txheem:
- Kauj ruam 1: Yees duab
- Kauj ruam 2: Pib-up Raspberry Pi
- Kauj Ruam 3: Hloov Kho Raspberry Pi
- Kauj Ruam 4: Txhim Kho Hostadp thiab Bridge-utils
- Kauj ruam 5: Lov tes taw DHCP Config rau Wlan0 thiab Eth0
- Kauj Ruam 6: Tsim Choj Br0
- Kauj ruam 7: Kho kom raug/etc/network/interfaces
- Kauj ruam 8: Kho kom raug /etc/hostapd/hostapd.conf
- Kauj ruam 9: Hloov Kho zaum kawg/etc/default/hostapd
- Kauj ruam 10: Ua tiav
Video: Siv Raspberry Pi 3 Raws li Router: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Raws li Wikipedia, tus router yog lub cuab yeej sib txuas uas xa cov ntaub ntawv sib txuas ntawm cov khoos phis tawj computer. Yog tias peb rhuav tshem lub wireless router, peb yuav zaum pom daim ntawv thov tshwj xeeb uas ua haujlwm cov ntaub ntawv ntim khoom thiab ntu RF uas ua haujlwm sib txuas wireless.
Koj paub dab tsi ntxiv muaj tus txheej txheem thiab ntu RF.
TUS TSEEM CEEB yog tus qauv raspberry pi 3. Yog li hauv qhov MiniProject no, peb yuav hloov pauv raspberry pi los ua tus router.
Kauj ruam 1: Yees duab
Ua tibzoo saib cov vis dis aus rau cov lus qhia dav dav hauv 3 feeb.
Kauj ruam 2: Pib-up Raspberry Pi
Thawj kauj ruam yog kom tau txais koj cov raspberry pi nce thiab khiav. Kev ua haujlwm pib qhia hauv Raspberry pi lub vev xaib yog cov peev txheej zoo tshaj plaws rau qhov no.
Nov yog qhov txuas.
Mus rau theem tom ntej thaum koj muaj koj tus raspberry pi nce thiab khiav.
Kauj Ruam 3: Hloov Kho Raspberry Pi
Ua ntej peb yuav hloov kho daim ntawv teev npe muaj los ntawm cov chaw cia khoom siv
sudo apt-tau hloov tshiab
Thaum ua tiav, peb tuaj yeem teeb tsa cov pob khoom kawg no siv
sudo apt-tau hloov tshiab
Qhov no yuav siv sijhawm ib ntus nyob ntawm koj qhov internet txuas ceev.
Kauj Ruam 4: Txhim Kho Hostadp thiab Bridge-utils
Thaum raspberry pi tau hloov kho.
peb xav tau los teeb tsa tus neeg siv chaw keeb kwm yav dhau los hu ua hostapd, siv rau cov ntsiab lus nkag tau wireless thiab kev lees paub cov servers. Peb tseem yuav xav tau pob hu ua choj-siv rau kev tswj cov khoom siv choj.
sudo apt-tau nruab hostapd choj-siv
Peb yuav tsum kaw qee qhov kev pabcuam tshiab uas peb nyuam qhuav teeb tsa ua nws siv
sudo systemctl nres hostapd
Debug- Qee lub sij hawm raspbian yuav tso tawm cov lus hais hostapd thiab choj-cov khoom siv tsis pom rau nruab hais kom ua. Tsis txhob txhawj. Khiav 'sudo apt-tau hloov tshiab' ib zaug ntxiv thiab nws yuav tsum tau daws.
Kauj ruam 5: Lov tes taw DHCP Config rau Wlan0 thiab Eth0
Tam sim no, peb teeb tsa txheej txheem keeb kwm yav dhau dhcp tsis txhob cia li teeb tsa wlan0 thiab eth0 cuam tshuam. Peb ua qhov no los ntawm kev ua raws ob kab
tsis lees paub qhov chaw wlan0
rejectinterfaces eth0
qhov kawg ntawm /etc/dhcpcd.conf cov ntaub ntawv, qhib nws siv.
sudo nano /etc/dhcpcd.conf
Kauj Ruam 6: Tsim Choj Br0
Tom ntej no, peb tsim tus choj br0 siv brctl hais kom ua uas yog tus tswj hwm choj Ethernet
sudo brctl ntxiv br0
thiab siv
sudo brctl addif br0 eth0
hais kom peb ntxiv eth0 ua ib qho ntawm cov chaw nres nkoj rau choj br0.
Kauj ruam 7: Kho kom raug/etc/network/interfaces
Tam sim no qhib cov ntaub ntawv hu ua cuam tshuam hauv /etc /network directory
sudo nano/etc/network/interfaces
thiab ntxiv tsib kab no.
pub-hotplug wlan0
iface wlan0 inet phau ntawv pib br0 iface br0 inet dhcp bridge_ports eth0 wlan0
Thawj kab pib wlan0 interface ntawm qhov xwm txheej kub. Kab thib ob tsim lub network sib txuas yam tsis muaj IP chaw nyob uas ib txwm ua tiav rau cov khoom sib txuas. Kab thib peb pib br0 interface ntawm khau raj. Forth kab pab ua haujlwm tsis siv neeg tus IP chaw rau br0 interface siv DHCP server thiab thaum kawg kab thib tsib txuas eth0 interface nrog wlan0. Txuag cov ntawv no thiab kaw nws.
Kauj ruam 8: Kho kom raug /etc/hostapd/hostapd.conf
Tom ntej no, peb yuav teeb tsa peb lub ntsiab lus siv wireless, peb tuaj yeem ua qhov no siv cov ntawv hu ua hostapd.conf hauv /etc /hostapd nplaub tshev. Qhib nws
sudo nano /etc/hostapd/hostapd.conf
thiab muab cov kab no tso.
interface = wlan0
choj = br0 ssid = miniProjects hw_mode = g channel = 7 wmm_enabled = 0 macaddr_acl = 0 auth_algs = 1 ignore_broadcast_ssid = 0 wpa = 2 wpa_passphrase = subscribe wpa_key_mgmt = WPA-PSK wpa_pairwise = TKIP rsn_pairwise =
Tus nqi uas tau muab rau ssid yog lub npe uas nkag mus siv tau yuav tshaj tawm nws lub neej. Tsib txoj kab kawg tau tsom mus rau kev txheeb xyuas qhov tseeb thiab kev nyab xeeb ntawm kev nkag mus. Tus nqi ntawm wpa_passsphrase tau siv los ua tus lej nkag nkag uas tau sau npe hauv peb kis. Nov yog qhov txuas rau daim ntawv, qhov twg koj tuaj yeem pom cov ntsiab lus ntawm txhua qhov sib txawv uas peb tau siv ntawm no.
Kauj ruam 9: Hloov Kho zaum kawg/etc/default/hostapd
Thaum kawg, qhib hostapd cov ntaub ntawv hauv /etc /default directory
sudo nano/etc/default/hostapd
tsis pom zoo DAEMON_CONF kab thiab muab txoj hauv kev rau cov ntaub ntawv peb nyuam qhuav tsim.
DAEMON_CONF = "/etc/hostapd/hostapd.conf"
Qhov no ua tiav teeb tsa rau raspberry pi los ua lub router.
Kauj ruam 10: Ua tiav
Tam sim no, lub zog-ntawm koj tus raspberry pi nrog Ethernet cable txuas.
Koj yuav tsum pom raspberry pi tshaj tawm ssid thiab siv internet.
Ua tsaug rau kev nyeem ntawv.
Qhia rau kuv paub yog tias koj ntsib teeb meem thaum tsim koj tus kheej router.
Thov pov npav rau cov lus qhia no, yog tias koj nyiam.
Pom zoo:
Siv Smartphone Raws Li Tsis Siv Tus Kheej Ntsuas Kub / Tus Ntsuas Ntsuas Kub: 8 Kauj Ruam (nrog Duab)
Siv Smartphone Raws Li Tsis Siv Tus Kws Ntsuas Kub / Tus Ntsuas Kub Portable: Ntsuas lub cev kub nrog qhov tsis sib cuag / tsis sib cuag zoo li rab phom thermo. Kuv tsim txoj haujlwm no vim tias Thermo Gun tam sim no kim heev, yog li kuv yuav tsum tau txais lwm txoj hauv kev los ua DIY. Thiab lub hom phiaj yog ua nrog cov peev txheej qis .SuppliesMLX90614Ardu
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): 4 Cov Kauj Ruam (nrog Duab)
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): Nyob zoo, hnub no kuv yuav piav qhia yuav ua li cas thiaj ua rau koj tus kheej me ntsis Huab cua raws li lub tshuab hluav taws xob. thiab lub teeb pom kev zoo.Tsis txhob cia siab tias nws yuav ua txhua zaj nkauj lossis chord progr
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Nkawm khau Hawk: Tes Tes Taw Tswj Cov Neeg Hlau Siv Duab Ua Raws Li Kev Sib Tham: 13 Cov Kauj Ruam (nrog Duab)
Nkawm khau Hawk: Tes Tes Taw Tswj Tus Neeg Hlau Siv Duab Ua Raws Li Kev Sib Tham: Gesture Hawk tau nthuav tawm hauv TechEvince 4.0 raws li cov duab yooj yim ua raws tib neeg-tshuab interface. Nws cov nqi hluav taws xob nyob hauv qhov tseeb tias tsis muaj lub ntsuas ntsuas ntxiv lossis hnav tshwj tsis yog lub hnab looj tes yuav tsum tau tswj lub tsheb neeg hlau uas ua haujlwm sib txawv
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): 22 Cov Kauj Ruam (nrog Duab)
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): Drones yog cov khoom ua si nrov heev thiab cov cuab yeej niaj hnub no. Koj tuaj yeem pom cov kws tshaj lij thiab txawm tias pib ua haujlwm drones thiab cov khoom siv ya hauv khw. Kuv muaj plaub lub drones (quadcopters thiab hexcopters), vim tias kuv nyiam txhua yam uas ya, tab sis lub davhlau 200th tsis yog