On Tue, 14 Mar 2023 11:40:03 +0100, Per Jessen
Carlos E. R. wrote:
cer@Telcontar:~> IsengardFirefox https://www.youtube.com/watch?v=Y-4S7cdo3tY Invalid MIT-MAGIC-COOKIE-1 keyNo protocol specified Error: cannot open display: :0 cer@Telcontar:~>
This is a solution we concocted on this thread:
What was the solution?
Why doesn't it work now?
Lack of authorisation to access the X server I suspect. I see the exact same between my laptop (office68, leap153) and my livingroom TV (zotac1, leap151)
per@office68:~> ssh zotac1 firefox https://www.youtube.com/watch?v=XhM0DGEZeV0 Error: no DISPLAY environment variable specified per@office68:~> ssh zotac1 DISPLAY=:0 firefox https://www.youtube.com/watch?v=XhM0DGEZeV0 Invalid MIT-MAGIC-COOKIE-1 keyNo protocol specified Unable to init server: Could not connect: Connection refused Error: cannot open display: :0
First, I get a maybe equivalent error message trying this from a not up-to-date Tumbleweed system to a remote, almost up-to-date Tumbleweed system: linux@th-live:~> ssh robert@poppies 'DISPLAY=:0 firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY' Authorization required, but no authorization protocol specified Authorization required, but no authorization protocol specified Error: cannot open display: :0 But calling ssh with the -X option, and no DISPLAY setting, works to open the page in an already running firefox on the *remote* system: linux@th-live:~> ssh -X robert@poppies 'firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY' Normally, that usage would display the GUI app on the local system. Ah, maybe it is because firefox tries to find an already running instance, and it finds the one displaying on the remote system. For me also, it doesn't work without the -X : Error: no DISPLAY environment variable specified -- Robert Webb