Link to home
Start Free TrialLog in
Avatar of komlaaa
komlaaa

asked on

emacs on feora core 2

I just intall fedora core 2 but anytime i am trying to open a file using emacs  =====> emacs myfile,
i am getting the the error message below. What could i do.
===================ERROR MESSAGE ===========================
crux:/afs/clarkson.edu/class/cs242/komlaaa/hw6/cd> emacs AbstractCd.java
Xlib: connection to "localhost:11.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
emacs: Cannot connect to X server localhost:11.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.
Avatar of jlevie
jlevie

Is the user you are when invoking emacs the same user that logged in? If that's not the case you'll see this error.
Hi,

crux:/afs/clarkson.edu/class/cs242/komlaaa/hw6/cd> xhost +; emacs -d `echo $DISPLAY` AbstractCd.java

Wesly
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial