zibaldone:linux:systemd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
zibaldone:linux:systemd [2021/10/08 14:53] – ↷ Page moved from tips:systemd to zibaldone:linux:systemd scipiozibaldone:linux:systemd [2024/06/04 15:00] (current) – [Systemd as user] sscipioni
Line 48: Line 48:
 </code> </code>
  
 +
 +deprecated
 <file bash /etc/profile.d/systemd-user.sh> <file bash /etc/profile.d/systemd-user.sh>
 export XDG_RUNTIME_DIR="/run/user/$UID" export XDG_RUNTIME_DIR="/run/user/$UID"
Line 53: Line 55:
 </file> </file>
  
 +new method
 +<code>
 +mkdir -p ~/.bashrc.d
 +echo "export XDG_RUNTIME_DIR=/run/user/$(id -u)" > ~/.bashrc.d/systemd 
 +source ~/.bashrc.d/systemd
 +</code>
 journalctl -u does not work. Use instead journalctl -u does not work. Use instead
 <code> <code>
  • zibaldone/linux/systemd.1633697638.txt.gz
  • Last modified: 2021/10/08 14:53
  • by scipio