Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 12-20-2007, 08:24 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 14

Rep: Reputation: 0
Running X + App Locally via a Remote Shell

Hard to say if this shouldn't be in Linux - Server...

I'm currently attempting to slowly build out a Media Server/LAMP machine; it's doing the LAMP thing just fine. I've also got the box hooked up to my TV but haven't gotten around to making use of that, until now.

Since I have my laptop on 24/7 and usually within arm's reach, I'd like to be able to run an X session, say, to play a movie/dvd from the server and display it on the TV.

I've read a few thing about dmx and others suggesting VNC. I'm not for using VNC as I'm most certain there is a simpler way of doing this.

I've noted some people on the forums have mentioned passing the $DISPLAY variable with the associated screen to get this to work.

I do not want the overhead of an xserver running when I'm not making use of it, I'd like to just pass a command such as startx followed with a xine or xmplayer line to startup a movie. Once I'm done watching the film I'd like to kill the playback as well as the X session.

A concern: since I'm very rarely at the console, does passing the $DISPLAY get X to just take over the screen even though the terminal hasn't been logged into?

Thanks for any pointers/information/previous threads/articles/or direct solutions ahead of time!
Old 12-21-2007, 02:40 PM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
So, I'm quite sure I didn't fully understand your post but I still want to give it a try . You mean something like logging into some kind of movie server using "ssh -Y -C yourserver" and afterwards watching the movie locally as you usually do (e.g. "mplayer mymovie.avi")?
Old 12-21-2007, 03:53 PM   #3
LQ Newbie
Registered: Sep 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Laptop ~ Network ~ Server -> TV

SHH from Laptop to the server, and initiate an X session locally to the server, as to run mplayer (and such) on the TV plugged into the server.

(use the laptop as a giant remote)
Old 12-21-2007, 10:56 PM   #4
Registered: Aug 2007
Distribution: File Server: Ubuntu 10.04
Posts: 56

Rep: Reputation: 15
Keep in mind that in order to use the ssh -Y command you have to enable X11 forwarding in the sshd_config file on the computer you're trying to connect to.


control, media, remote, server, x11, xorg

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
How to mount remote server locally to a machine? ammar Linux - Networking 1 08-18-2006 01:02 AM
running shell command on remote machine with ssh qrshat Solaris / OpenSolaris 3 08-17-2006 07:32 AM
built kernel locally...need to install to a remote machine. how? ARCHIGAMER Linux - General 1 04-10-2005 02:52 PM
Sendmail: Deliver locally and remote mague Linux - Software 1 11-04-2003 06:08 PM
Starting processes from remote shell and keep them running... johannes Linux - Networking 5 07-23-2003 09:38 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:07 AM.

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