Asterisk Blacklist Hobby webbhotell


Home Assistant not healthy

Filed under: Uncategorized — Mathz @ 13:28
'AddonManager.update' blocked from execution, system is not healthy
'NodeRed.update' blocked from execution, system is not healthy
Error during processing IssueType.TRUST

ha su repair
ha core rebuild
ha host reboot


Convert pfx file to pem file

Filed under: Uncategorized — Mathz @ 17:33

Conversion to a combined PEM file

To convert a PFX file to a PEM file that contains both the certificate and private key, the following command needs to be used:
# openssl pkcs12 -in filename.pfx -out cert.pem -nodes

Conversion to separate PEM files

We can extract the private key form a PFX to a PEM file with this command:
# openssl pkcs12 -in filename.pfx -nocerts -out key.pem

Exporting the certificate only:
# openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem

Removing the password from the extracted private key:
# openssl rsa -in key.pem -out server.key


Ubuntu installed a fixed version of package

Filed under: Uncategorized — Mathz @ 18:44

Find all packages available

rmadison sudo

Install a specific version

sudo apt install sudo=1.8.31-1ubuntu1.2


NET::ERR_CERT_INVALID – Dockerfile docker-unifi-controller

Filed under: Hemsidor — Mathz @ 14:56

There’s a secret passphrase built into the error page. Just make sure the page is selected (click anywhere on the screen), and just type thisisunsafe.



Filed under: Uncategorized — Mathz @ 23:40

git clone

sudo docker build -t plejd2mqtt .

version: "3"
    image: plejd2mqtt:latest
    restart: always
      - /var/run/dbus:/var/run/dbus
      PLEJD_SITE: xxxxx
      PLEJD_USERNAME: xxxx
      PLEJD_PASSWORD: xxxx
      MQTT_BROKER: mqtt://mqtt


Change PHP version

Filed under: Config — Mathz @ 11:41
sudo update-alternatives --config php

There are 4 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
* 0            /usr/bin/php8.0   80        auto mode
  1            /usr/bin/php7.2   72        manual mode
  2            /usr/bin/php7.3   73        manual mode
  3            /usr/bin/php7.4   74        manual mode
  4            /usr/bin/php8.0   80        manual mode

Press <enter> to keep the current choice[*], or type selection number:


Move files in directory based on year

Filed under: Uncategorized — Mathz @ 23:24

for i in `ls -lrt | grep “2015”| awk ‘{print $9}’ `; do mv -f $i* /new/Archives.2015/; done


Update MYSQL database in Docker

Filed under: Uncategorized — Mathz @ 16:51
docker run --rm -ti -v <full patch to db-files>:/var/lib/mysql mysql:5.7 bash

You’ll see a command prompt inside the MySQL container. Run the following command:

mysqld_safe --skip-grant-tables &

MySQL will start up. Wait 10 seconds or so for that to happen, and then run the following. Note you won’t see a command prompt, so just type away and it will work!



NextCloud maintenance:mode

Filed under: Server — Tags: — Mathz @ 19:36

sudo docker exec -u www-data -it nextcloud /bin/bash or

sudo docker exec -u www-data -it nextcloud /bin/bash php /var/www/nextcloud/occ maintenance:mode –off

sudo docker exec –user www-data -it nextcloud /bin/bash
php occ maintenance:repair


Cpanel Eximstats corrupt database

Filed under: Server — Mathz @ 09:01


DBD::SQLite::st execute failed: database disk image is malformed at /usr/local/cpanel/Cpanel/EximStats/ line 388.


mv /var/cpanel/eximstats_db.sqlite3 /var/cpanel/eximstats_db.sqlite.old
/scripts/import_exim_data /var/log/exim_mainlog

« Newer PostsOlder Posts »

Powered by WordPress