Linux - NewbieThis 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.
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.
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.
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
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.
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)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.