Re: Conecting with xhost
chainy <chainy@infonegocio.com> writes:
> This must be something really easy, but i can't find the solution.
>
> Each time i try to edit a file with emacs the xterm dumps this:
>
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> emacs: Cannot connect to X server :0.0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.
>
> Any ideas?
Are you trying to do this from another machine? If so, make sure
you're using 'ssh -X' to connect to the other machine. Are you trying
to edit a file as root? Probably the easiest fix is to set the
XAUTHORITY environment variable to point at the .Xauthority file in
your mortal user's home directory. But both of these questions have
been asked dozens of times in the past month or so; check the
debian-user archives at http://lists.debian.org/ for previous answers.
--
David Maze dmaze@debian.org http://people.debian.org/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
Reply to: