18 Aug 2024 |
Whovian9369 | With or without sudo ? | 20:13:30 |
K900 | With | 20:14:12 |
K900 | It should elevate without | 20:14:18 |
Whovian9369 | $ systemctl start user@1000
Failed to execute /run/current-system/sw/bin/pkttyagent: No such file or directory
Failed to start user@1000.service: Access denied
See system logs and 'systemctl status user@1000.service' for details.
$ sudo systemctl start user@1000
Tried with both, so I'm guessing-- Yeah lol
| 20:14:18 |
K900 | If you have polkit | 20:14:20 |
K900 | Oh, you don't have polkit | 20:14:26 |
K900 | OK | 20:14:26 |
K900 | Is it running now? | 20:14:29 |
Whovian9369 | Yep.
$ systemctl status user@1000
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/etc/systemd/system/user@.service; static)
Drop-In: /nix/store/wckbdxx34b886d1rrgf2qx8wh97ngkpb-system-units/user@.service.d
└─overrides.conf
Active: active (running) since Sun 2024-08-18 16:13:35 EDT; 49s ago
Invocation: 11780767dd7d44a899fef51313dd74a3
...
| 20:14:54 |
K900 | I guess the next question then is, why is it not starting automatically | 20:15:07 |
K900 | What WSL version are you on? | 20:15:13 |
K900 | That is wsl --version | 20:15:18 |
Whovian9369 | In reply to @whovian9369:matrix.org
Yep.
$ systemctl status user@1000
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/etc/systemd/system/user@.service; static)
Drop-In: /nix/store/wckbdxx34b886d1rrgf2qx8wh97ngkpb-system-units/user@.service.d
└─overrides.conf
Active: active (running) since Sun 2024-08-18 16:13:35 EDT; 49s ago
Invocation: 11780767dd7d44a899fef51313dd74a3
...
Including the log printing agenix ingesting and decrypting the secrets, which is good | 20:15:30 |
Whovian9369 | In reply to @k900:0upti.me That is wsl --version $ wsl.exe --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.19045.4780
| 20:15:52 |
K900 | Try wsl --update --pre-release | 20:16:02 |
K900 | They have a slightly less insane way to start user sessions in 2.3.something | 20:16:18 |
Whovian9369 | Normally I wouldn't like trying the "non-stable" versions, but will do. | 20:16:35 |
K900 | (still insane, just slightly less) | 20:16:37 |
Whovian9369 | Thank you for the time, by the way. 😅 | 20:17:49 |
Whovian9369 | Updated WSL to 2.3.17, so I'm starting my NixOS instance now | 20:25:43 |
Whovian9369 | Failed to connect to bus: No such file or directory again when trying $ systemctl status user@1000 again, what the hell systemd ? | 20:26:30 |
Whovian9369 | $ sudo su
sudo: effective uid is not 0, is /run/wrappers/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
Seems sudo broke now too, which definitely isn't uh, good
| 20:28:41 |
K900 | You want sudo -i | 20:38:22 |
K900 | Not sudo su | 20:38:25 |
Whovian9369 | That was just meant to be an example command to show that sudo is broken. Either way, $ sudo whoami gives a similar error. | 20:39:09 |
K900 | That sounds very wrong | 20:40:07 |
Whovian9369 | Tested $ sudo whoami in my original Ubuntu instance and it still appears to work fine too | 20:41:01 |
Whovian9369 | Here's the updated wsl --version output
WSL version: 2.3.17.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.64
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.4780
| 20:41:30 |
Whovian9369 | (Interestingly, the WSLg and DXCore versions differ now too? Not sure if that's intentional, and/or I'm misreading.) | 20:42:42 |
K900 | Yes, that's normal | 20:42:47 |