View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Mar 02, 2009 3:17 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Basically, I'd like to know how to start a program from a shell and have it load up in an active X session. Example. KM box is running X on display :0 as per defaults. I want to ssh into the box from another PC and run a GUI program like mplayer and have it appear in the :0 display. Is this possible and if so, how?

Thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 02, 2009 5:19 am 
Offline
Joined: Mon Mar 20, 2006 11:39 am
Posts: 35
Try using the -X -option with ssh. Here at work I have a Fedora 9:

Quote:
OpenSSH_5.1p1, OpenSSL 0.9.8g 19 Oct 2007


ssh -X mythtv@mythboxip

xeyes and even mythfrontend work, even though fe is _really_ slow...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 02, 2009 7:34 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
ssh tunneling (ssh -X) will allow a problem run on a remote machine to display on the machine you used to log into it (very useful).

If you want to have the program display on :0 (i.e. your TV), execute the following after logging in:
Code:
export DISPLAY=:0
Any further commands (ex. xterm) will display on the TV.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 02, 2009 3:46 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks for the suggestions. The way to do it:

1) On the LOCAL machine (i.e. the one on which you want the program running), open a shell and type 'xhost localhost'

2) Connect to the machine via ssh and enter the following into the shell 'export DISPLAY=:0.0'

Now anything you run from that ssh shell appears on X on the machine. Very cool and useful.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu