Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-17-2011, 08:10 AM   #1
Jae-Yong Yoo
LQ Newbie
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Launching remote xclock at remote


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?

Old 09-17-2011, 09:06 AM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,539

Rep: Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419
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.
Old 09-17-2011, 09:14 AM   #3
Jae-Yong Yoo
LQ Newbie
Registered: Jul 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.
Old 09-17-2011, 09:17 AM   #4
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,215

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
you could try

$ DISPLAY=:0 xclock
Old 09-17-2011, 09:31 AM   #5
Jae-Yong Yoo
LQ Newbie
Registered: Jul 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
It works!! Thanks a lot



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching gui applications on remote computer babu198649 Linux - Newbie 4 03-30-2010 01:20 AM
Cross-platform remote control / remote desktop software trafikpolisen Linux - Software 5 01-24-2010 12:27 AM
How to call Shell Script on a remote server with remote servers env variables need Linux - Server 1 10-14-2009 08:37 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM
Launching a remote win32 process zael Programming 7 10-07-2003 06:19 AM

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration