[oS-en] How can I fire up firefox on another computer using ssh?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have a computer on the wall behind my desktop computer, which I use to display videos and things. I want to launch videos on firefox there while typing on my desktop computer. So, on my desktop computer I try: ssh -X cer@wallcomputer "firefox https://www.youtube.com/something" I get back, on my desktop computer: [GFX1-]: glxtest: X error, error_code=1, request_code=155, minor_code=1 [GFX1-]: glxtest: process failed (exited with status 1) ###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost cer@Telcontar:~> And a popup that says: [Close firefox (on wall computer)] Firefox is already running but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile. I try also: cer@Telcontar:~> ssh -X cer@wallcomputer "firefox --no-remote https://www.youtube.com/something" [GFX1-]: glxtest: X error, error_code=1, request_code=155, minor_code=1 [GFX1-]: glxtest: process failed (exited with status 1) cer@Telcontar:~> Is there a (simple) way to do what I want? - -- Cheers Carlos E. R. (from 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYycIrRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVNVoAnjabrxmZs88IWTWZXC1q CDk1FWkaAJ4kzO0FgKUWu6nD37um9yRhmE3UMw== =ck/U -----END PGP SIGNATURE-----
* Carlos E. R. <robin.listas@telefonica.net> [09-18-22 08:03]:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I have a computer on the wall behind my desktop computer, which I use to display videos and things. I want to launch videos on firefox there while typing on my desktop computer.
So, on my desktop computer I try:
ssh -X cer@wallcomputer "firefox https://www.youtube.com/something"
I get back, on my desktop computer:
[GFX1-]: glxtest: X error, error_code=1, request_code=155, minor_code=1 [GFX1-]: glxtest: process failed (exited with status 1)
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
cer@Telcontar:~>
And a popup that says:
[Close firefox (on wall computer)] Firefox is already running but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.
I try also:
cer@Telcontar:~> ssh -X cer@wallcomputer "firefox --no-remote https://www.youtube.com/something" [GFX1-]: glxtest: X error, error_code=1, request_code=155, minor_code=1 [GFX1-]: glxtest: process failed (exited with status 1) cer@Telcontar:~>
Is there a (simple) way to do what I want?
- -- Cheers
Carlos E. R. (from 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE-----
iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYycIrRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVNVoAnjabrxmZs88IWTWZXC1q CDk1FWkaAJ4kzO0FgKUWu6nD37um9yRhmE3UMw== =ck/U -----END PGP SIGNATURE-----
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote" always works for me. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2022-09-18 at 14:01 +0200, Carlos E. R. wrote:
Is there a (simple) way to do what I want?
Got it. ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something" - -- Cheers, Carlos E. R. (from openSUSE 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYycSFBwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVsRQAniCi60Yad2QK7Rq19beB UlCV4FGhAJsFCgFIML9dPy9oHgKLEHmvayD8MA== =8hYZ -----END PGP SIGNATURE-----
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message. Meanwhile, this worked: ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something" -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
* Carlos E. R. <robin.listas@telefonica.net> [09-18-22 08:47]:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
- - Cheers / Saludos,
Carlos E. R. (from 15.3 x86_64 at Telcontar)
so you have rebooted your local computer and not the remote and now the ~/.Xauthority is incorrect, doesn't match. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
-X can never do what Carlos wants. It forwards the X connection from the client on the remote host (i.e. wall computer) onto the local display (i.e. desktop computer) Just setting the name of the display on the remote host is enough, as he discovered.
* Dave Howorth <dave@howorth.org.uk> [09-18-22 10:39]:
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
-X can never do what Carlos wants. It forwards the X connection from the client on the remote host (i.e. wall computer) onto the local display (i.e. desktop computer)
it can if xauth is the same on both. I use similar commands frequently w/o any problem nor the need to designate "DISPLAY="
Just setting the name of the display on the remote host is enough, as he discovered.
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
On 2022-09-18 16:59, Patrick Shanahan wrote:
* Dave Howorth <dave@howorth.org.uk> [09-18-22 10:39]:
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
-X can never do what Carlos wants. It forwards the X connection from the client on the remote host (i.e. wall computer) onto the local display (i.e. desktop computer)
it can if xauth is the same on both.
But it is not going to be, unless I do something to set it up. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)
On Sun, 18 Sep 2022 10:59:49 -0400 Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Howorth <dave@howorth.org.uk> [09-18-22 10:39]:
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
-X can never do what Carlos wants. It forwards the X connection from the client on the remote host (i.e. wall computer) onto the local display (i.e. desktop computer)
it can if xauth is the same on both. I use similar commands frequently w/o any problem nor the need to designate "DISPLAY="
Could you provide a reference to back up your assertion please? I see nothing in the man page that suggests anything to do with xauth might change the display the application uses. An example command line(s) using e.g. xeyes as the application to run would be a bonus :)
Just setting the name of the display on the remote host is enough, as he discovered.
* Dave Howorth <dave@howorth.org.uk> [09-18-22 16:48]:
On Sun, 18 Sep 2022 10:59:49 -0400 Patrick Shanahan <paka@opensuse.org> wrote:
* Dave Howorth <dave@howorth.org.uk> [09-18-22 10:39]:
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
Is there a (simple) way to do what I want?
ssh -XC <remote-computer> "/usr/bin/firefox --no-remote"
always works for me.
Does not work, same popup message.
Meanwhile, this worked:
ssh cer@wallcomputer "DISPLAY=:0 firefox https://www.youtube.com/something"
-X can never do what Carlos wants. It forwards the X connection from the client on the remote host (i.e. wall computer) onto the local display (i.e. desktop computer)
it can if xauth is the same on both. I use similar commands frequently w/o any problem nor the need to designate "DISPLAY="
Could you provide a reference to back up your assertion please? I see nothing in the man page that suggests anything to do with xauth might change the display the application uses. An example command line(s) using e.g. xeyes as the application to run would be a bonus :)
Just setting the name of the display on the remote host is enough, as he discovered.
I have failed to discover the proper workings of xauth but recall seeing the err msgs. I reboot the local machine and it again properly displays X applications locally, or maybe that is the X server on the remote. I do not recall and really have not the interest to pursue. I only know that it "works for me". again, I do not and cannot recall ever using "DISPLAY=..." to be able to display X apps from remote to local machine and I just tested it again. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2022-09-18 at 18:49 -0400, Patrick Shanahan wrote:
* Dave Howorth <> [09-18-22 16:48]:
On Sun, 18 Sep 2022 10:59:49 -0400 Patrick Shanahan <> wrote:
* Dave Howorth <> [09-18-22 10:39]:
On Sun, 18 Sep 2022 14:45:31 +0200 "Carlos E. R." <> wrote:
On 2022-09-18 14:37, Patrick Shanahan wrote:
* Carlos E. R. <> [09-18-22 08:03]:
...
again, I do not and cannot recall ever using "DISPLAY=..." to be able to display X apps from remote to local machine and I just tested it again.
Notice that I am not doing the normal thing. I have no problem running an app in the remote computer issing ssh in the local machine. This time, I need the app to display in the remote machine instead. And, Firefox is special in these matters, it doesn't behave the same as other applications. - -- Cheers, Carlos E. R. (from openSUSE 15.3 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYyfE8Bwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVB9AAnjIu9YKIqXrwc+5SWAJz RoinomsEAJ96TS68U6uc6pMW30bx85GjuGH1BA== =Tz5S -----END PGP SIGNATURE-----
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. -- David C. Rankin, J.D.,P.E.
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, 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 -- www.becherer.de
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)
On Sun, 18 Sep 2022 21:56:45 -0500 "David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:
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.
David, you need to go back and reread the whole thread. :) Patrick is confused and is describing a different situation to what Carlos wants to achieve. -X and xauth is not relevant here.
Am 19.09.22 um 12:12 schrieb Carlos E. R.:
On 2022-09-19 07:59, Simon Becherer wrote:
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. yep, i understood, similar situation here, but maybe because of my situation: open a remote program here, inside this open a programm on the other machine, have to fire up with ssh -X a console and inside there i have to define the display.
fine if it works :-)) -- www.becherer.de
participants (5)
-
Carlos E. R.
-
Dave Howorth
-
David C. Rankin
-
Patrick Shanahan
-
Simon Becherer