Unattended Upgrade

sudo apt update && sudo apt upgrade sudo reboot sudo apt install unattended-upgrades apt-listchanges bsd-mailx sudo dpkg-reconfigure -plow unattended-upgrades Configure automatic updates, enter:sudo vi /etc/apt/apt.conf.d/50unattended-upgradesSet up alert email ID:Unattended-Upgrade::Mail „root@hg-system.com“;Automatically reboot Ubuntu box WITHOUT CONFIRMATION for kernel updates:Unattended-Upgrade::Automatic-Reboot „true“;Finally edit the /etc/apt/listchanges.conf and set email ID:email_address=root@hg-system.com

Mails über eigenen Server mit TLS Verschlüsselung

sudo apt install sendmailhostnamectl set-hostname myhostname.com sudo nano /etc/hosts127.0.0.1 localhost myhostname.comsudo sendmailconfig confirm all mit y for yes sudo service nginx restart lokaler test: sendmail -v someone@email.com From: you@yourdomain.comSubject: This is the subject field of the emailThis is the message to be sent.. sudo nano /etc/php/7.4/fpm/php.ini strg + wsendmail sendmail_path= /usr/sbin/sendmail -t -i sudo service weiterlesen…

Huawai WhatsApp

Aktuell gibt es ein Problem Whats App auf Huawei Geräten upzudaten stand 08.Mai.2021 Dies geht Aktuell über einen umweg über den PC, da in Petal Search die aktuelle Version noch nicht online ist, geht dazu auf https://whatsapp.com ladet die aktuelle apk herunter und zieht diese auf euer smartphone viel spaß mit whats app und alles weiterlesen…

Generate SHA256 for Integrity Origin

To Keep the Integrity of External Files: script src=“https://code.jquery.com/jquery-1.12.3.min.js“ integrity=“sha256-aaODHAgvwQW1bFOGXMeX+pC4PZIPsvn2h1sArYOhgXQ=“ crossorigin=“anonymous“ to generate the integrity part you can use the following linux bash script followed by the src file: #!/bin/bash url=$1 && file=“${url##*/}“ && wget $url && extension=“${url##*.}“ && echo -e „\n\n“ if [ $extension = ‚js‘ ] then echo -e „Generate JS HTML output\n“ weiterlesen…

hostname persistent – permanently without restart

Change hostname on Ubuntu without restart To change the hostname permanently without a restart enter the following command: hostnamectl set-hostname myhostname To verify: hostnamectl /etc/hostname contains name of the machine, as known to applications that run locally. /etc/hosts and DNS associate names with IP addresses. hostname may be mapped to whichever IP address the machine can access itself, but weiterlesen…

SSL Wildcard *.example.com

SSL Wildcard CERT: sudo apt install certbot   certbot certonly –manual –preferred-challenges dns –server https://acme-v02.api.letsencrypt.org/directory –manual-public-ip-logging-ok -d ‚*.hg-system.com‘   Go to your DNS Provider for e.g. Cloudflare insert the txt record „_acme-challenge“ insert the code from the command ahead, wait for at least 2 min or till the DNS-Record is available and press enter (in weiterlesen…