Category Archives: Too Good To

Too good to #0008

rinetd-style circuit level gateway in systemd This accepts port 465/tcp and forwards all connections to a service running somewhere else on 1194/tcp. The socket unit accepts the connection on port 465: systemd-socket-proxyd connects to the backend: (Anyone old enough to … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , | Comments Off on Too good to #0008

Too good to #0007

Disable the dynamic motd on Ubuntu and everywhere else This is without messing around in /etc/pam.d or doing things that may be reverted by future updates. Remember to systemctl enable disable-dynamic-motd.timer. Disable verbose logging on realmd.service Problem on AD-member Linux … Continue reading

Posted in python, Too Good To, UNIX & Linux | Tagged , , , , | Comments Off on Too good to #0007

Too good to #0006

“Sudo on demand” from TGT0003 considered more useful for downgrading privileges on the fly JSON export of all installed packages on Debian/Ubuntu Urlwatch for a new version of a package in the Ubuntu package pool

Posted in Too Good To, UNIX & Linux | Tagged , , , , , | 1 Comment

Too good to #0005

Prioritizing own NTP servers for systemd-timesyncd Test if text is empty (even if it does contain a linebreak) Good job by: https://unix.stackexchange.com/q/386499/2028 Watch for changes in the Gnome registry (To reproduce manual changes, for configuration management.) Trigger Debian/Ubuntu unattended-upgrade (For … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , , | Comments Off on Too good to #0005

Too good to #0004

systemd, the good parts: monotonic timers When systemd makes you suffer because “run job every 10 minutes” is infinitely harder to specify than in crontab, remember there are monotonic timers in systemd that aren’t derived from wallclock time, or “Calendar … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , | 1 Comment

Too good to #0003

Linux uptime in seconds, once and for all “Sudo on demand”, re-exec shell script with sudo if not running as root See also TGT0006, this is just as useful for downgrading privileges on the fly. “When was the last time … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , | Comments Off on Too good to #0003

Too good to #0002

Show and update the comment in an SSH private key ssh-agent in Gitlab CI/CD Define SSH_KEY as a “file” in Gitlab CI/CD variables and SSH_PASSPHRASE as a regular variable If libcrypto errors on execution, make sure SSH_KEY has an additional … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , | 2 Comments

Too good to #0001

Set X11 keyboard layout manually and temporarily (e.g. in i3 if I need to test exotic window managers for my users) Speaking of which, set keyboard layout permanently in Gnome Check if Gnome Screensaver is active (I use this for … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , | Comments Off on Too good to #0001