Go Back   The macosxhints Forums > OS X Help Requests > UNIX - X11



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-09-2005, 03:39 PM   #1
Sini
Registered User
 
Join Date: Nov 2005
Posts: 1
Unhappy

Hello,
I'm fairly new to Apple and trying to get some of the open source network management tools up and running within OS X. I have installed Open Darwin, X11, and the Apple Dev kit. When i try to launch an application such as ethereal for instance, it dumps and says the following:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

(ethereal:1964): Gtk-WARNING **: cannot open display:

I've added export DISPLAY=0.0 to my .profile but that doesn't seem to help.

Please Help
Sini is offline   Reply With Quote
Old 11-10-2005, 10:10 AM   #2
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Sini wrote:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Are you running X11 through 'sudo'? Anyhow, The usual fix is to delete the .Xauthority file in your home directory and re-create an empty file:

cd
rm .Xauthority
touch .Xauthority

Then:

1- Start X11.

2- Start ethereal from an xterm in X11 with:

sudo /sw/bin/ethereal (if installed with fink)


Quote:
wrote:
I've added export DISPLAY=0.0 to my .profile

Or you could write:

Code:
if [[ -z $DISPLAY ]]; then
  export DISPLAY=:0.0
fi
.

Last edited by sao; 11-10-2005 at 12:09 PM.
sao is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.