hello, 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. What should I to fix this problem? Thanks, CK, _________________________________________________________________ Say goodbye to busy signals and slow downloads with a high-speed Internet connection! Prices start at less than $1 a day average. https://broadband.msn.com (Prices may vary by service area.)
* Chun Ki Shin
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.
What should I to fix this problem?
Try sux (man sux, info sux). -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
--- 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/
participants (3)
-
Chun Ki Shin
-
Patrick Shanahan
-
Thomas Adam