Setup PPTP on Ubuntu 16.04 with WiFi router support

This guide has been tested with Ubuntu 16.04 Server.

This configuration is also supported by WiFi Routers

Setup PPTP Server
First we need to install pptp server using apt-get

Then we need to configure the pptpd.

Add server IP and client IP at the end of the file. You can add like below:

This sets up the PPTP server to use IP while distributing the IP range to to PPTP clients. Change these as you wish as long as they are private IP addresses and do not conflict with IP addresses already used by your server.

Configure DNS servers to use when clients connect to this PPTP server

Uncomment the ms-dns and add google like below or OpenDNS

Now change the following


Now add a VPN user in /etc/ppp/chap-secrets file.

The column is username. Second column is server name, you can put “pptpd” in there. Third column is password. The last column is the IP addresses, you can put * to allow all IP.

Finally start your server

Setup IP Forwarding
To enable IPv4 forward. Change /etc/sysctl.conf file, add forward rule below.

Uncomment the line

Then reload the configuration

Add forward rule in iptables

adding to the bottom just before the exit 0

This example is using 192.168.0 for its PPTP subnet. The second rule adjusts the MTU size :

You are done. Just reboot your server and you should be able to connect to using PPTPD and send all your traffic through this server.

How to update speedtest mod – Pi-hole

Updating speedtest mod is simple.

Switch to root

If you dont have speedtest.db in /etc/pihole

# get latest file

Get latest admin from github

If git remote -v  gives something like origin

If git remote -v  gives something like mod

Add Speedtest to Pihole WebUI

So this project is just another fun project integrating speed test to PiHole Web UI.

Note: It’s just a quick solution, nowhere near perfect. If you made it better please let me know here  Discord ( prefered ) or  Google+ Community 

It will be using on background for testing. More frequent the speed tests more data will used.

What does this mod have in extra ?

  1. Speedtest results of 1 /2 4/ 7/30  days as graph.
  2. Custom speed test server selection.
  3. Detailed speedtest results page.
  4. Ability to schedule speedtest interval.

Latest Updates will listed here :  Pihole mods Community 

Inspiration :

How to update to new version

Tested on Raspberry pi and Ubuntu PC

Needs latest pihole installed and working

Start with installing required packages on your Raspberry Pi / Linux

Find php version 

if it is 5.x

if it is 7.x

Restart Pi

You can try run it using

If Everything is ok, proceed to next step

Get the new set of admin Code from github ( New method  or try old one here)

Test its working

Go to your pihole admin page


Note : First load may be slow


Now go to settings and enable speedtest

Note: If the item does not change to option you have chose just go to dashboard and comeback, it will be fine. I am currently working on it

Now create a speedtest Manually and make sure it’s appearing on dashboard

Go back to terminal and type  Not needed  : admin will call this if there is no data 

It may take few seconds to appear , but once its loaded you can see that on dashboard.

Please consider posting a screenshot link in the comments , I would like to know how it looks on different devices.

If there are any problems , ask here :  PiHole mods G+

Will my regular updates have problems ?

If you are upgrading pihole please revert all changes back and do the upgrade. Scroll down for instructions .

Speedtest gone missing after Pi-hole update

Dont worry your data is safe , update procedure here

Can the developer held responsible if anything goes wrong.

Absolutely not ,but you can always ask for help

I lost my DB file what Should I do ?

Here is a blank one : SpeedtestDB Zip

Can i get more features added to it ?

You can ask me via this link, I will do if feasible

Can I get it via regular pihole -up

Not currently. Hope this will get integrated into the baseline. If that happens you can easily get it via regular pihole update

The time is not not showing correctly in chart 

Please get latest code via git pull

I don’t want this , I want to go back to the original version .

If you have followed all instructions correctly , the code below will revert all the changes you have done .


Just a quick solution , you should move the db file to a directory outside www folder for security reasons.

Uses codes from



Old Method for admin area

Voice activated Google Assistant on Raspberry Pi with visual feedback

How to enable Ok google in Google Home running on raspberry pi.

Add visual notifications

It allows us to understand what is the current state of our Raspberry Pi assistant

Blue Light : Google  Assistant is listening.

Red :Ligh : Google Assistant is saying something.


Coding part

Clone the Google SDK git repository  to home directory .

Now edit the file


sudo nano /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/

Modify the contents [ changes/ additions are highlighted ]

Install RPI GPIO in virtual environment 

pip3 install RPi.GPIO


Run as a Service

Make sure that you are in virtual environment 

(env) pi@raspberrypi:~ $

else run

source /home/pi/env/bin/activate


We need to create an shell script to enable virtual environment “ “

nano /home/pi/assistant-sdk-python/google-assistant-sdk/googlesamples/assistant/library/

To run as a service you need to create a service file in /lib/systemd/system/ folder

sudo nano /lib/systemd/system/assistant.service

Enable and start service

sudo systemctl start assistant.service

Check Status of the service

sudo systemctl status assistant.service

Enable service

sudo systemctl enable assistant.service

All cotents are also in Gist:

Enable GPIO in env
pip3 install RPi.GPIO

USB Sound Card Adapter


Install httpd 2.4 on centos 6/7 from source

Here is the guide to install httpd 2.4 on your centos 7 / 6 install

Make sure you have already installed following packages on your server.

Then, we will choose the latest version from Apache website. and download it.

If you are using this article on CentOS 7, the APR version on yum won’t work for you, and you should compile the apr, and apr-util from source, so please remove it from your server if you installed it via yum, `and try following:

Download and unzip all needed files

Configure , make and make install

Start Your server


You can see the reference article here