display question

Ben Eisenbraun bene-Gk2boCrsRs1AfugRpC6u6w at public.gmane.org
Wed May 4 12:08:47 EDT 2011


On Wed, May 04, 2011 at 11:48:32AM -0400, dan moylan wrote:
> 
> when some user owns the gnome desktop, another user
> opereating in a terminal window seems unable to open
> an application that needs the display.  how does one
> allow this?

The easiest way to do this is to become the "other user" by running:

ssh -X otheruser at localhost

You can check that X forwarding is allowed by running:

echo $DISPLAY

As the otheruser in that terminal.  If DISPLAY is unset, then you'll need
to edit the sshd_config file, set "X11Forwarding yes" and restart sshd.

Then you can run your X application in the terminal, and it will be
forwarded into your current X session.

There are other ways, but that's probably simplest and more secure than
some other possibilities.

-ben

--
the harder i work, the luckier i get.                   <samuel goldwyn>




More information about the Discuss mailing list