Troubleshooting


Grafana KEY Error

Err:13 https://packages.grafana.com/oss/deb stable InRelease
The following signatures couldn't be verified because the public key is not available:

Lösung:

mkdir -p /etc/apt/keyrings/
$ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor > /etc/apt/keyrings/grafana.gpg
$ echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | tee /etc/apt/sources.list.d/grafana.list

oder verschieben (je nach dem welches System)

mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/

Update Buster / Bullseye

lsb_release -a
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i -e 's/buster/bullseye/g' /etc/apt/sources.list.d/*.list
apt update
apt dist-upgrade

Update Bullseye/Bookworm

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list

NFS Server Pakete installieren

apt install nfs-common && apt install rpcbind

Boot Firmware Update Fehler

apt -y purge rpi-eeprom raspi-firmware
cd /tmp
curl -fo package.deb 'https://archive.raspberrypi.org/debian/pool/main/r/rpi-eeprom/rpi-eeprom_20.1-1_all.deb'
apt install ./package.deb
rm package.deb
apt-mark hold rpi-eeprom

NodeJS Updates

curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
apt-get install -y nodejs
Angebot

Chromium Sperre aufheben nach Wechsel vom Hostname

rm -rf ~/.config/chromium/Singleton*

Absoluten Pfad ermitteln

<?php echo $_SERVER["DOCUMENT_ROOT"] ?>

NetStats

sudo netstat -tulpen | grep -v 127.0.0.1

Proxmox Swap optimieren

sysctl vm.swappiness=0
swapoff -a
swapon -a
sysctl vm.swappiness=1
swapoff -a
swapon -a

Nextcloud Updater CLI

Docker Installation Nextcloud

docker ps
sudo docker exec --user www-data -it [10961176e325] bash
php occ maintenance:mode --on
php occ upgrade -v
php occ maintenance:mode --off

PHP Repository von sury.org hinzufügen

apt update
apt install curl apt-transport-https ca-certificates -y
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ ${DISTRO} main" > /etc/apt/sources.list.d/deb.sury.org.list
apt update
apt-get install php8.1
apt-get install php8.1-common
apt-get install php8.1-fpm