root emacs problems
when I try to run emacs as root I get this error
Code:
any insight would be helpful. Thanks |
Rats I had a longer reply, but it is missing, my mistake, try the commands below
set DISPLAY=localhost:0.0 export DISPLAY setenv DISPLAY localhost:0.0 emacs Substitute localhost for your computer name if necessary. also emacs -d localhost:0.0 works generally /usr/X11R6/bin/xhost is the path |
j@localhost j]$ alias emacs
bash: alias: emacs: not found [j@localhost j]$ export DISPLAY=3lkj:0.0 [j@localhost j]$ alias emacs bash: alias: emacs: not found [j@localhost j]$ emacs _X11TransSocketINETConnect: Can't get address for 3lkj emacs: Cannot connect to X server 3lkj: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. [j@localhost j]$ export DISPLAY=localhost:0.0 [j@localhost j]$ emacs [j@localhost j]$ #works! [j@localhost j]$ |
All times are GMT -5. The time now is 03:42 PM. |