-   Linux - Newbie (
-   -   SSH - Remote aplications in remote server (

Urien 04-02-2009 04:12 AM

SSH - Remote aplications in remote server

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 and Google always try to do X11 forwoading to see the applications in client (X client session).

Thank you very much! =)

acid_kewpie 04-02-2009 04:15 AM

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.

Urien 04-02-2009 04:25 AM


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"

Thank's. I'm newbie sorry!

acid_kewpie 04-02-2009 04:44 AM

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.

Vit77 04-02-2009 04:47 AM

Did you try this:

export DISPLAY=

Urien 04-02-2009 04:49 AM


Only I should do:
$ ssh
$ export DISPLAY=":0.0"

And that's all! Now I can do:
$ mplayer -fs file.avi
And I see the video in the server

Thank you! =D

Edit: Thank you Vit77, it seems it works too

jschiwal 04-02-2009 06:12 AM

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.


acid_kewpie 04-02-2009 06:20 AM

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...

Urien 04-03-2009 05:07 AM


Yes, my idea is to have a laptop with a projector in a lan party and, from my computer, put videos (with mplayer) or pictures (eog), etc.

Now, it works fine. Thank you!

acid_kewpie 04-03-2009 01:41 PM

I'm so proud to say I've never been anywhere near a LAN party.

chrism01 04-03-2009 07:02 PM

Me neither :)

Urien 04-04-2009 05:02 AM


I am staff and we are organizating a big one! We are from Elx (Valencia - Spain).

See you!

All times are GMT -5. The time now is 03:55 AM.