\begin{bart bunting}
> Angus Lees writes:
>  > the default is to only allow people logged in on the (text) console
> 
> ok this is my problem I was trying to launch X from within an emacs
> shell buffer.  It seems to not work from there, but perfectly from the
> console.
> 
> I'd like to know how to get it to run from the emacs shell.

change the second line of /etc/X11/Xserver to either:

 Anybody  - anybody can run it - not very secure
 RootOnly - then su or something in an emacs shell


> Having managed to get the xserver running, I've hit my next problem.
> I can't launch X apps from another machine.  I've tried
> several things.
> 
> xhost + 
> which i beleive allows any host to connect to the server.  I
> know not very secure, but I am trying to get things working before i
> tighten things up.
> 
> I exported the display on the other machine as export DISPLAY=hostname:0
> 
> when trying to launch an app i get:
> 
> _X11TransSocketINETConnect: Can't connect: erno = 111

weird.. that sounds correct.

there isn't anything that would be blocking connections to port 6000?

just to check:

 on your machine:
 run X
 export DISPLAY=:0
 xhost +  (can't use -display option, see manpage)

 on other machine:
 xterm -display firstmachine:0


> I also tried enabling X11 forwarding in the ssh connection.  It didn't
> seem to export a display variable and didn't make any difference to
> the error message.

again, that should work.

from a shell that has a working $DISPLAY:
 ssh -X othermachine
 echo $DISPLAY  (will be othermachine:10 or similar)
 xterm

-- 
 - Gus


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to