Cov txheej txheem:

Kev Teeb Raspberry Pi rau Tus Neeg Sawv Cev Npe: 6 Cov Kauj Ruam
Kev Teeb Raspberry Pi rau Tus Neeg Sawv Cev Npe: 6 Cov Kauj Ruam

Video: Kev Teeb Raspberry Pi rau Tus Neeg Sawv Cev Npe: 6 Cov Kauj Ruam

Video: Kev Teeb Raspberry Pi rau Tus Neeg Sawv Cev Npe: 6 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Teeb tsa Raspberry Pi rau Tus Kws Saib Xyuas Npe
Teeb tsa Raspberry Pi rau Tus Kws Saib Xyuas Npe

Yog tias koj xav kom koj Raspberry Pi nkag tau rau hauv internet ntawm tus neeg rau zaub mov npe, koj yuav tsum teeb tsa koj tus Pi siv tus neeg rau zaub mov ua ntej koj tuaj yeem nkag mus rau internet. Muaj ob txoj hauv kev uas koj tuaj yeem teeb tsa tus neeg rau zaub mov. Tab sis, txawm li cas los xij hauv thawj txoj hauv kev rub tawm hauv-davhlau ya nyob twg (zoo li 'git clone' thiab 'wget') tsis ua haujlwm thiab yog li qhov kev qhia no tau tsom mus rau txoj kev thib ob uas ua haujlwm tsis muaj teeb meem. Cov txheej txheem no tsis tsuas yog ua haujlwm rau Raspbian tab sis yuav luag txhua lwm OS (Kali Linux, Ubuntu, thiab lwm yam) rau Raspberry Pi.

Kauj ruam 1: Yam Koj Yuav Tsum Xav Tau

1. Tus tswv tsev lossis IP chaw nyob thiab chaw nres nkoj ntawm koj tus neeg rau zaub mov npe2. Tus neeg siv lub npe lossis tus lej zais (qhov yuav tsum tau ua no tsis tas yuav tsum yog koj tus neeg rau zaub mov npe tsis xav tau tus username thiab password)

Kauj ruam 2: Kho koj li Raspberry Pi

Koj yuav tsum teeb tsa peb qhov kev hloov pauv ib puag ncig ("http_proxy", "https_proxy", thiab "no_proxy") kom koj Raspberry Pi paub nkag mus siv internet ntawm tus neeg rau zaub mov npe.

Kauj Ruam 3: Tsim Ib puag ncig hloov pauv

Tsim Ib puag ncig hloov pauv
Tsim Ib puag ncig hloov pauv

Koj yuav tsum qhib cov ntawv " /etc /environment" siv nano command. Open Terminal thiab ntaus: sudo nano /etc /ib puag ncig Tom qab qhib cov ntawv hom: 1) yog tias koj tsis muaj lub npe siv thiab tus lej nkag, ntaus: export http_proxy = "https:// proxyipaddress: proxyport" export https_proxy = "https:// proxy IP address: proxyport" export no_proxy = "localhost, 127.0.0.1" 2) yog tias koj lub npe server muaj tus username thiab password, ntaus: export http_proxy = "https:// username: password@proxyipaddress: proxyport" export https_proxy = "https:// username: password@proxyipaddress: proxyport" export no_proxy = "localhost, 127.0.0.1" Tom qab nias no: 1) Ctrl+ x2) y3) nkag mus rau txuag thiab tawm.

Kauj ruam 4: Hloov kho Sudoers

Hloov kho Sudoers
Hloov kho Sudoers

Txhawm rau qhov no los ua haujlwm sudo (piv txwv li rub tawm thiab teeb tsa software) los siv qhov hloov pauv ib puag ncig tshiab, koj yuav tsum tau hloov kho sudoers. Ua ntej thiab ntaus: 'sudo visudo' Tam sim no nrhiav qhov tsis raug thiab ntxiv kab no hauv qab no kawg 'Defaults' 'Defaults env_keep+= "http_proxy https_proxy no_proxy"' Nias: 1) Ctrl+x 2) y3) nkag mus rau txuag thiab tawm.

Kauj ruam 5: Reboot

Yog tsis muaj reboot qhov kev hloov pauv no yuav tsis ua haujlwm. Yog li mus tom ntej thiab rov pib dua koj li Raspberry Pi thiab koj ua tiav. Tam sim no koj yuav tsum muaj peev xwm nkag tau internet ntawm tus neeg rau zaub mov npe. Yog tias koj ntsib teeb meem thov qhia rau kuv paub hauv cov lus!:)

Kauj Ruam 6: Txog Kuv Tus Kheej

Kuv lub npe yog Kanad Nemade. Kuv muaj 15 xyoos. Loj nerd Robots thiab Tech cuam tshuam txog yam. Nov yog kuv qhov lus qhia thib ob thiab thov txim rau qhov ua yuam kev hauv cov qauv sau ntawv: D

Nov yog qhov txuas rau kuv thawj zaug tshaj tawm:

Pom zoo: