On 05/05/2011 11:10 AM, dan moylan wrote: > ben wrote: >> 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@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. > moylan ~[500] ssh -X moylan@localhost > moylan@localhost's password: > Warning: No xauth data; using fake authentication data for X11 forwarding. > Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic i686) > > moylan ~[499] xbuffy& > moylan ~[500] Invalid MIT-MAGIC-COOKIE-1 keyInvalid > MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid > MIT-MAGIC-COOKIE-1 keyError: Can't open display: localhost:10.0 > > X11Forwarding was indeed set to yes. > DISPLAY was set to :0, but setting it to 10:0 didn't help > > matt wrote: >> Okay, if you don't trust your firewall then you can run: >> xhost localhost instead. > root ~[294] xhost localhost > localhost being added to access control list > moylan ~[500] xbuffy& > moylan ~[501] No protocol specified > Error: Can't open display: :0 > > trying as root xhost +moylan, and then xbuffy as moylan, i > got the magic cookie reply. > > oh, well -- xhost + does the job just fine. > I upgraded from 10.10 to 11.04. I have an Acer Aspire One and my ssh alias is: "alias ssh='/usr/bin/ssh -X'" [gaf@boslc01 ~]$ ssh 10.71.10.27 [email protected]'s password: Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic x86_64)
* Documentation: https://help.ubuntu.com/ 33 packages can be updated. 12 updates are security updates. Last login: Thu May 5 15:06:19 2011 from boslc01.local gaf@gaf-netbook:~$ xeyes ^C gaf@gaf-netbook:~$ echo $DISPLAY localhost:10.0 gaf@gaf-netbook:~$ -- Jerry Feldman <[email protected]> Boston Linux and Unix PGP key id: 537C5846 PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
_______________________________________________ Discuss mailing list [email protected] http://lists.blu.org/mailman/listinfo/discuss
