Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 401  / 2 Years ago, sun, september 18, 2022, 1:50:32

I'm in a setup (20.04) that is basically headless (a solaris zone, but we could probably consider it analogous to any server sort of setup), and as such, I don't have any graphical environment installed already.


When I log in (via SSH or zlogin), my $XDG_RUNTIME_DIR and friends are not set. I was wondering, what is the minimum setup I need to perform, to have these managed automatically by the system? I have read that the directories should be managed by PAM's systemd module, and so have installed libpam-systemd, to no avail.


There's plenty online regarding the setup of these directories, but much relates to graphical environments or sudo for example, where the root cause is different.


Is there a package I need to install, or some minimum configuration to perform, to ensure that the XDG directories are set up and exported in the environment automatically, without resorting to installing some other large set of software (e.g. X) that will have it set up as a side effect, and without writing a script manually?


Thanks


More From » systemd

 Answers
6

Seems my problem was actually related to a failure during boot of some systemd units that didn't show any other side-effects and wasn't picked up due to the nature this container was deployed. As such this has now resolved itself and so I assume that the libpam-systemd package is in fact all that is required.


[#1808] Sunday, September 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
otputler

Total Points: 53
Total Questions: 105
Total Answers: 93

Location: Zimbabwe
Member since Wed, Nov 9, 2022
2 Years ago
otputler questions
Tue, Aug 23, 22, 14:36, 2 Years ago
Fri, Jul 23, 21, 11:57, 3 Years ago
Sun, Feb 12, 23, 18:37, 1 Year ago
;