Sunday, 26 April 2020

Adding own user

Today I started to re-read my good old Raspberry Pi User Guide and realised that I have never added my own user. So I added to both my live Debian with RPD and my Raspbian on RPi now with sudo useradd -m -G <all-groups-separated-with-commas> jordana. I have added jordana user to all groups that I found in groups pi and added password with sudo passwd jordana. Logged in with newly created user and changed autologin with raspi-config on both. On live debian with RPD changed resolution with lxrandr and added ./xbindkeyrc to /home/jordana for brightness control.

Saturday, 18 April 2020

Home on the Go with Pi VPN

With my good old Synology passing away and the new one has just arrived and configured only for default samba access I thought I try to expose the beauty of Pi hole over mobile data connection by terminating a VPN on my good old Raspberry Pi.

I have found this link https://www.pivpn.io/ but the surprise has only come during installation. First I noticed that the default VPN is not Open VPN anymore but WireGuard that Linus Torvalds so highly accolades. Also the installer recognizes Pi hole on the system and offers to use it for DNS over VPN. It supports to be reached via public name for which the subdomain that I posted about recently came very handy. Once Pi VPN installed I only needed to add a simple port forward on the router and the Android client could be configured from the QR code that I could display from command line terminal. Speedtest measured 16/10 over the VPN and this gives perfect quality for all my family videos on the go. And by the way I checked with top and only 16% CPU is used during speedtest so I had to realise that my VDSL upload is the limiting factor in my download speed over VPN and not my good old Raspberry Pi!

Honestly I have never thought that such a performance can be obtained from my good old Raspberry Pi - truly amazed! 

Friday, 17 April 2020

Moving DHCP over to Pi hole

With my 8 years old DS213 passing away few days ago I thought I move DHCP also over to Pi hole.

For some reason the static DHCP config file was not created even after installing dnsmasq from Add / Remove Programs on my good old Rasperry Pi. So I had to create it as follows:

pi@raspberrypi:~ $ sudo touch /etc/dnsmasq.d/04-pihole-static-dhcp.conf
pi@raspberrypi:~ $ sudo chmod 644 /etc/dnsmasq.d/04-pihole-static-dhcp.conf
pi@raspberrypi:~ $ sudo chown root:root /etc/dnsmasq.d/04-pihole-static-dhcp.conf

In the end installing dnsmasq over Pi hole was not a good idea so I reinstalled Pi hole and now I am getting static leases as expected...

Bonus is that VAP4641 shows proper names now too so keeping DHCP and DNS together seems to make that trick!




OFF --- disabled Guest mode on Chromecast & Wi-Fi Direct on HP printer --- OFF

Just for the record I also would like to post here that I disabled Guest mode on my Chromecast as it has caused bad interference to the VAP4641 mesh that I am perfecting my home wifi now with. 

Along the same lines I also disabled Wi-Fi Direct on my HP printer as it crashed Ruckus R610 access point.

Setting up dynamic DNS

During corona lock down understanding that your broadband healthy is becoming part of your every day hygiene. In the UK you can setup remote monitoring of your home broadband quite easily:

https://www.thinkbroadband.com/broadband/monitoring/quality/view/4a331184e63338debbdb8222ddea6fa2c8d3b630

In order to make this work however you need to have dynamic DNS configured on your home network. I have used my good old Synology for this as it has come with this dynamic DNS support on its base software package. But my good old DS213 has passed away a few days ago after 8 long years serving me and the family so superbly so I had to look for an alternative.

After a quick try of noip.com and understanding it requires regular maintenance I settled on freedns.afraid.org and registered a public subdomain against my actual dynamic IP address. Later checked changeip.com also on my Vodafone router but it has given me an error.

So this has given me the second practical use for my good old Raspberry Pi! I gained a token from www.duckdns.org and registered my subdomain. Created a crontab on my good old Raspberry Pi to keep my subdomain regularly updated based on:

https://www.duckdns.org/install.jsp?tab=linux-cron&domain=jordanahome



Thursday, 9 April 2020

[UPDATED] Removing the advertisements with Pi hole

Found the first functional use of my good old Raspberry Pi based on this video:

https://youtu.be/UE2sO8d3sx8

using this script to provide DNS service that removes advertisements:

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

And it has a beautiful user interface too!


I liked removing advertisements so much that I have become a patron with $1 / month. I also made it available via mobile data with the help of Open VPN on my good old Synology.

Due to some encouragement as a reply to my facebook post from an old acquaintance I also moved over to cloudfare for upstream DNS using DNS over HTTPS:

https://docs.pi-hole.net/guides/dns-over-https/

To make cloudfare work on my good old Raspberry Pi I had to use this binary:

https://hobin.ca/cloudflared/releases/2019.8.1/cloudflared_2019.8.1_arm.tar.gz

[UPDATE]

In order to reinstall Raspberry Pi OS Bullseye I have setup pi0w as a secondary Pi hole by adding this config file:
sudo nano /etc/dnsmasq.d/05-pihole-failover.conf
dhcp-option=6,192.168.0.2,192.168.0.10