| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| linux:spielerei_mit_linux-systemen [2024/09/03 06:44] – [Backup] egmonts | linux:spielerei_mit_linux-systemen [2025/12/18 11:05] (aktuell) – gimp für heic heif egmonts |
|---|
| |
| ==== Imagemagik ==== | ==== Imagemagik ==== |
| * Isntallation: ''sudo apt install imagemagick'' | * Installation: ''sudo apt install imagemagick'' |
| * Fehler weil PDF nicht gewandelt werden kann? https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed | * Fehler weil PDF nicht gewandelt werden kann? https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed |
| * JPGs zu einer PDF: ''convert *.jpeg out.pdf'' | * JPGs zu einer PDF: ''convert *.jpeg out.pdf'' |
| | * heic zu jpg: ''mogrify -format jpg *.heic'' |
| | * oder Gimp >=3.0.6 (ggf. Appimage) |
| * PDF zu png: ''convert -density 600 Test04.pdf Test04.png'' density in pixel/cm | * PDF zu png: ''convert -density 600 Test04.pdf Test04.png'' density in pixel/cm |
| * ''-alpha off'' um Transparenz zu entfernen | * ''-alpha off'' um Transparenz zu entfernen |
| * Treiber ''sudo apt install printer-driver-dymo'' | * Treiber ''sudo apt install printer-driver-dymo'' |
| * Glabel ''sudo apt install glabels'' | * Glabel ''sudo apt install glabels'' |
| | * Dateien nach EXIF Datum umbenennen |
| | * apt install exiv2 |
| | * exiv2 --rename '%Y-%m-%d %H-%M-%S' -F *.JPG |
| | * exiv2 --rename '%Y-%m-%d %H-%M-%S' -F *.jpeg |
| | * Quelle: https://forum.ubuntuusers.de/topic/digikam-erstell-datum-und-datei-datum/ |
| | * viele Ordner: find . -type d -execdir sh -c "cd './{}' && exiv2 --rename '%Y-%m-%d %H-%M-%S' -F *.jpeg" \; |
| | * find . -type d -execdir sh -c "cd './{}' && exiv2 --rename '%Y-%m-%d %H-%M-%S' -F *.JPG" \; |
| | * todo_ exiv2 Befehl für klein und Großschreibung jpeg und jpg anpassen! --> momentan muss jede Schreibweise angepasst werden! |
| |
| |
| * komplett ''dvdbackup -p -M -i /dev/dvd -o ~/Videos'' | * komplett ''dvdbackup -p -M -i /dev/dvd -o ~/Videos'' |
| * titel ''dvdbackup -p --title=4 -i /dev/dvd -o ~/Videos'' | * titel ''dvdbackup -p --title=4 -i /dev/dvd -o ~/Videos'' |
| | * Titelnamen angeben: ''dvdbackup -p --title=4 -i /dev/dvd -n URLAUB_OSTEEE -o ~/Videos'' |
| * titelset ''dvdbackup -p --titleset=4 -i /dev/dvd -o ~/Videos'' | * titelset ''dvdbackup -p --titleset=4 -i /dev/dvd -o ~/Videos'' |
| * Dateien umbenennen, Texteil ersetzten: | * Dateien umbenennen, Texteil ersetzten: |
| * mehrere MP3s in eine MP3 zusammenführen https://wiki.ubuntuusers.de/mp3wrap/ ''mp3wrap ERGEBNIS.mp3 TITEL-0*.mp3 '' | * mehrere MP3s in eine MP3 zusammenführen https://wiki.ubuntuusers.de/mp3wrap/ ''mp3wrap ERGEBNIS.mp3 TITEL-0*.mp3 '' |
| * Logs anzeigen: ''journalctl'' und ''dmesg'' | * Logs anzeigen: ''journalctl'' und ''dmesg'' |
| | * Größe der Unterordner anzeigen: ''df -h -d 1'' todo: mit awk nach Dateigröße sortiert ausgeben |
| | * Verzeichnis mit Inhalt rekursif löschen ''rf -r folder'', ohne nachfrage: ''rm -rf folder'' |
| | * Suchen IN Dateien, auch PDF und LibreOffice: ''uvgrep -in Bauvorhaben *.pdf *.odt |
| | '' von https://github.com/hgesser/uvgrep, Abhängigkeiten installieren: ''sudo apt install libxml2-utils |
| | pdfgrep'' |
| | * Größe von Verzeichnisinhalten rekursiv finden: ''sudo ncdu /'' |
| | * Alternative zu ''nano'': ''mcedit'' |
| | * ''crontab -e'' |
| | * Informationen zum System ''inxi -Fxxxrz'' Sektion System zeigt bei MINT die zugrunde liegende Version vom Ubuntu |
| | * ''lsb_release -a'' zeigt an, welche Linux Mint Distribution läuft |
| ==== Backup ==== | ==== Backup ==== |
| * Backup machen: ''rsync -aAXv --exclude={"path/to/excluded/directories"} / /path/to/destination'' https://www.unixmen.com/how-to-backup-with-rsync/ | * Backup machen: ''rsync -aAXv --exclude={"path/to/excluded/directories"} / /path/to/destination'' https://www.unixmen.com/how-to-backup-with-rsync/ |
| * todo https://digitalis.io/blog/linux/incremental-backups-with-rsync-and-hard-links/ | * todo https://digitalis.io/blog/linux/incremental-backups-with-rsync-and-hard-links/ |
| * Bog Backup: ''borg create --verbose --filter AME --list --stats --show-rc --compression lz4 ssh://dietpi@192.168.1.1/mnt/dietpi_userdata/borg_backup_repo/Backup::2024-09-03-0639 /home/user/Dokumente'' | * Bog Backup: ''borg create --verbose --filter AME --list --stats --show-rc --compression lz4 ssh:\/\/dietpi@192.168.1.1/mnt/dietpi_userdata/borg_backup_repo/Backup::2024-09-03-0639 /home/user/Dokumente'' |
| * Lock entfernen: ''borg break-lock /mnt/dietpi_userdata/borg_backup_repo/Backup'' | * Lock entfernen: ''borg break-lock /mnt/dietpi_userdata/borg_backup_repo/Backup'' |
| |
| * CH340G: 1a86:7523 | * CH340G: 1a86:7523 |
| * anzeigen nach USB-Steckplatz: ''ls /dev/serial/by-path/'' - gleicher Steckplatz = gleiche Bezeichnung [[https://www.smarthome-agentur.de/blog/tutorial-mehrere-nanocul-ohne-eindeutige-id-verwenden-ch340-chip/|Quelle]] | * anzeigen nach USB-Steckplatz: ''ls /dev/serial/by-path/'' - gleicher Steckplatz = gleiche Bezeichnung [[https://www.smarthome-agentur.de/blog/tutorial-mehrere-nanocul-ohne-eindeutige-id-verwenden-ch340-chip/|Quelle]] |
| | * ''lsusb -t'' zeigt Treiber an, z.B. wenn bei USB-SATA Adaptern als driver ''uas'' steht, unterstützen die UASP https://www.jeffgeerling.com/blog/2020/uasp-makes-raspberry-pi-4-disk-io-50-faster |
| |
| |
| * https://analytics.home-assistant.io/ | * https://analytics.home-assistant.io/ |
| * | * |
| | |
| | ==== Services ==== |
| | * es gibt verschiedene Systeme für Services, die auf verschiedenen Systemen eingesetzt werden: |
| | * ''sudo service network-manager restart'', z.B. nachdem ''sudo xed /etc/hosts'' geändert wurde |
| | * ''systemctl'' |
| | * ''/etc/init.d'' System |
| | |
| | |
| | ==== Debugging, Fehlersuche ==== |
| | * Samba CIFS Suche ''cat /proc/fs/cifs/DebugData'', ''tail -f /var/log/kern.log'' |
| |
| |