LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-05-2011, 06:42 AM   #1
taara
LQ Newbie
 
Registered: Mar 2009
Posts: 23
Blog Entries: 1

Rep: Reputation: 2
Executing a video from putty (remote control vlc)


I am out of ideas of how to run videos at a remote machine that has a display. I have a debian system with gnome installed and everything is set up but I just donīt now how to start the video over anything. I have tried simply to start #vlc video file - but this way it thinks that I want to run it in my bash over at a nother computer.
I tried installing vnc but this just ports a new desktop and masically is a terminal which does not give me any control over the display.

Anyone know how to go about solving this problem?

Thank you
 
Old 01-05-2011, 02:58 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,032

Rep: Reputation: 174Reputation: 174
VNC doesn't have to give you a new session, you can use it to share the current session.
On the machine where GNOME is running, enable Remote Desktop Sharing. There's a desktop of how to do that at
http://www.debianadmin.com/remote-de...in-ubuntu.html
the page talks about Ubuntu but what it's describing is actually a feature of GNOME not Ubuntu.


If you've logged in to the remote machine with ssh and try to run VLC then by default it will look for an X server running on your machine not the remote one. You can fix this by finding the values of $DISPLAY and $XAUTHORITY environment variables in the GNOME session and then set them in your ssh session like this
Code:
$ export DISPLAY=whatever
$ export XAUTHORITY=whatever
Then if you run vlc it should open on the remote machine's display.
That assumes that you are running as the same user in both the GNOME and ssh sessions, otherwise you won't have permission to read the file that $XAUTHORITY refers to.
 
Old 01-05-2011, 03:19 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
I think you would need to do the ^ above plus run cvlc instead of vlc.
 
Old 01-06-2011, 07:33 AM   #4
taara
LQ Newbie
 
Registered: Mar 2009
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 2
Thank a lot, it worked perfectly.
Though, I was kinda stupid enough not to look hard enough in my GUI for remote desktop so I installed X11vnc and used that, it wasnt the easiest to do, because the latest debian release is missing the requierd libraries in its repos, so I had to use an ubuntu package, I donīt recommend this path, took me about 5 hours to find the libraries needed.

About the env variables. For other people who might have the same issue and want to execute gui programs through ssh.

1. log into the original machine that has the X configured (call it the server)
enter the command
Code:
env
look for DISPLAY and XAUTHORITY variables.
2. Enter the same variables (like said before as the same user) to your bash (putty for me)
Code:
$ export DISPLAY=whatever
$ export XAUTHORITY=whatever
Thats it, it works perfectly for me. Thanks a lot arizonagroovejet much appreciated.
 
Old 01-06-2011, 09:19 AM   #5
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,214

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
related:
http://www.linuxquestions.org/questi...4/#post2400451
 
Old 02-26-2011, 05:03 PM   #6
zokama
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
If you happen to have an Android device, I just developed a remote control (Yes I know, another one..) that does just that! It connects to your computer with SSH, lets you browse your files and play them. It's exactly the same than what you want to do, except that all the configuration part (the export, start vlc...) is handled directly by the application.

Anyway, if you're interested, the name is SSHmote and you can find it on the Android market or directly from my website where you'll find some more details: www.zokama.com/sshmote.

Hope that helps.

z.
 
Old 02-27-2011, 05:03 AM   #7
taara
LQ Newbie
 
Registered: Mar 2009
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by zokama View Post
If you happen to have an Android device, I just developed a remote control (Yes I know, another one..) that does just that! It connects to your computer with SSH, lets you browse your files and play them. It's exactly the same than what you want to do, except that all the configuration part (the export, start vlc...) is handled directly by the application.

Anyway, if you're interested, the name is SSHmote and you can find it on the Android market or directly from my website where you'll find some more details: www.zokama.com/sshmote.

Hope that helps.

z.
Thx for the tip, I will try it out.
 
Old 02-27-2011, 07:30 AM   #8
zokama
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
When you do so, please let me know what you think about it. To be honest, you'll be more of a beta tester... So any comment/critic is welcome.
 
  


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
Cross-platform remote control / remote desktop software trafikpolisen Linux - Software 5 01-24-2010 01:27 AM
VLC control via remote control? MasterC Linux - Software 1 09-03-2006 08:59 PM
putty + control-h knoxville217 Linux - Newbie 1 03-22-2006 08:20 AM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 09:47 AM
video projector's remote control & linux laptop gour Linux - Laptop and Netbook 0 10-05-2005 10:38 AM


All times are GMT -5. The time now is 08:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration