Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-05-2004, 12:28 AM   #1
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
running emacs in su mode wont open x window

in su, i try to run emacs, and i get this error... how can i get it tow ork?

root@atlantis_mobile:/home/atlantis# emacs test
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

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.

Old 05-05-2004, 12:48 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
This problem was addressed in another BBS ( in the Software category. Go to, click on the Search button at the top of the screen, and enter the search words 'connection refused'. At the bottom of the screen, there's a dropdown you can use to select the category Software to search. Then click on the Perform Search button. Scroll down to the thread that starts with 'Xlib: connection refused'.
Old 05-05-2004, 01:05 AM   #3
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
so the first part in the forum told me to do this

root@yourhost:~>cd /root/ (in case you weren't there)
root@yourhost:~>xauth -f /home/user/.Xauthority extract ./xcookie :0.0
(if the above command complains that :0.0 isn't found, try it again with :0 or 0:0, most likely :0.0 will work though)
root@yourhost~>xauth merge ./xcookie

and it dint work, it couldnt find :0.0 :0 0:0 any of those

but the xhost +localhost worked fine... how can i get that do run from the beginning, so i dont have to enter it every time??? im running slackware-current


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
running games with cedega in window mode? a3Rogue Linux - Games 1 07-22-2005 05:26 PM
how to open /proc file in RW mode in user mode? cranium2004 Programming 3 03-06-2005 04:03 AM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 12:16 PM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 08:31 AM
Emacs is there but wont run! aromes Linux - Software 1 09-29-2003 04:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration