On 2023-03-14 14:19, Pit Suetterlin wrote:
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 ....
YES! Thank you. cer@Telcontar:~> cat /home/cer/bin/IsengardFirefox #!/bin/bash XA=$(ssh cer@isengard.valinor "ls -t /run/user/1000/xauth_*|head -1") exec ssh cer@isengard.valinor "DISPLAY=:0 XAUTHORITY=$XA firefox \ $1 $2 $3" #ssh -X cer@isengard.valinor "DISPLAY=:0 firefox $1 $2 $3" cer@Telcontar:~> cer@Telcontar:~> IsengardFirefox \ https://www.youtube.com/watch?v=Y-4S7cdo3tY cer@Telcontar:~> Works perfectly :-) -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)