June 16, 2019
Mostly we use Ghostery and uBlock Origin for ad blocking in browser. We can use Pi-hole, it is a network-wide ad blocker. Instead of installing adblockers on browser, we can install Pi-hole once on our network, and it will protect all of our devices. Because it works differently than a browser-based ad-blocker, Pi-hole also block ads in non-traditional places, such as in games and on smart TVs.
Raspberry-Pi and SD-Card
We have to setup raspberry pi first, for the same download Raspbian OS.
Once downloaded the Raspbian we need a software to put into Raspberry Pi. We can use Etcher Flash to flash OS images to SD cards & USB drives.
Download and install the flash software
I connected my Pi to TV through HDMI cable.
once the flash done, insert the SD card into Raspberry-pi and power on.
curl -sSL https://install.pi-hole.net | bash
Note the password from the above screen
The next step is configure our Wifi router to use Pi-hole as DNS server.
Open router’s config page http://192.168.1.1
use default admin password
go to DHCP server configuration page.
Ensure that you make changes on LAN page, not on WLAN page
Enter the raspberry-pi’s IP address as DNS address
Re-start the router.
Read detailed information on how to configure the DHCP here
Open Pi-hole admin page http://192.168.1.15/admin/. It’s Raspberry-Pi’s IP address.
Type the password which we noted on step #3.
85% of my network is blocked which are for advertisment purpose.
Once the Pi connected into WiFi-network, we can disconnect the display and connect the Pi through remote desktop using VNC viewer.
I used VNC viewer to connect my Pi.
Read this tutorial for remote desktop for Pi.
After flashed the OS, just insert the SD card in to the computer (not into Pi) and just create an empty file called “ssh” (without quotes) then insert the SD card and power on the Pi. Now we can connect the Pi from a SSH client.
I used putty from windows to connect my Pi through SSH.
Read this tutorial to connect Pi through SSH.
I don’t have keyboard !!!