Category: Linux

Good to know – ssh

Create keys: ssh-keygen -t ed25519 \ -a 420 -f ~/.ssh/demo.ed25519 \ – C “Kommentar zum Key” Copy public key to server: ssh-copy-id \ -i ~/.ssh/demo.ed25519.pub \ user@server Add private key to ssh-agent: # ssh-agent eval `ssh-agent -s` ssh-add ~/.ssh/demo.ed25519 ssh-add -l Autostart ssh agent: # https://stackoverflow.com/questions/18880024/start-ssh-agent-on-login/18915067#18915067 ~/.config/systemd/user/ssh-agent.service [Unit] Description=SSH key agent [Service] Type=simple Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK [Install] WantedBy=default.target...

netctl to networkd and iwd

Information: https://wiki.archlinux.org/title/Systemd-networkd https://wiki.archlinux.org/title/Iwd Migration: https://www.sobyte.net/post/2022-09/switch-to-systemd-networkd/ https://www.rdeeson.com/weblog/180/switching-from-netctl-to-networkd-with-iwd Wofi: https://codeberg.org/bagnaram/menu-iwd Main configuration is in: /etc/iwd/main.conf Network-Configuration is stored in: /var/lib/iwd Commands – iwctl: device list device wlan0 set-property Powered on station wlan0 scan station wlan0 get-networks station wlan0 connect SSID station wlan0 show station wlan0 disconnect known-networks list known-networks SSID forget

Ranger

Ranger: https://github.com/ranger/ranger ranger User Guide Wiki: https://wiki.archlinux.org/title/ranger Color-Scheme: https://draculatheme.com/ranger Plugin mount Plugin – Archives Tutorial Bookmarks: “Type m to bookmark the current directory. You can re-enter this directory by typing `. can be any letter or digit. Unlike vim, both lowercase and uppercase bookmarks are persistent.” (man ranger) Cheatsheets: https://gist.github.com/heroheman https://dquinton.github.io/debian-install/files/ranger-keybinds_quinton.pdf Video 1: https://www.youtube.com/watch?v=OGFXP9f0ouo Video 2: https://www.youtube.com/watch?v=nlolvAVqn10 Commands: g =...

gtk-themes

Themes: Qogir-Light: https://github.com/vinceliuice/Qogir-theme Dark: Nordic, dracula Change: lxappearance Workaround: https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland Alternative: https://github.com/nwg-piotr/nwg-look

Qemu & KVM

General: https://wiki.ubuntuusers.de/KVM/ https://www.qemu.org/ Higher Resolution: The Windows 10 QXL driver is called “QXL-WDDM-DOD”: https://www.spice-space.org/download/windows/qxl-wddm-dod/ TPM2: https://www.codingblatt.de/virt-manager-qemu-kvm-tpm2-emulieren/ Commands: virsh list –all Resource: https://shallowsky.com/blog/linux/virt-manager-tips.html https://stafwag.github.io/blog/blog/2018/04/22/high-screen-resolution-on-a-kvm-virtual-machine-with-qxl/ https://www.codingblatt.de/virt-manager-qemu-kvm-tpm2-emulieren/

T480 Dock and Linux

https://www.nofost.de – Compatibility reddit Thinkpad Wiki Reddit – Thinkpad Docks https://wiki.archlinux.org/title/ThinkPad_docks

zfs-utils & zfs-dkms update

Error-Message: installing zfs-utils (2.1.4-1) breaks dependency ‘zfs-utils=2.1.3’ required by zfs-dkms 0) Get current installed kernel and check compatibility uname -r 1) Remove the “Ignore these packages on regular upgrade”: in /etc/pacman.conf add [options] #IgnorePkg=zfs-dkms 2) Update zfs-dkms and zfs-utilis simultaneously (when yay calls pacman to install built packages, it does it sequentially.) Use yay -Sa –nodeps zfs-dkms zfs-utils Source: https://www.reddit.com/r/archlinux/comments/tzysyg/installing_zfs_breaks_dependency/...

smartctl

To test HD health using SMART data: https://www.smartmontools.org/wiki/FAQ https://www.thomas-krenn.com/de/wiki/SMART_Tests_mit_smartctl Commands: Test: sudo smartctl -t /dev/sdc Results: sudo smartctl -a /dev/sdc

OpenSSL 3 f**** up everything

Another arch upgrade, another f**-up. Arch decided to move from OpenSSL 1.1 LTS to 3.0.7-2 breaks a lot in the system – Look at the threads at https://bbs.archlinux.org/viewforum.php?id=44 For me it broke zfs-utils and therefor the succesful mounting of my home-directory. No home – no login… bad The solution, as stated in https://bbs.archlinux.org/viewtopic.php?id=281005&p=2 (totally different software, same issue, same solution):...

Linux Init processes – and zfs autoimport

Collection of resources on Linux init-demons. It covers the (historical) demons system V, and upstart, as well as the current one: systemd: see digitalocean.com – How To Configure a Linux Service to Start Automatically After a Crash or Reboot – Part 1: Practical Examples However as stated, systemd is “more than an init daemon: systemd is a framework that encompasses...