Basic rPi PADD on touchscreen install.

Install Pi-hole Ad Detection Display on your rPi.

  1. Get your touchscreen display working.
  2. Open raspi-config and set Boot Options -> DeskTop / CLI to Console Autologin.
  3. Download PADD and make executable:
    cd ~
    wget -N https://raw.githubusercontent.com/jpmck/PADD/master/padd.sh
    sudo chmod +x padd.sh
  4. Start PADD with ./padd.sh
  5. Exit with CTRL-C

Links:

learn.adafruit.com github.com/jpmck/PADD

3,5 inch touchscreen on rPi.

Follow these steps to use a 3.5 inch touchscreen on your rPi.

  1. Update your system with sudo apt-get update && sudo apt-get upgrade
  2. Start raspi-config and go to Interfacing Options and enable the SPI interface.
  3. Download LCD-show van Github:
    cd ~
    sudo rm -rf LCD-show
    git clone https://github.com/goodtft/LCD-show.git
    chmod -R 755 LCD-show
  4. Enter the folder you just cloned with cd LCD-show
    Now all you have to do is start the script for your LCD type.
    For a 3.5″ display you run sudo ./LCD35-show
    The system will install/setup the LCD and reboot with the LCD as display.

To switch back to HDMI:

To use the HDMI port again, go to the LCD-show folder and run
sudo ./LCD-hdmi to switch back to HDMI.

Links

raspberrytips.nl circuitdigest.com github.com/goodtft/LCD-show

Install Pi-hole on Volumio.

  • Install Volumio the normal way.
  • Set Volumio to accept ssh connections in the developer settings.
  • Open a ssh session to volumio.local and run the Pi-hole install script.
  • Open /etc/lighttpd/lighttpd.conf and set these values:
    server.port = 8080
    server.errorlog = "/tmp/lighttpd_error.log"
    accesslog.filename = "/tmp/lighttpd_access.log"
  • Reload the lighttpd settings with sudo service lighttpd reload or reboot the Raspberry Pi.
  • Go to the Pi-hole web interface at http://volumio.local:8080/admin/
  • (Optional) Set a default web page at the web root:
    cd /var/www/html/
    cp index.lighttpd.orig index.html

    Or set your own index page.

And while you are at it, stop the dhcp-daemon and delete the secondary IP address.

Link

https://www.cyberciti.biz/tips/installing-and-configuring-lighttpd-webserver-howto.html

Add password to Apache2 directory.

Put something like this in your sitename.conf:

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName muziek.wasietsmet.nl
DocumentRoot "/mnt/music"

<Directory "/mnt/music">
  Allow from all
  AuthUserFile /var/www/muziek.wasietsmet.nl/.wachtwoord
  AuthType Basic
  AuthName "muziek"
  Require valid-user
</Directory>

CustomLog "|/usr/bin/rotatelogs /var/www/muziek.wasietsmet.nl/log/access%d-%m-%Y 86400" vhost_combined env=!dontlog
ErrorLog "|/usr/bin/rotatelogs /var/www/muziek.wasietsmet.nl/log/error%d-%m-%Y 86400"

SSLCertificateFile
...

</IfModule>

Use htpasswd -c /var/www/muziek.wasietsmet.nl/.wachtwoord $USERNAME to create the .wachtwoord file.

Upload hosts file naar OnePlus 6T.

Voor thuis heeft Cellie Pi-hole, Adblock, uBlock en ScriptSafe om de al te opdringerige ad en tracking shit content te negeren.
Op de foon (vanwege data over 4G) is het iets meer werk.
Daar is de oplossing naast DNS66 een aangepast hosts file om de fuckers te weren.
Het hosts file is te vinden in /system/etc. (op de foon)
Maarrr.
Proberen om naïef Android bestanden in /system/etc te overschrijven loopt spaak.
De mount -o rw,remount /system via adb shell truuk werkt ook niet zonder meer.
Geen foutmelding, maar deze melding bij het uploaden in fastboot modus:

sudo adb push '/media/newstore/hosts/hosts' /system/etc 
failed to copy '/media/newstore/hosts/hosts' to '/system/etc/hosts': couldn't create file: Read-only file system

Na het nodige geduckduck bleek het nogal mee te vallen:

adb disable-verity
adb reboot
adb root
adb remount
sudo adb push '/media/newstore/hosts/hosts' /system/etc
4162 KB/s (334757 bytes in 0.078s)
adb reboot

Bye-bye and fuck you social spy networks!

Link: https://source.android.com/security/verifiedboot/dm-verity
Link: https://stackoverflow.com/questions/6066030/read-only-file-system-on-android/#51509192
Link: https://sourceforge.net/projects/socialnetblock/files/