14 Mar
2023
14 Mar
'23
13:19
Carlos E. R. wrote:
On 2023-03-14 13:23, Pit Suetterlin wrote:
Per Jessen wrote:
Carlos E. R. wrote:
...
Unable to init server: Could not connect: Connection refused Error: cannot open display: :0
Hmm, might that be the same issue that x11vnc_ssh has, that the xauth file isn't available/linked? I'm circumventing that with a wrapper,
#!/bin/bash XA=$(ssh $1 "ls -t /run/user/1000/xauth_*|head -1") exec x11vnc_ssh $1 "-auth $XA"
Maybe something similar works there? (1000 is the UID on the remote machine)
ssh doesn't seem to have an "-auth" option.
:-?
Set it as environment variable? DISPLAY=:0 XAUTHORITY=$XA firefox ....