I know -X -Y options in ssh for X11 forwarding.But these options open the gui apps on my pc.But I want to open a gui application "exactly" on target machine. So please help me with this. I tried this but ended up with the following error.
No protocol specified
No protocol specified
No protocol specified
Error: cannot open display: :0
You need to run xhost to allow connections from that user. The following will allow anybody to open windows on that machine:
Note that this needs to be run in a terminal that is running on the X server. See the xhost manpage for more information.
If you want to see the screen of the machine you're connecting to, use VNC. This will make everything you do appear as if you did it on the target machine's desktop.
sudo apt-get install x11vnc
and then startx11vnc
from the command line.If you want to start applications on an invisible screen that you can connect to and display from any location, use
xpra
. You can even show the "virtual screen" on one machine, then disconnect, and connect from another machine (over SSH) and show the same screen, all without terminating the session.I assume that the x-server is already running on the machine you connect to. Before you execute the command on the remote machine run the following command:
export DISPLAY=:0
Now you can start your x-application, should pop up on the display 0.
br