LinuxQuestions.org
Visit Jeremy's Blog.
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-30-2009, 11:58 PM   #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, 12:25 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,752

Rep: Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972Reputation: 3972
"ssh -X ..." (capital X) - see the manpage. Will probably require some config changes as well.
 
Old 01-31-2009, 01:35 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
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, 02: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, 02: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, 05:27 PM   #6
A.Thyssen
Member
 
Registered: May 2006
Location: Brisbane, Australia
Distribution: linux
Posts: 157

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 08:20 AM
ssh session bkone Linux - Newbie 3 10-17-2007 02:34 PM
SSH Session lost iqlinx Linux - Networking 2 06-09-2006 04:38 PM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 01: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 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

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
Open Source Consulting | Domain Registration