LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-04-2004, 11:28 PM   #1
true_atlantis
Member
 
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.

root@atlantis_mobile:/home/atlantis#
 
Old 05-04-2004, 11:48 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
This problem was addressed in another BBS (justlinux.com) in the Software category. Go to www.justlinux.com/forum, 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, 12:05 AM   #3
true_atlantis
Member
 
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

Quote:
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
 
  


Reply


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 04:26 PM
how to open /proc file in RW mode in user mode? cranium2004 Programming 3 03-06-2005 03:03 AM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 11:16 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
Emacs is there but wont run! aromes Linux - Software 1 09-29-2003 03:21 PM


All times are GMT -5. The time now is 11:58 PM.

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