Cov txheej txheem:

Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!: 25 Cov Kauj Ruam
Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!: 25 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!: 25 Cov Kauj Ruam

Video: Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!: 25 Cov Kauj Ruam
Video: Начало → Изучайте английский → Освойте ВСЕ ОСНОВЫ АНГЛИЙСКОГО ЯЗЫКА, которые вам НУЖНО знать! 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!
Yuav Ua Li Cas Teeb Pi-Qhov ntawm Raspberry Pi, Network Dav Ad Blocker !!

Rau qhov haujlwm no, koj yuav xav tau:

Raspberry Pi muaj peev xwm txuas rau internet

Ib daim npav Micro SD uas siv Raspbian Lite

Keyboard (Txhawm rau teeb tsa SSH)

Ib Yam Khoom Thib Ob (Txhawm rau nkag mus rau Lub Vev Xaib Portal)

Kev paub yooj yim ntawm UNIX ntxiv rau kev sib tham ntawm Pi (uas yog ob qho tib si khaws tau yooj yim thiab tsis tas yuav tsum tau yog tias koj nrawm khaws cov khoom thiab ntse)

Kauj ruam 1: Txuas rau Internet

Txuas mus rau Internet
Txuas mus rau Internet

Tom qab nkag mus rau Pi khiav cov cai hauv qab no

sudo raspi-teeb tsa

Nkag mus rau Network Options thiab Xaiv nws.

Kauj Ruam 2: Sau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Ib Yam Li Tus Kheej

Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej
Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej
Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej
Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej
Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej
Nkag mus rau Lub Npe Network (lossis SSID Yog Koj Zoo Nkauj) Zoo Li Tus Kheej

Tom qab Nyem rau ntawm cov kev xaiv network, sau lub npe ntawm koj lub network (tseem hu ua SSID), nyem nkag mus, thiab tom qab ntawd nkag tus password ntawm lub network ntawd, tso nws tseg yog tias tsis muaj.

Kauj ruam 3: Pab kom SSH

Pab kom SSH
Pab kom SSH
Pab kom SSH
Pab kom SSH
Pab kom SSH
Pab kom SSH

Tom qab qhib lub network koj yuav raug xa rov qab mus rau tib nplooj ntawv. Lub sijhawm no xaiv Advanced Options. Tom qab ntawv xaiv SSH thiab nias nkag mus. Ntaus tiav thiab rov qab mus rau kab hais kom ua. Khiav cov hauv qab no kom rov pib dua koj lub pi thiab siv tag nrho cov kev hloov pauv tag nrho.

sudo rov pib dua

Kauj Ruam 4: SSH Rau Koj Raspberry Pi

SSH Rau Koj Raspberry Pi
SSH Rau Koj Raspberry Pi
SSH Rau Koj Raspberry Pi
SSH Rau Koj Raspberry Pi

Qhov no tso cai rau koj siv koj li raspberry pi los ntawm lwm lub khoos phis tawj. Ntawm Mac, kuv lub khoos phis tawj, txhua yam koj yuav tsum ua yog sau tus IP chaw nyob ntawm koj tus pi thiab tus lej zais.

ssh pi@[ip chaw nyob ntawm no]

nws yuav teb nrog qhov no yog tias koj tau ua nws raug:

pi@[ip chaw nyob ntawm no] tus password:

Sau koj tus pi lo lus zais. Lub neej ntawd yog raspberry.

Kauj Ruam 5: Txhim Kho Pi-Hole, Network Wide Ad Blocking Service

Txhim kho Pi-Hole, Network Wide Ad Blocking Service
Txhim kho Pi-Hole, Network Wide Ad Blocking Service

Khiav cov lus txib no thiab cia tus pi zaum li ob peb feeb. Nrog rau qhov muaj hmoo koj yuav tau txais qhov kev sib tham no kom tshwm tuaj.

curl -sSL https://install.pi-hole.net | tsoo

Kauj ruam 6: Xaiv Interface

Xaiv Interface
Xaiv Interface

Koj tuaj yeem xaiv ethernet lossis wifi raws li koj tus pi txuas nrog internet li cas.

Kauj Ruam 7: Xaiv Koj Tus Kws Tshaj Lij DNS Tshaj Tawm

Xaiv Koj Tus Zov Me Nyuam DNS Tus Zov Me Nyuam
Xaiv Koj Tus Zov Me Nyuam DNS Tus Zov Me Nyuam

Kuv xaiv huab flare, koj tuaj yeem xaiv qhov twg koj xav tau.

Kauj Ruam 8: Xaiv Cov Databases Uas Koj Xav Siv Los Thaiv Kev Tshaj Tawm

Xaiv Qhov Databases Koj Xav Siv Los Thaiv Kev Tshaj Tawm
Xaiv Qhov Databases Koj Xav Siv Los Thaiv Kev Tshaj Tawm

Kuv tau xaiv lawv txhua tus, koj tuaj yeem xaiv qhov twg koj xav tau lossis koj tuaj yeem xaiv tsis tau, thiab ua koj tus kheej cov npe ntawm cov vev xaib los thaiv.

Kauj Ruam 9: Xaiv Cov Cai twg uas Koj Xav Kom Thaiv Tshaj

Xaiv Cov Kev Cai twg uas Koj Xav Kom Thaiv Tshaj
Xaiv Cov Kev Cai twg uas Koj Xav Kom Thaiv Tshaj

Kuv xaiv ob leeg.

Kauj Ruam 10: Txheeb Xyuas Koj Tus IP Chaw Nyob, Hloov Nws Yog Koj Xav Tau

Txheeb xyuas koj tus IP chaw nyob, hloov nws yog tias koj xav tau
Txheeb xyuas koj tus IP chaw nyob, hloov nws yog tias koj xav tau

Kauj ruam 11: Nruab Admin Web Interface

Nruab Admin Web Interface
Nruab Admin Web Interface

Qhov no yog qhov yuav tsum tau ua, xyuas kom tseeb tias nws tau tshuaj xyuas ua ntej mus.

Kauj Ruam 12: Nruab Web Server

Nruab Web Server
Nruab Web Server

Koj xav tau Web server teeb tsa nkag mus rau Admin Page, yog li nws zoo nkauj heev koj nruab nws.

Kauj Ruam 13: Xaiv Wether lossis Tsis Nkag Mus Nug Cov Lus Nug

Xaiv Wether lossis Tsis Nkag Rau Cov Lus Nug
Xaiv Wether lossis Tsis Nkag Rau Cov Lus Nug

Kev txiav cov lus nug tsuas yog txhais tau tias kaw cov ntaub ntawv ntawm nplooj ntawv thov, txheeb xyuas nws yog tias koj xav tau.

Kauj Ruam 14: Pob Txheej Txheem

Pob Txheej Txheem
Pob Txheej Txheem

Nws yuav teeb tsa qee pob khoom ntxiv, tsuas yog mus ua koj tus kheej kas fes lossis qee yam zoo li ntawd.

Kauj Ruam 15: Xaiv Hom Tsis Pub Leej Twg Paub

Xaiv Hom Ntiag Tug
Xaiv Hom Ntiag Tug

Los ntawm Pi-Hole Cov Ntaub Ntawv PDF:

Theem 1 - Nkag Mus Nkag Nkag

Qhia thiab khaws tag nrho cov npe raws li zais

  • Qhov chaw no xiam oob qhab:

    • Sab saum toj
    • Sab saum toj tshaj tawm

Theem 2 - Nkaum Nkaum thiab Cov Neeg Siv Khoom

Qhia thiab khaws tag nrho cov npe raws li zais thiab cov neeg siv khoom li 0.0.0.0

  • Qhov chaw no xiam oob qhab:

    • Sab saum toj
    • Sab saum toj tshaj tawm
    • Cov Neeg Siab Zoo
    • Cov neeg siv sijhawm

Qib 3 - Hom tsis qhia npe (Tsis qhia txhua yam)

Xiam tag nrho cov ntsiab lus tshwj tsis yog feem ntau tsis qhia npe txheeb cais

  • Qhov chaw no xiam oob qhab:

    • Sab saum toj
    • Sab saum toj tshaj tawm
    • Cov Neeg Siab Zoo
    • Cov neeg siv sijhawm
    • Qhib Log
    • Ntev-ntev database logging

Qib 4 - Txheeb cais

Lov tes taw txhua qhov kev txheeb cais. Txawm tias cov lus nug cov lus nug yuav tsis muaj. Ib qho ntxiv, koj tuaj yeem kaw kev nkag mus rau hauv cov ntaub ntawv /var/log/pihole.log siv sudo pihole txiav tawm. Nco tseg tias - vim kev xiam oob qhab kev ua haujlwm - regex thaiv tsis muaj nyob rau qib 4.

Kauj Ruam 16: Koj Ua tiav Teeb Pi-Qhov

Koj tau ua tiav teeb Pi-Qhov
Koj tau ua tiav teeb Pi-Qhov

Nco tseg tus IP chaw nyob nrog rau tus lej nkag mus hauv qab ntawm qhov hais kom sai.

Kauj Ruam 17: Nkag Mus Rau Lub Vev Xaib Interface

Nkag mus rau Web Interface
Nkag mus rau Web Interface
Nkag mus rau Web Interface
Nkag mus rau Web Interface

Txhawm rau nkag mus rau lub vev xaib sib tham, sau cov hauv qab no rau hauv koj lub web browser siv tus IP chaw nyob sau tseg los ntawm cov kauj ruam kawg.

[IP chaw nyob ntawm koj tus pi]/admin/

Nyem nkag mus rau ntawm sab laug bar.

Kauj Ruam 18: Nkag Mus Rau

Teev Npe
Teev Npe

Siv tus password los ntawm Kauj Ruam 16 txhawm rau nkag mus.

Kauj ruam 19: Nkag Mus Rau

ID nkag mus !!
ID nkag mus !!

Thaum nkag mus, nyem qhov chaw nyob rau sab laug bar.

Kauj Ruam 20: Nrhiav Koj Qhov Chaw Nyob DNS

Nrhiav Koj Qhov Chaw Nyob DNS
Nrhiav Koj Qhov Chaw Nyob DNS

Ntawm nplooj ntawv teeb tsa, hauv System, nrhiav cov chaw nyob ib sab IPv4, thiab IPv6. Nov yog koj li DNS chaw nyob lossis chaw nyob. Kuv tus kws muab internet tsis muaj IPv6 IP chaw nyob, yog li kuv tsuas yog txhawj xeeb txog IPv4.

Kauj ruam 21: Ntawm koj lub cuab yeej…

Ntawm koj lub cuab yeej…
Ntawm koj lub cuab yeej…
Ntawm koj lub cuab yeej…
Ntawm koj lub cuab yeej…

Mus rau qhov chaw lossis txhua qhov chaw koj teeb tsa koj li kev siv internet. Mus rau koj nplooj ntawv WiFi.

Kauj Ruam 22: Ntawm Koj Lub Ntaus Ntawv… Cont

Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont

Nyem rau khawm cov ntaub ntawv, thiab tom qab ntawd nyem Kho DNS

Kauj Ruam 23: Ntawm Koj Lub Ntaus Ntawv… Cont

Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont

Hloov DNS rau phau ntawv, thiab ntxiv ib qho tshiab.

Kauj Ruam 24: Ntawm Koj Lub Ntaus Ntawv… Cont

Ntawm Koj Lub Xov Tooj… Cont
Ntawm Koj Lub Xov Tooj… Cont

Ntxiv IPv4 thiab IPv6 chaw nyob ntawm no tso tawm ntawm koj tus Pi-Hole Cov nplooj ntawv nplooj ntawv pom hauv Kauj Ruam 20. Tom qab ntawd rho tawm qhov qub.

Kauj Ruam 25: Cov txiaj ntsig…

Cov txiaj ntsig…
Cov txiaj ntsig…

Tom qab tsuas yog ob peb feeb ntawm kev tshawb nrhiav, tons ntawm kev tshaj tawm raug thaiv. Pi-Hole txawm tias muaj lub txee nyob ntawm kev tshaj tawm. Txawm hais tias nws zoo li kuv tus pi tau plam ntau qhov kev tshaj tawm, nws tsis tau. Tsis muaj ADS txhua qhov tshwm sim thaum kuv tshawb nrhiav. Nws yog amazing zoo nkauj. Nrog rau qhov muaj hmoo, koj yuav ua haujlwm ib yam nkaus !!

Pom zoo: