hi, guys, I can't open emacs as a root. When I tried, I got the following message, linux:/home/shin0135/03fall/cs5551_uid/pro1 # emacs memo3.c & [1] 2925 linux:/home/shin0135/03fall/cs5551_uid/pro1 # Xlib: connection to ":0.0" refused by server Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison) 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. wha can I do to fix this ..? Thanks, _________________________________________________________________ Try MSN Messenger 6.0 with integrated webcam functionality! http://www.msnmessenger-download.com/tracking/reach_webcam
"Chun Ki Shin"
I can't open emacs as a root. When I tried, I got the following message,
linux:/home/shin0135/03fall/cs5551_uid/pro1 # emacs memo3.c & [1] 2925 linux:/home/shin0135/03fall/cs5551_uid/pro1 # Xlib: connection to ":0.0" refused by server Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison) 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.
wha can I do to fix this ..?
This mail clearly is off topic here, as it has *nothing* to do with programming. Please ask on suse-linux instead. The answer is, that you're trying to run the program as a user (probably root) that didn't start X. By default only the user that logged in via xdm/kdm/gdm has access to the display. Either use sux or google for Xauth. Philipp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 13 Sep 2003 13:47:42 -0400 "Chun Ki Shin"wrote: > hi, guys, > > I can't open emacs as a root. > When I tried, I got the following message, > > linux:/home/shin0135/03fall/cs5551_uid/pro1 # emacs memo3.c & > [1] 2925 > linux:/home/shin0135/03fall/cs5551_uid/pro1 # Xlib: connection to > ":0.0" refused by server > Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison) > 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. > > wha can I do to fix this ..? As root:export DISPLAY= :0.0 - From anmother window as a user: foo@ :~> xhost + being added to access control list - -- Jerry Feldman Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/ZGF0+wA+1cUGHqkRAjuHAKCDjUhXHMdjoFZvq1M5xFkstkDOXACdHuDE 2mpx7bzpq8/EmzQfmWOo2AU= =4Hrt -----END PGP SIGNATURE-----
participants (3)
-
Chun Ki Shin
-
Jerry Feldman
-
Philipp Thomas