LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   emacs editing software not worrking (https://www.linuxquestions.org/questions/linux-newbie-8/emacs-editing-software-not-worrking-676480/)

malibec2005 10-15-2008 07:49 AM

emacs editing software not worrking
 
Hi,

emacs was working perfectly. Suddenly when I typed "emacs" the following massage appeared:

Connection lost to X server `localhost:11.0'


Thanks

cyent 10-15-2008 02:57 PM

Emacs is working.

There is something odd about your X windows setup. Try run some other X windows program like xterm and you will see what I mean.

Have you used..
* ssh?
* su?
* virtual console?
* vnc

If so that may be your problem.

Ryanjon7 10-15-2008 03:44 PM

RE: emacs editing software not working
 
It seems your display variable is not set correctly. All locahost machines have it set to :0.0 by default. Yours is set to localhost:11.0. This is incorrect.

In a shell type; ( you do not need to be root )

echo $DISPLAY

This will show you what your display is currently set at.

You want to change it to :0.0, to do this type; ( you do not need to be root )

DISPLAY=:0.0

Now type emacs again in the shell and it should work.

In retrospect you can display all variables by typing;

env

Do not change any unless you know exactly what you are doing.

malibec2005 10-16-2008 03:33 AM

emacs not worrking
 
Hi,

I did exactly what you said but i have the following massage:
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.

Thanks

malibec2005 10-16-2008 05:49 AM

Hi,

I Opened Exceed for SSH (passive) before starting the emacs. it works.
but it was worrking before with out this step. can any body tell me why nwo i need to do this step?

Thanks


All times are GMT -5. The time now is 09:24 PM.