LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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
 
Old 09-17-2011, 10:06 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,437

Rep: Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356
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, 10: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, 10:17 AM   #4
frieza
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,200

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

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

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

Jaeyong
 
  


Reply


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 02:20 AM
Cross-platform remote control / remote desktop software trafikpolisen Linux - Software 5 01-24-2010 01:27 AM
How to call Shell Script on a remote server with remote servers env variables need Linux - Server 1 10-14-2009 09:37 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 04:48 PM
Launching a remote win32 process zael Programming 7 10-07-2003 07:19 AM


All times are GMT -5. The time now is 08:55 PM.

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