[opensuse] ssh session, open specific software with screenoutput at host not at client
Hi, how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen? i googled, but found nothing for this situation. try to do something like: simon@local:> ssh -X host simon@host:> konsole -e mc and the konsole+midnightcommaner should be opened at host screen (with host x11/hardware) not at the local machine. (as it will do with this commands) this should be a workaround for a bigger problem: i have a virtual kvm suse 10.1 running with a propertary software. this software works fine over ssh -X, screenoutput is on the client. now this software has to start an additional konsole + wine windows software (only textbased-output-inside-console!!!) this output is also on client (as normal). but, since i switched my clients from opensuse 11.4 to tumbleweed, the old virtual 10.1suse-wine produces a error: (this error i get also when trying to start wineconsole or winecfg over ssh) X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 13 Current serial number in output stream: 14 (by the way glxgears work fine at client, also fine at host opensuse10.1 inside virtual screen, but not when started via ssh) (and works also when starting over ssh from one to another tumbleweed machine) because i think this is an incompatibly hardware and or software problem from old virtual running wine to actual hardware, (and i have no idea how to fix this), the idea is to do not have this output on the client. i do NOT need the screen-window-output at clientside, its a windows shell based program which only will convert some special files, so no need to see a window or what it do at all. regrads, simoN -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-07-16 12:29, Simon Becherer wrote:
Hi,
how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen?
i googled, but found nothing for this situation.
try to do something like:
simon@local:> ssh -X host simon@host:> konsole -e mc and the konsole+midnightcommaner should be opened at host screen (with host x11/hardware) not at the local machine. (as it will do with this commands)
But the intention of ssh is that the application actually runs at the host, but displays at the client. It is working as designed. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
Simon Becherer wrote:
Hi,
how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen?
You have to set DISPLAY and XAUTHORITY properly, e.g.: ssh host on host: export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority start_graphical_application -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi peter,
ssh host on host: export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority start_graphical_application
thanks a lot!!! that was the trick! simoN Am 16.07.2018 um 14:34 schrieb Peter Suetterlin:
Simon Becherer wrote:
Hi,
how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen?
You have to set DISPLAY and XAUTHORITY properly, e.g.:
ssh host on host: export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority start_graphical_application
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi again peter, how to revert it? ============================= this works so far: inside ssh: xclock (will be on local (client) screen) DISPLAY=:0.0 XAUTHORITY=$HOME/.local/share/sddm/.Xauthority xclock (will be on host screen) xclock (will be on local (client) screen) ======================================== but when i try: inside ssh: simon@becherer4:~> echo $DISPLAY localhost:11.0 simon@becherer4:~> echo $XAUTHORITY (empty) export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority xclock (will be on host) export DISPLAY=localhost:11.0 export XAUTHORITY= xcolck X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:11.0 ??????????????????????? wht did i missing here? simoN Am 16.07.2018 um 14:34 schrieb Peter Suetterlin:
Simon Becherer wrote:
Hi,
how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen?
You have to set DISPLAY and XAUTHORITY properly, e.g.:
ssh host on host: export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority start_graphical_application
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Sorry, one more,
You have to set DISPLAY and XAUTHORITY properly, e.g.:
your solution works if on host the user is already logged locally in. but how do i do this from client? with other words, how did i initial open my user on host? because its an virtual machine, normally it is only booted into the login screen. and therefore i think this .Xautority file is not set yet? regrads, simoN Am 16.07.2018 um 14:34 schrieb Peter Suetterlin:
Simon Becherer wrote:
Hi,
how to ssh to a host, client opens a shell (as normal), then inside this shell i like to start a program, but the complete output of this program should be at the hosts screen?
You have to set DISPLAY and XAUTHORITY properly, e.g.:
ssh host on host: export DISPLAY=:0.0 export XAUTHORITY=$HOME/.local/share/sddm/.Xauthority start_graphical_application
-- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Simon Becherer wrote:
how to revert it?
I guess (untested) you'd have to 'unset XAUTHORITY'
Sorry, one more,
You have to set DISPLAY and XAUTHORITY properly, e.g.:
your solution works if on host the user is already logged locally in. but how do i do this from client? with other words, how did i initial open my user on host?
Uh, that most likely won't work. You *do* need a session running, else there is no display/screen where your application could be shown. So either set up the machine to do autologin of the respective user, else you'd have to connect to the loginscreen with some VNC/RDP client and log in yourself. But I don't have experience with virtual machines..... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2018-07-17 11:55, Peter Suetterlin wrote:
Simon Becherer wrote:
how to revert it?
I guess (untested) you'd have to 'unset XAUTHORITY'
Sorry, one more,
You have to set DISPLAY and XAUTHORITY properly, e.g.:
your solution works if on host the user is already logged locally in. but how do i do this from client? with other words, how did i initial open my user on host?
Uh, that most likely won't work. You *do* need a session running, else there is no display/screen where your application could be shown.
So either set up the machine to do autologin of the respective user, else you'd have to connect to the loginscreen with some VNC/RDP client and log in yourself.
But I don't have experience with virtual machines.....
For this issue, it is just the same as with real hardware. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
Hi peter, yes you are right: unset XAUTHORITY and its reversed. i was thinking an empty variable like: export XAUTHORITY= will do the same... it seems i am wrong... ================ (hopefully) last question: where are the magic cookies of the "normal" behavior of ssh saved? - XAUTHORITY seems for me to overwrite this, and if it did not exist, it will use the somehow saved one? regards, simoN Am 17.07.2018 um 11:55 schrieb Peter Suetterlin:
Simon Becherer wrote:
how to revert it?
I guess (untested) you'd have to 'unset XAUTHORITY'
Sorry, one more,
You have to set DISPLAY and XAUTHORITY properly, e.g.:
your solution works if on host the user is already logged locally in. but how do i do this from client? with other words, how did i initial open my user on host?
Uh, that most likely won't work. You *do* need a session running, else there is no display/screen where your application could be shown.
So either set up the machine to do autologin of the respective user, else you'd have to connect to the loginscreen with some VNC/RDP client and log in yourself.
But I don't have experience with virtual machines.....
-- B e c h e r e r GmbH Sondermaschinenbau Mauermatten Strasse 22 79183 Waldkirch Germany Tel.: (+49) (0)7681 3134 Fax: (+49) (0)7681 4378 Mail: info@becherer.de Web: www.becherer.de USt-ID-Nr.: DE 814912198 Registergericht: Freiburg HRB 701860 Geschäftsführer: Dipl.-Ing. (FH), EWE Simon H. Becherer Gerichtsstand / Sitz: Waldkirch Es gelten ausschließlich unsere allgemeinen Liefer- und Zahlungsbedingungen / Einkaufsbedingungen: www.becherer.de/AGB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Peter Suetterlin
-
Simon Becherer