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

Fix (delete) secondary dhcp address when setting static ip address.

After setting a static ip address in a debian based os, there is often a secondary ip address visible with ip addr show.
This is caused by the dhcpcd service which keeps running after setting a static ip.
Stopping this service will remove the secondary ip address after a reboot or network restart.

update-rc.d dhcpcd disable
service dhcpcd stop
#and optionally the next line or a reboot
ip addr del %YOURS-SECOND-IP% dev ethX

Replace %YOURS-SECOND-IP% with the unwanted secondary ip address.
And replace ethx with the interface name.
Restart the network.
Or just reboot and the secondary ip will be gone.

Works on a Volumio based Raspberry Pi and Ubuntu Server 18.04.2 LTS.

Set static IP with /etc/network/interfaces

Edit /etc/network/interfaces als volgt:

auto lo eth0
iface lo inet loopback
iface eth0 inet static
        address xxx.xxx.xxx.xxx (enter your ip here)
        netmask xxx.xxx.xxx.xxx (on lan usually 255.255.255.0)         
        gateway xxx.xxx.xxx.xxx (enter gateway ip here)

Opslaan en dan dns instellen:

sudo nano /etc/resolv.conf
nameserver 8.8.8.8 
nameserver 8.8.4.4

Dit zijn de gratis Google dns servers, vervang de ip adressen met je de dns servers van je keuze.

Schakel nu eerst nog de dhcpd service uit om niet via een eventueel secundair ip adres toegankelijk te zijn.
Dan rebooten of:

sudo /etc/init.d/networking restart  

Boot repair met een usb stick.

Maak een live stick met het betreffende OS.
Met onderstaande code installeer je boot-repair en start je de reparatie direct op.
Gebruik de Recommended Repair optie.
Cellie had succes met Mint 19 waar na de installatie van Windows 10 het bootmenu was verdwenen.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

En had er al eerder over gepost…