LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2007, 10:40 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Rep: Reputation: 35
Run application on *monitor* of remote machine via SSH?


I have machine set-up that is without keyboard and mouse, that is plugged in to my plasma TV via its VGA input.

I would like to SSH into the machine from my laptop and play a movie on the remote PC, but not the laptop. If I ssh in and use mplayer it plays the movie on my laptop of course!

Is there anyway to play the movie on this remote pc and show the film on the plasma rather than the laptop?

I do not want to run VNC on the machine driving the plasma, it's an old machine and the fewer apps running on it the better!

Many thanks.

Last edited by DiBosco; 04-07-2007 at 03:11 PM.
 
Old 04-07-2007, 03:08 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
for instance:
mplayer -v -display :0 myvideo.avi

will work if you have one video card. If you have more than one card, then something like this might be needed:

mplayer -v -adapter 0 -display :0 myvideo.avi

This command will start it fullscreen on the default display:

mplayer -fs -v -display :0 myvideo.avi

Last edited by jiml8; 04-07-2007 at 03:14 PM.
 
Old 04-08-2007, 10:53 AM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Hi Jim,

Thanks for that, but that still opens mplayer on my laptop. I want it to be displayed on the monitor on the machine which I have connected to over SSH. I probably didn't explain that very well.
 
Old 04-09-2007, 01:27 AM   #4
cseanburns
Member
 
Registered: Nov 2003
Distribution: Debian, Ubuntu, Fedora
Posts: 118

Rep: Reputation: 18
Maybe you could give us more information:

1. What ssh command are you giving; is it as simple as 'ssh user@computer' or are you using options we should know about.
2. What command did you use to start the movie?
3. Where is the movie located: the laptop or the remote machine?
 
Old 04-09-2007, 04:49 AM   #5
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 748

Original Poster
Rep: Reputation: 35
Hmmm, that is very odd, I've just gone through it all step by step and done it here to confirm all the steps and now it works. I tried it over and over again with slightly different implementations and it resolutely refused to work. Now I did just as Jim said and it opens on the remote machine.

mplayer -v -display :0 filename.mpg

I definitely tried that yesterday and it wouldn't have it! This time it works on the remote screen.

Thanks very much for the help.
 
Old 04-09-2007, 08:57 AM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
I know I did it here before I told you it would work and it did exactly what was desired.
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
How to Display Running Application on Remote Machine with SHH anamericanjoe Linux - Software 3 09-14-2006 11:39 AM
Running X-application on a remote AND local machine LinuxFrosh Linux - Software 1 07-04-2006 10:24 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
How do I setup xwindow to run a remote desktop on my local machine through ssh. green-ears Linux - Newbie 4 11-04-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:22 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