--- Patrick Shanahan
* Chun Ki Shin
[11-20-03 20:44]: As a newbie, I faced with a kind of simple problem...
In a su mode, i want to open some file with emacs so I typed 'emacs ...' as usual. Then, I got the following message,
emacs: Cannot connect to X server :0.0 Check the DISPLAY environment variable or use '-d'. Also use the 'xhost' program to verify that is is set to permit connections form your machine.
There are a number of ways you can do this... 1. xhost + 2. export DISPLAY=":0.0" (for root user) 3. use Xnest :) 4. xauth -merge ~user /home/non_root_user/.Xauthority where ~user is the user who has $DISPLAY set currently.
What should I to fix this problem?
Try sux (man sux, info sux).
gksu/gksudo also do a good job. HTH, -- Thomas Adam __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/