On 2022-09-19 07:59, Simon Becherer wrote:
Am 19.09.22 um 04:56 schrieb David C. Rankin:
On 9/18/22 09:59, Patrick Shanahan wrote:
it can if xauth is the same on both. I use similar commands frequently w/o any problem nor the need to designate "DISPLAY="
Concur,
I launch all remote X apps with ssh -X (actually ssh -Y, but same function). xauth works properly (even on KDE3)
The only hiccup will be if you attempt to run as another user -- which will obviously fail due to xauth mismatch.
Is this here solved? i have not read all,
YES, it has been solved. It only works doing: ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something" That is, I'm telling the media center at the other end of the room to display a youtube video. On the media center, but I type the command on a different computer that I have at hand. Notice that when I see people saying "I launch all remote X apps with ssh -X " I doubt they understood the question. What I am doing is very rare. Of course I also launch all remote X apps with ssh -X, but this is not that situation. In this case I want the remote firefox to display only on the remote computer. The use of "-X" is for displaying on the LOCAL computer. This is not what I am doing. The normal situation for any application via ssh is to run on the remote computer and display on the local computer. If it is a text application it runs directly, if it is graphical you have to use -X or -Y. That is not what I am doing.
carlos if not solved i would try to open a console on the remote machine, then inside there i would start firefox. i do something maybe "similar" starting with ssh a console who has to open on remote machine. only thing you have to check ist, that the desktop is open at the remnote machine, if you are in loginscreen it will fail. if this would help you, i have to check, where i have the correct commands, its a little bit more complicated in my situation, because i start over ssh a graphical programm local, from (inside) this program i open a console and start a console which opens a console remote (normally it would start this on local machine) (or the other way around). i know i have had played around with "display=" because it started it on wrong machine. as far as i remember, i have had to go to start console first and execute command from there. - (man konsole) sorry, i do not remember correct, its from tumbleweed to suse 10.2 and back, and it was a normal ssh as it was from opensuse 11.3 to 10.2 after updating some years in past to tumbleweed it (the inside console opend graphical application) was not working (giving a xdisplay problem) and most easy way was to start it a the other machine. so i have to take care on wich desktop to start. -> furthermore in my situation 10.2 running virtual, but this should not has to do anyting with the problem.
the -no-remote command has something to do which settings are loaded as i remember. nothing with display.
simoN
-- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)