Cov txheej txheem:

Pihole thiab Samba Zaub: 6 Kauj Ruam
Pihole thiab Samba Zaub: 6 Kauj Ruam

Video: Pihole thiab Samba Zaub: 6 Kauj Ruam

Video: Pihole thiab Samba Zaub: 6 Kauj Ruam
Video: Koj mus ua neej zoo li cas lawm 11/16/2018 2024, Kaum ib hlis
Anonim
Pihole thiab Samba Zaub
Pihole thiab Samba Zaub
Pihole thiab Samba Zaub
Pihole thiab Samba Zaub

Hauv qhov kev qhia no, kuv yuav qhia koj yuav ua li cas thiaj ua tau zaub uas qhia koj PiHole stats thiab Samba stats.

Khoom siv

  • 1 x Raspberry Pi
  • 1x Raspberry Pi zaub

Kauj ruam 1: Teeb Pihole

Txhawm rau nruab Pihole tsuas yog qhib lub davhlau ya nyob twg thiab nkag mus rau cov cai hauv qab no. Ua raws li kev teeb tsa thiab teeb nws li koj xav tau. Tsuas yog tsis txhob hnov qab sau tus password!

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

Kauj ruam 2: Teeb Samba

Txhawm rau teeb tsa thiab teeb tsa samba, qhib lub davhlau ya nyob twg thiab nkag mus rau cov cai hauv qab no.

sudo apt-tau nruab samba samba-common-bin

sudo mkdir -m 1777 /qhia tawm

sudo leafpad /etc/samba/smb.conf

Tom qab ntawd nkag mus rau tus lej no rau hauv tus editor:

[pib]

path =/share writeable = Yog tsim daim npog = 0777 daim npog qhov ncauj = 0777 pej xeem = tsis yog

Tom qab ntawv khiav cov lus txib no los tsim tus neeg siv, thiab tom qab ntawd nkag mus rau tus password rau tus neeg siv:

sudo smbpasswd -a pib

Thaum kawg, khiav:

sudo systemctl rov pib dua smbd

Kauj ruam 3: Teeb tus Code

Txhawm rau teeb tsa cov cai, khiav:

wget https://raw.githubusercontent.com/barleybobs/piStats/master/setup.sh 2 Kudos Rep

Tom qab ntawd khiav:

chmod +x setup.sh

Tom qab ntawv, qhib File Manager thiab mus rau /home /pi thiab nyem qhov teeb tsa setup.sh thiab xaiv Run In Terminal. Qhov no yuav teeb tsa cov cai thiab rub tawm qhov kev cia siab.

Kauj ruam 4: Teeb Pib Pib

Tam sim no peb yuav teeb tsa pi kom thaum pib nws qhib cov zaub hauv hom puv npo. Txhawm rau ua qhov no:

mkdir /home/pi/.config/autostart

nano /home/pi/.config/autostart/pistats.desktop

Tom qab ntawd nkag mus:

[Desktop nkag]

Hom = Daim Ntawv Thov Npe = PiStats Exec = bash -c 'pw 1 && xterm -hold -fullscreen -hold -e "sudo python3 /home/pi/piStats/main.py" && uncluttered -idle 0.01 -root'

Kauj Ruam 5: Txuas rau Koj Samba File Server

Txuas rau Koj Tus Neeg Siv Khoom Samba
Txuas rau Koj Tus Neeg Siv Khoom Samba
Txuas rau Koj Tus Neeg Siv Khoom Samba
Txuas rau Koj Tus Neeg Siv Khoom Samba

Txhawm rau txuas rau koj cov ntaub ntawv server, qhib File Explorer thiab xaiv Lub PC no ces xaiv daim ntawv qhia network tsav tom qab ntawd hauv daim nplaub tshev muab:

raspberrypi / pishare

Kauj Ruam 6: Txuas rau Pihole

Txhawm rau txuas rau Pihole Kuv qhia koj siv lub vev xaib no muaj txiaj ntsig rau yuav hloov pauv koj li DNS li cas:

support.opendns.com/hc/en-us/articles/228007207-Windows-10-Configuration

Pom zoo: