Archive for März, 2023

Kate Text Editor: Menü anzeigen

Mittwoch, März 29th, 2023

Mit Strg-M kann das Menü wieder angezeigt werden, wenn es verschwunden ist.

Weitere Tastenkombinationen:
https://docs.kde.org/stable5/de/kate/kate/working-with-kate.html

Kate Handbuch:
https://docs.kde.org/stable5/de/kate/kate/kate.pdf

SSH Zertifikat einrichten für HTTPS

Dienstag, März 21st, 2023

Mit CERTBOT kann ein Zertifikat für Apache2-Web-Server automatisch eingerichtet werden:
https://certbot.eff.org

Vorher muss snap einrichtet werden:
https://snapcraft.io/docs/installing-snapd

Fehler „ssh connection refused“

Dienstag, März 21st, 2023

SSH Server installieren (Debian/Ubuntu):
sudo apt install openssh-server

NPM-Projekt lokal testen

Montag, März 20th, 2023

Libraries installieren:
npm install

Im Ordner mit der Datei package.json folgende Befehle ausführen.
Zum Bauen:
npm run sync

Zum Starten des Server:
npm run serve

Linux Festplatte automatisch abschalten (idle modus)

Montag, März 20th, 2023

Festplatte nach 10 Minuten abschalten:
hd-idle

Installieren:
apt-get install hd-idle

https://manpages.ubuntu.com/manpages/focal/man8/hd-idle.8.html
https://askubuntu.com/questions/39760/how-can-i-control-hdd-spin-down-time#39764

Partition beim Booten mounten

Samstag, März 11th, 2023

Beispiel: Windows-Partition /dev/sda1 soll beim Booten gemountet werden.

    1. Mit blkid /dev/sda1 die UUID und den Typ (ntfs, ext4) ermitteln
    2. In /etc/fstab Zeile hinzufügen, z.B.
    UUID=E89C196C9C193692 /media/d-windows ntfs defaults 0 0
    3. Neu starten.

Ubuntu Fehler: „dpkg: error processing package“

Freitag, März 10th, 2023

Lösung:

sudo dpkg --configure -a
sudo apt --fix-broken install

Ubuntu SSH Fehler: „no matching host key type found. Their offer: ssh-rsa,ssh-dss“

Mittwoch, März 8th, 2023

Lösung:
Der Datei /etc/ssh/ssh_config müssen zwei Zeilen hinzugefügt werden:

HostKeyAlgorithms ssh-rsa
PubkeyAcceptedKeyTypes ssh-rsa

Oder die anderen Argumente aus „their offer“ hinzufügen. Z.B.:

HostKeyAlgorithms ssh-rsa,rsa-sha2-512,rsa-sha2-256
PubkeyAcceptedKeyTypes ssh-rsa,rsa-sha2-512,rsa-sha2-256

https://www.linuxquestions.org/questions/linux-security-4/no-matching-host-key-type-found-their-offer-ssh-rsa-ssh-dss-4175701155/

imagemagick unter Windows/mingw

Donnerstag, März 2nd, 2023

Imagemagick PORTABLE downloaden:
https://imagemagick.org/script/download.php

Z.B.
https://imagemagick.org/archive/binaries/ImageMagick-7.1.0-62-portable-Q16-x64.zip

Entpacken und nach /mingw64/magick kopieren.
Der convert-Befehl kann jetzt mit /mingw64/magick/convert aufgerufen werden