Merkhilfen von Peter und Scarlet Alexys


WinX als VM mit virtmanager (debian-host winx-client)

Download winx.iso apt install virt-manager apt install virtiofsd open virt-manager new vm select iso winXX system install.iso after install Einhängern lokaler verzeichnisse Quelle: https://askubuntu.com/a/1513697 TL;DR: virt-manager -> VM -> eigenschaften -> geraet hinzufuegen -> Filesystem/Dateisystem auf VM installieren: - WinFSP: https://github.com/winfsp/winfsp/releases/ - virtio-stable / virtio-win-guest-tools.exe: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/ Neustarten -> Dienst aktivieren: VirtIO-FS Dienst Pfad auswählen -> unter "Einhängen" eine Bezeichnung eingeben (z.B. Dokumente) Fehlerbeseitigung: Ein Win7 Lizensschlüssel ist zur neuinstallation von win 10 nicht geeignet. Installation von win7 und anschließende aktivierung. hierfür müssen alle Updates eingespielt sein (tls fehler 0x80072f8f) updatepacks bei chip oder winfuture Lauffähige versionen von virtio-win-guest-tools.exe für win7 sind nicht verfügbar Mounten eines win10.iso update iso und anschließender installation sudo usermod -a -G libvirt $(whoami) etc/libvirt/libvirtd.conf || unix_sock_group = "libvirt" Mehrere gemeinsame Ordner https://github.com/virtio-win/kvm-guest-drivers-windows/wiki/Virtiofs:-Shared-file-system https://virtio-win.github.io/Knowledge-Base/Virtiofs:-Shared-file-system https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md https://github.com/winfsp/winfsp/releases job done

su ohne Passwort

USERNAME ist hier durch den jeweiligen Benutzernamen zu ersetzen. in der Datei /etc/pam.d/su # Uncomment this if you want wheel members to be able to # su without a password. auth sufficient pam_wheel.so trust und sudo addgroup wheel sudo usermod -aG wheel USERNAME

Einsatz von fail2ban zur Absicherung von ssh und ....

https://blog.swmansion.com/

Firmwareupdates auf UEFI Systemen

https://gnulinux.ch/firmware-aktualisieren-mit-fwupdmgr/ fwupdmgr get-devices fwupdmgr get-updates fwupdmgr update fwupdmgr refresh

Viele Linux Tips und Anleitungen des Thomas Krenn Wiki

https://www.thomas-krenn.com/

.deb installation Windows like

gdebi

Dockerkonfiguration NEXTCLOUD/OFFICE/WHopi mit Fritzbox PortForwader 4443 und reversproxy auf interner adresse 192.168.1.9 user/pass des nxt server

nconame="NEXTCLOUDOFFICE" docker ps | grep $nconame && docker stop $nconame docker inspect $nconame &>/dev/null && docker rm $nconame docker run \ -t -d -p 127.0.0.1:9980:9980 \ -e "aliasgroup1=https://dyndnsname:4443" \ -e "aliasgroup2=https://interneip:443" \ -e "username=benutzername" -e "password=benutzerpassword" \ --name $nconame --memory="4G" --memory-swap="4G" \ -e "lang=de_DE" -e "dictionaries=de_DE en_GB en_US" \ -e "extra_params=--o:home_mode.enable=true --o:ssl.enabled=true --o:ssl.ssl_verification=false" \ --add-host your.dedyn.io:172.17.0.1 \ --volume "/usr/share/fonts/truetype/:/opt/collaboraoffice/share/fonts/truetype/local/:ro" \ --restart always collabora/code

#BASH-History a la Suse in Debian

# strg-pfeil-hoch bind '"\e[1;5A":history-search-backward' # strg-pfeil-runter bind '"\e[1;5B":history-search-forward'

Bios auslesen:

sudo dmidecode -t bios Sercice TAG sudo dmidecode -s system-serial-number

x11vnc , autostart current user cinnamon:

Install x11vnc : sudo apt-get install x11vnc -y. Create a password: Run x11vnc -storepasswd and save it (e.g., to ~/.vnc/passwd). Open Startup Applications: Open the Cinnamon menu, search for "Startup Applications" (Startprogramm). Add a new command: Name: x11vnc Command: x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/YOURUSERNAME/.vnc/passwd -rfbport 5900 -shared Note: Replace YOURUSERNAME with your actual username. Delay: Set to 2-5 seconds to ensure the desktop has fully loaded. Save and restart. As service: To start VNC before logging in (at the login screen), use a systemd service: Create a password file: sudo x11vnc -storepasswd /etc/x11vnc.pass Create service file: sudo nano /etc/systemd/system/x11vnc.service Add this content: [Unit] Description=x11vnc After=display-manager.service [Service] ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared Restart=on-failure RestartSec=10 [Install] WantedBy=graphical.target Enable the service: bash sudo systemctl enable x11vnc.service sudo systemctl start x11vnc.service

last ab Debian13

apt install lastlog2 apt install sqlite3 lastlog2 /usr/bin/last -> wtmpdb; # which is a softlink to /usr/bin/wtmpdb sqlite3 /var/lib/wtmpdb/wtmp.db SQLite version 3.46.1 2024-08-13 09:16:08 Enter ".help" for usage hints. sqlite> .tables wtmp sqlite> SELECT * FROM wtmp; see link https://dwaves.de/2025/04/07/