[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems with running remote X programs



On Fri, Jun 14, 2002 at 01:21:59PM +0100, Matthew Yee-King wrote:
> I'm running gdm, windowmaker, woody and xfree 4.2. i need to run
> software on a remote mahcine that outputs to my local X server. On the
> remote machine, i export DISPLAY="mylocalIP:0" then on my local
> machine, i xhost <memote machineIP> . but it doesn't work - on the
> remote machine i get the error  
> 
> Error: Can't open display: <mylocalIP>:0
> 
> is the xserver really locked down by default on debian or something?

Yes. Remove '-nolisten tcp' from whatever starts your X server if you
want to do this; it might be /etc/X11/xinit/xserverrc,
/etc/X11/gdm/gdm.conf, or various others.

Alternatively, use ssh X forwarding.

> if i have a root terminal in an xsession started by a normal user, i
> can't use x programs either...

'export XAUTHORITY=$HOME/.Xauthority', then make sure to use plain 'su'
or 'sudo' instead of 'su -'. There are other solutions involving xauth,
too.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: