Networking Forums

Networking Forums > Computer Networking > Linux Networking > Run an X app on remote machine

Reply
Thread Tools Display Modes

Run an X app on remote machine

 
 
s
Guest
Posts: n/a

 
      05-11-2004, 07:49 PM
How can I run an X app on a remote machine through an SSH connection?
Notice, I don't want the display to show on the local machine, I want
the process AND display to run on the remote machine.

Thanks,
 
Reply With Quote
 
 
 
 
Wayne Throop
Guest
Posts: n/a

 
      05-11-2004, 09:37 PM
: s <(E-Mail Removed)>
: How can I run an X app on a remote machine through an SSH connection?
: Notice, I don't want the display to show on the local machine, I want
: the process AND display to run on the remote machine.

First, decide which display you want it to interact with.
In this case, figure out the display name of the display
on the remote machine, relative to the remote machine. Often
this will be ":0.0". Assuming that's the one you want,

ssh -n -f -x remosthost env DISPLAY=:0.0 someapp


Wayne Throop (E-Mail Removed) http://sheol.org/throopw
 
Reply With Quote
 
Dances With Crows
Guest
Posts: n/a

 
      05-11-2004, 09:51 PM
["Followup-To:" header set to comp.os.linux.x.]
On Tue, 11 May 2004 14:49:49 -0500, s staggered into the Black Sun and said:
> How can I run an X app on a remote machine through an SSH connection?
> Notice, I don't want the display to show on the local machine, I want
> the process AND display to run on the remote machine.


This works for me, YMMV:

Log into remote as username using xdm/kdm, so a valid ~/.Xauthority is
generated for username.
local:~$ ssh -l username -x remote
( -x to disable X11 forwarding since you said you don't want that)
remote:~$ export DISPLAY=:0
remote:~$ nohup xeyes &

....this starts xeyes on the remote machine, and it displays on the
remote machine without problems.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / Hire me!
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume
 
Reply With Quote
 
Centurion
Guest
Posts: n/a

 
      05-11-2004, 10:57 PM
s wrote:

> How can I run an X app on a remote machine through an SSH connection?
> Notice, I don't want the display to show on the local machine, I want
> the process AND display to run on the remote machine.
>
> Thanks,


local$ ssh -x user@remote
(the '-x' isn't really needed but disables X forwarding)
remote$ export DISPLAY=127.0.0.1:0.0
(check the screen number - might be different)
remote$ xapp

You could also skip the second step and just use:
remote$ xapp -display=127.0.0.1:0.0

You may need the X session owner to give you permission to access the X
server etc, but that's a different question.

James
--
Say it with flowers,
Or say it with mink,
But whatever you do,
Don't say it with ink! -- Jimmie Durante

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with my remote machine chat Linux Networking 0 04-05-2008 04:04 PM
Retrieving the MAC address of remote machine? Rajesh Gupta Windows Networking 2 07-08-2004 12:16 AM
Can't ping remote machine using its name Xitch14 Windows Networking 1 01-20-2004 04:53 PM
Can Remote Assistance be installed on an ME machine? Joe Windows Networking 1 12-18-2003 12:16 AM
vnc - how to connect from remote machine outside of LAN gurka Linux Networking 2 11-10-2003 02:01 PM



1 2 3 4 5 6 7 8 9 10 11