I have a server running debian which is mostly headless but I want to connect a monitor to it to passively play videos. I'm currently playing videos by running mpv --vo drm over ssh so they it plays without a display server or having to log into a tty on the monitor. The problem now is I want to aut...
I have a script for updating my system so when I want to update I can just run the script rather than remembering multiple commands to update various things. The script: LOG_DIR=~/.cache/upd LOG_PATH=$LOG_DIR/upd.log mkdir -p $LOG_DIR ( yay -Syu --devel && \ rustup update && \ cargo install-update -...
I used the time command to time how long a program takes to compile and got this output: real 0m5.178s user 0m6.416s sys 0m0.438s If I'm understanding the man page correctly, the "real" time is the real life time as observed by the user, and "user"/"sys" times are to do with how long the cpu spent r...
Lets say I'm running cat a > b and writing to b requires root permissions. If I run sudo cat a > b then it doesn't work, presumably because it's running cat as root and not the > operator. How would I write this command so that the > operator is run as root? Whenever this comes up I've run sudo -i t...
When there is no gui login manager installed and you're just logging in via the shell, is it possible to see a list of users? I always just make 1 user with my name so it's not a problem to type it in but if I did have multiple users it would be annoying to have to remember all of them.
On my home network I have a desktop running arch linux and a server running openmediavault. The networking for my desktop is managed with systemd-networkd with the following file: /etc/systemd/network/0-wired.network [Match] Name=enp42s0 [Network] DHCP=ipv4 With this, everything works correctly but...