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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-05-2011, 05:42 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Rep:
|
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
|
|
|
|
01-05-2011, 01:58 PM
|
#2
|
|
Senior Member
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094
Rep: 
|
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.
|
|
|
|
01-05-2011, 02:19 PM
|
#3
|
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
I think you would need to do the ^ above plus run cvlc instead of vlc.
|
|
|
|
01-06-2011, 06:33 AM
|
#4
|
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Original Poster
Rep:
|
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 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.
|
|
|
|
01-06-2011, 08:19 AM
|
#5
|
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,335
|
|
|
|
|
02-26-2011, 04:03 PM
|
#6
|
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Rep:
|
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.
|
|
|
|
02-27-2011, 04:03 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2009
Posts: 23
Original Poster
Rep:
|
Quote:
Originally Posted by zokama
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.
|
|
|
|
02-27-2011, 06:30 AM
|
#8
|
|
LQ Newbie
Registered: Feb 2011
Posts: 5
Rep:
|
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.
|
|
|
|
All times are GMT -5. The time now is 05:02 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|