Introduction: Pihole and Samba Display

In this tutorial, I will show you how to make a display that shows your PiHole stats and Samba stats.


  • 1x Raspberry Pi
  • 1x Raspberry Pi display

Step 1: Setup Pihole

To install Pihole just open a terminal and enter the code below. Follow through the install and set it up how you wish. Just don't forget to note down the password!

curl -sSL | bash

Step 2: Setup Samba

To install and setup samba, open a terminal and enter the code below.

sudo apt-get install samba samba-common-bin
sudo mkdir -m 1777 /share
sudo leafpad /etc/samba/smb.conf

Then enter this code into the editor:

create mask=0777 
directory mask=0777 

Then run this command to create a user, and then enter a password for the user:

sudo smbpasswd -a pi

Finally, run:

sudo systemctl restart smbd

Step 3: Setup the Code!

To set up the code, run:

wget 2 Kudos Rep

Then run:

chmod +x

Afterwards, open File Manager and go to /home/pi and click the file and select Run In Terminal. This will install the code and download the dependencies.

Step 4: Setup Auto Start

Now we will set up the pi so that on startup it opens the display in fullscreen mode. To do this run:

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

Then enter:

[Desktop Entry]
Exec=bash -c 'sleep 1 && xterm -hold -fullscreen -hold -e "sudo python3 /home/pi/piStats/" && uncluttered -idle 0.01 -root'

Step 5: Connect to Your Samba File Server

To connect to your file server, open File Explorer and select This PC then select map network drive then in the folder put:


Step 6: Conect to Pihole

To connect to Pihole I suggest you use this helpful website for how to change your DNS:

Raspberry Pi Contest 2020

Participated in the
Raspberry Pi Contest 2020