Zenity pop up on remote desktop
Smoot Carl-Mitchell
smoot at tic.com
Thu Mar 12 17:01:49 UTC 2009
On Thu, 2009-03-12 at 12:18 -0400, Brian McKee wrote:
> > You need to turn on X11 forwarding. It is off by default. You need to
> > turn it on on both the client and server. Client config file
> > is /etc/ssh/ssh_config and the server config file
> > is /etc/ssh/sshd_config.
>
> Am I misunderstanding where you are going with this hint?
> I don't want to run it locally, I don't want to display it locally.
> The ssh session could be started on something without X at all.
> I want the X11 server on the remote end to display something on the
> currently running X session on the remote end.
> I don't want anything on my end.
I misunderstood you. Your problem is a little more difficult, since the
local X display is probably owned by another login process. Here is one
way of handling the situation. As the display owner run:
xhost + at localhost
This allows anyone on the local machine to gain access to the X display.
This does pose some security risks. Then when you login using SSH, you
can run:
export DISPLAY=:0.0
Now you should be able to access the local display. If you are remotely
logged in as the same user, you should only have to export the correct X
display. The xhost command appears to be unnecessary, since the
same .Xauthorty file is used.
The other method is to export the Xcookie database for the use owning
the display to the user running the remote command. I will leave it as
an exercise how you would export the cookies to the other user.
--
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005
More information about the ubuntu-users
mailing list