LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-31-2009, 12:58 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
How to use xine from within ssh session


Hi everybody,

I am trying to run xine on a computer connected to my LAN using SSH and issuing commands from my laptop computer (think remote control).

The media I want to be running through xine is MPG

I can ssh in successfully, but when i try a command such as:

xine /path/filename.mpg

I get "Cannot open Display" error.

Does anybody here know how to do this correctly?

Regards,
Greengrocer
 
Old 01-31-2009, 01:25 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,040

Rep: Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914Reputation: 1914
"ssh -X ..." (capital X) - see the manpage. Will probably require some config changes as well.
 
Old 01-31-2009, 02:35 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
Sounds like an Xserver error, usually you get this when you try to open a gui application when the machine is running in runlevel 3 (command line mode), or as a different user, other than the one currently logged in to the graphical environment.

On the remote machine make sure your graphical environment is running and you are logged in as a user, then log in through ssh as that same user then try the command again.
 
Old 01-31-2009, 03:41 AM   #4
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by syg00 View Post
"ssh -X ..." (capital X) - see the manpage. Will probably require some config changes as well.
Thanks for the reply syg00. If I use the -X switch, then the video output is sent accross the LAN to the computer which I want to use as a remote control. Not really the intended behavior I was looking for with the video output.

Any other ideas?

Quote:
Originally Posted by fotoguy View Post
On the remote machine make sure your graphical environment is running and you are logged in as a user, then log in through ssh as that same user then try the command again.
Yep I was using same user for ssh session as was logged in on the remote server.

I guess the problem will be that I am issuing the command from a different run level in a secure shell session.

Note that I get exactly the same behavior if I simply switch to another tty using CTRL+ALT+1 on the server computer and type:

xine /path/file.mpg
 
Old 01-31-2009, 03:59 AM   #5
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Some progress...

If I switch to TTY1 (CTRL+ALT+F1) and then do the following:

Code:
export DISPLAY=:0
xine -V xv /path/file.mpg
Playback begins but every 10 seconds my TTY1 has this message appearing:

Code:
gnome-screensaver-message: Failed to connect to the DBUS daemon:
Anybody have any ideas how to satisfy that error so that it does not occur?
 
Old 02-01-2009, 06:27 PM   #6
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 153

Rep: Reputation: 44
I suggest you ignore it. Gnome loves to output these types of errors and they are a pain, but there is little you can do about it.

It would be caused by XINE attempting to ensure that the screen saver does not start while playing a video.

One solution may be to find the right environment variable GNOME sets, and pass it to xine, so it can make contact with the gnome server running on that display.
 
  


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
Take over an ssh session. mikesjays Linux - Networking 8 07-18-2008 09:20 AM
ssh session bkone Linux - Newbie 3 10-17-2007 03:34 PM
SSH Session lost iqlinx Linux - Networking 2 06-09-2006 05:38 PM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 02:05 AM
How to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 08:15 PM


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