Cov txheej txheem:

Tiag tiag WiFi Extender: 5 Kauj Ruam
Tiag tiag WiFi Extender: 5 Kauj Ruam

Video: Tiag tiag WiFi Extender: 5 Kauj Ruam

Video: Tiag tiag WiFi Extender: 5 Kauj Ruam
Video: tu txiv tsi pab nkauj tawm tshiab-Cover(niam vamkhwb&paj yeeb& xis xyooj&ntxawm xyooj&niam npawglem) 2024, Kaum ib hlis
Anonim
Tiag tiag WiFi Extender
Tiag tiag WiFi Extender

Taw qhia

Tiag WiFi Extender yog WiFi rov ua dua raws li Raspberry Pi Zero W. Nws ua lwm txoj hauv kev zoo rau kev lag luam WiFi rov ua dua tshiab sib txuas tus nqi qis (qis dua 10USD) thiab kho tau zoo heev. Nws kuj tseem tuaj yeem ua haujlwm qee qhov kev txwv tsis pub tshaj tawm xws li pi-hole ib yam. Txoj haujlwm no yog ib yam zoo vim tias feem ntau ntawm cov phiaj xwm ntawm GitHub qhia pom yuav ua li cas thiaj tsim tau lub wireless AP los qhia siv Internet uas tau siv Ethernet.

Saib kuv qhov project ntawm Hackaday Hackaday

Saib kuv qhov project ntawm GitHub Github

Saib kuv qhov project ntawm Hackster Hackster

Kauj ruam 1: Yam yuavtsum tau kawm uantej

Rau qhov ua kom pom cov duab mus rau SD daim npav Kuv tau siv BalenaEtcher

  • Rub cov ntawv raspbian lite.iso los ntawm Raspberry Pi lub vev xaib
  • Thaum rub tawm, qhib BalenaEtcher, xaiv cov ntawv.iso, xaiv daim npav SD thiab nyem lub pob nyem thiab tos kom cov txheej txheem tiav.
  • Tom qab ntawd, qhib qhov muab faib khau raj thiab sab hauv nws, tsim cov ntawv sau dawb uas muaj npe ssh uas tsis muaj kev txuas ntxiv.
  • Thaum kawg, tsim lwm cov ntawv sau hu ua wpa_supplicant.conf hauv tib qho kev faib faib thiab muab cov ntsiab lus hauv qab no tso.

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdevupdate_config = 1 lub teb chaws = IN network = {ssid = "mywifissid" psk = "mywifipassword" key_mgmt = WPA-PSK}

Hloov mywifissid nrog lub npe ntawm WiFi thiab mywifipassword nrog tus password wifi

  • Lub zog ntawm Raspberry pi. Txhawm rau nrhiav nws tus IP, koj tuaj yeem siv lub cuab yeej zoo li Npau taws IP Scanner thiab luam theej duab subnet
  • Thaum koj pom tus IP, SSH rau koj Pi siv lub cuab yeej zoo li PuTTY lossis tsuas yog ssh [email protected], nkag mus rau lo lus zais raspberry thiab koj zoo mus
  • Thaum kawg, hloov kho cov npe pob thiab hloov kho pob khoom thiab rov pib Pi.

sudo apt hloov tshiab -y

sudo apt hloov tshiab -y sudo reboot

Kauj ruam 2: Teeb Systemd-networkd

Los ntawm ArchWiki

systemd-networkd yog daemon system uas tswj kev teeb tsa network. Nws kuaj pom thiab teeb tsa cov cuab yeej network raws li lawv tshwm sim; nws tseem tuaj yeem tsim cov cuab yeej siv network sib txuas.

Txhawm rau txo qhov xav tau pob ntxiv, networkd tau siv txij li nws twb tau tsim rau hauv qhov pib ua haujlwm, yog li ntawd, tsis xav tau dhcpcd.

Tiv thaiv kev siv dhcpd

Nco tseg: Nws yuav tsum tau khiav raws li hauv paus

sudo systemctl daim npog ntsej muag network.service dhcpcd.service

sudo mv/etc/network/interfaces/etc/network/interfaces ~ sed -i '1i resolvconf = TSIS' /etc/resolvconf.conf

Siv cov inbuilt systemd-networkd

sudo systemctl pab systemd-networkd.service systemd-solved.service

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Kauj Ruam 3: teeb tsa Wpa-thov

wlan0 ua AP

Tsim cov ntawv tshiab uas siv cov lus txib

sudo nano /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

Ntxiv cov ntsiab lus hauv qab no thiab khaws cov ntawv los ntawm nias Ctrl X, Y thiab Enter

lub teb chaws = IN

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev update_config = 1 network = {ssid = "TestAP-plus" hom = 2 key_mgmt = WPA-PSK psk = "12345678" zaus = 2412}

Hloov TestAP-ntxiv thiab 12345678 nrog koj qhov txiaj ntsig xav tau.

Cov ntaub ntawv teeb tsa no yog siv rau onboard wifi Adapter wlan0 uas yuav siv los tsim lub wireless nkag mus.

Muab tus neeg siv nyeem, sau tso cai rau cov ntawv

sudo chmod 600 /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

Rov pib dua wpa_supplicant kev pabcuam

sudo systemctl lov tes taw wpa_supplicant.service

sudo systemctl pab [email protected]

Kauj ruam 4:

wlan1 raws li tus neeg siv khoom

Tsim cov ntawv tshiab uas siv cov lus txib

sudo nano /etc/wpa_supplicant/wpa_supplicant-wlan1.conf

Ntxiv cov ntsiab lus hauv qab no thiab khaws cov ntawv los ntawm nias Ctrl X, Y thiab Enter

lub teb chaws = IN

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdev update_config = 1 network = {ssid = "Asus RT-AC5300" psk = "12345678"}

Hloov Asus RT-AC5300 thiab 12345678 nrog koj li Router SSID thiab tus password.

Cov ntaub ntawv teeb tsa no yog siv rau USB WiFi Adapter wlan01 uas yuav siv los txuas rau Wireless Router.

Muab tus neeg siv nyeem, sau tso cai rau cov ntawv

sudo chmod 600 /etc/wpa_supplicant/wpa_supplicant-wlan1.conf

Rov pib dua wpa_supplicant kev pabcuam

sudo systemctl lov tes taw wpa_supplicant.service

sudo systemctl pab [email protected]

Kauj ruam 5: Configuring Interfaces

Tsim cov ntawv tshiab uas siv cov lus txib

sudo nano /etc/systemd/network/08-wlan0.network

Ntxiv cov ntsiab lus hauv qab no thiab khaws cov ntawv los ntawm nias Ctrl X, Y thiab Enter

[Sib phim]

Npe = wlan0 [Network] Chaw Nyob = 192.168.7. IPMasquerade = yog IPForward = yog DHCPServer = yog [DHCPServer] DNS = 1.1.1.1

Tsim cov ntawv tshiab siv cov lus txib

sudo nano /etc/systemd/network/12-wlan1.network

Ntxiv cov ntsiab lus hauv qab no thiab khaws cov ntawv los ntawm nias Ctrl X, Y thiab Enter

[Sib phim]

Npe = wlan1 [Network] DHCP = yog

Reboot Raspberry Pi siv

sudo rov pib dua

Pom zoo: