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'm new here and my english is not very good... so I will try to explain my problems!
I have two computers (both with Ubuntu). In one I have ssh-server and in the other ssh-client. I would like to execute applications from server and display it on server (X server session).
Do you understand me? Is it possible? All information I have found on LinuxQuuestions.org and Google always try to do X11 forwoading to see the applications in client (X client session).
that'll normally work by default if you're exporting your DISPLAY values automatically. alternatively just add -X to your ssh command to tunnel directly inside ssh.
Not a networking question. Moved to Linux - Newbie.
If I use "ssh IP" and type "firefox" it says "Error: no display specified"
If I use "ssh -X IP" it opens firefox in my computer (client). I would like to open it in server X session.
Then, I try things like "export DISPLAY=0.0" and (using "ssh IP") the result is "Error: cannot open display: 10.0"
OK, note that the machine on which an X app is *displayed* is the server, not the place you run it from. The model is basicaly the other way round. try "export DISPLAY=:0.0" noting the :. if you have permission problems then, run "xhost +localhost" as the owner of the remoteo X server.
That is an odd way of running most programs. You are launching the program remotely, but you need to be at the server to run it.
Usually, you would enter: ssh -X user@host
ssh will create a proxy for x server with a display of either :10.0 or :11.0 and then tunnel the X messages through the tunnel. A program running on the remote host will display to display :10.0, which results in the program being displayed locally.
If you are wanting to play a video on another computer, then this would be OK, but if you want to run any kind of graphical program, you would need to move to the remote computer to continue.
---
You used Firefox as an example, but this is a bad program to use as an example. The wrapper program will manipulate the display itself and you won't get what you expected unless you use the -no-remote option.
Well in this example, it's an avi file, so seems more logical. playing back on a laptop connected to their 60" plasma, a shop wall board display etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.