LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Launching remote xclock at remote (https://www.linuxquestions.org/questions/linux-newbie-8/launching-remote-xclock-at-remote-903529/)

Jae-Yong Yoo 09-17-2011 08:10 AM

Launching remote xclock at remote
 
Hello,

when we ssh-login at remote and run xclock (using x-forwarding) then xclock is shown at local.

Is there any way that launches xclock at remote from local by ssh login?


Regards,
Jaeyong

allend 09-17-2011 09:06 AM

There is some confusion here.
When you launch xclock as you described, then the application _is_ launched on the remote computer. Only the display is forwarded to the local computer.

If you are wanting to ssh into the remote computer, and control it from your local computer so that all you do can be seen on the remote computer, then you can do this by installing a VNC server on the remote computer. The VNC server can then be accessed over a ssh connection using dynamic port forwarding (the -D option in ssh) and a local web browser configured to use a SOCKS proxy on the dynamically forwarded port.

Jae-Yong Yoo 09-17-2011 09:14 AM

Thanks allend,

VNC is too much for me. What I want is very simple. I just want to launch (also seen) xclock at the remote over ssh and I don't want to see the desktop of the remote nor the remote desktop can be controlled by me.

I think there might be a way by mangling terminal ID and something but I do not know how to do it.

frieza 09-17-2011 09:17 AM

you could try

Code:

$ DISPLAY=:0 xclock

Jae-Yong Yoo 09-17-2011 09:31 AM

It works!! Thanks a lot :)

Jaeyong


All times are GMT -5. The time now is 02:42 AM.