Like Railscasts or Ruby Tapas, but for Linux.
Related cards:
Desktop notification for failed systemd user services
You can execute systemctl --user --failed
to check for failed systemd user units. But let's face it: It's inconvenient and you'll probably miss failures. Better use desktop notifications.
~/.config/systemd/user/service.d/user-failure-notifi...
Use systemd-run as an alternative for screen
You might use screen
or tmux
to run a temporary command on a server which continues to run after the SSH session is closed.
Consider systemd-run
as alternative. It will turn every command in a systemd ser...
stopping / restarting libvirt on Ubuntu 16.04 with systemd
Because systemd is the greatest thing ever it's not enough to stop the libvirt service. You need to disable the libvirt socket too.
sudo systemctl stop libvirt-bin
sudo systemctl stop libvirt-bin.socket
sudo systemctl start libvirt-bin
start a systemd service blocked by rate limiting
If a systemd service unit is blocked by rate limiting (see in documentation) you can reset the failcounter via:
systemctl reset-failed $UNIT
...
netfilter's Connection Tracking system (nf_conntrack)
What is netfilter's Connection Tracking system?
The connection tracking system often referenced as nf_conntrack
is part of the Netfilter framework. It allows the ...
Prevent systemd from dropping IP-Addresses configured from other processes
Systemd's networkd will drop IP-Addresses configured by other processes like Keepalived's VRRP, when it is restarted. This may happens on updates.
To prevent this following settings are required in /run/systemd/network/10-netplan-eth0.network
...
Installing throttled to fix Lenovo laptops with nvidia graphics running Ubuntu losing performance after a while
We have observed Lenovo laptops with nvidia graphics losing performance after they have been in use for a few minutes. While we have not been able to pinpoint exactly what triggered the performance loss, we have found it mostly correlated with hig...
Useful jq commands
jq
is great when dealing with JSON data. Check out the official jq Manual.
Content
- Select only specific keys
- Modify keys
- [Set default v...
loginctl: Failed to look up user $USER: No such process
When you get this error message from e.g. loginctl show-user [...]
after you deleted a user from your system:
# $USER is the username you deleted
loginctl: Failed to look up user $USER: No such process
then you can either switch to a L...