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



Reply
 
Thread Tools Rating: Thread Rating: 15 votes, 5.00 average. Display Modes
Old 05-11-2005, 08:07 AM   #21
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Wampiro-UHA wrote:
How do I start the Ethereal GUI?

Ethereal needs to be run as root. If you are not root, you will not see any devices. Start it from an xterm with 'sudo ethereal'.

.
sao is offline   Reply With Quote
Old 05-11-2005, 10:56 AM   #22
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Quote:
Originally Posted by sao
Ethereal needs to be run as root. If you are not root, you will not see any devices. Start it from an xterm with 'sudo ethereal'.

To that I will add, make sure you're running and using an xterm from X11.app when you do it. This won't work it you try to use Terminal.app.
yellow is offline   Reply With Quote
Old 05-11-2005, 01:18 PM   #23
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
.

Yes, if you want to start it from Terminal.app set the DISPLAY environment variable in your ~/.bash_profile if you're using bash or in your ~/.zlogin if you're using zsh:

Code:
if [[ -z $DISPLAY ]]; then
  export DISPLAY=:0.0
fi
and make sure X11 is running when you start ethereal.

.
sao is offline   Reply With Quote
Old 05-11-2005, 04:35 PM   #24
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
When I try to run Ethereal from the terminal, I get following error:
(ethereal:501): Gtk-WARNING **: cannot open display:

When I try from X11 I get the error:
bash: ethereal: command not found
Wampiro-UHA is offline   Reply With Quote
Old 05-11-2005, 04:39 PM   #25
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
When I run sudo ethereal from X11 I get:
sudo: ethereal: command not found
Wampiro-UHA is offline   Reply With Quote
Old 05-11-2005, 04:41 PM   #26
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
I think you are having a PATH problem.
Did you insert the ". /sw/bin/init.sh" line in your .profile or .bashrc?
Check if ethereal works if you use the full path: /sw/bin/ethereal
hayne is offline   Reply With Quote
Old 05-11-2005, 04:44 PM   #27
dmacks
All Star
 
Join Date: Dec 2004
Posts: 678
When I try to run Ethereal from the terminal, I get following error:
(ethereal:501): Gtk-WARNING **: cannot open display:


Someone already mentioned you gotta do it from an xterm or set your DISPLAY explicitly.

When I try from X11 I get the error:
bash: ethereal: command not found


There's a Fink FAQ entry entitled Q5.15: I get "command not found" errors when I run Fink or anything that I installed with Fink that sounds relevant.
dmacks is offline   Reply With Quote
Old 05-11-2005, 04:59 PM   #28
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
When I try to run ethereal with the complete PATH /sw/bin/ I get the error:
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

I have now run the command:
cp /private/etc/X11/xinit/xinitrc ~/.xinitrc
I guess this copy the xinitrc file to my root-directory. What should I do more with the new .xinitrc-file?
Wampiro-UHA is offline   Reply With Quote
Old 05-11-2005, 05:02 PM   #29
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
When I run /sw/bin/pathsetup.sh I get the message that Fink is already setup correctly.
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 12:19 PM   #30
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Wampiro-UHA wrote:
What should I do more with the new .xinitrc-file?

Please, read from Fink documentation, "4.3 The .xinitrc File":
http://fink.sourceforge.net/doc/x11/...ang=en#xinitrc
or
http://homepage.mac.com/sao1/fink/index.html#top15

.

Last edited by sao; 05-12-2005 at 12:21 PM.
sao is offline   Reply With Quote
Old 05-12-2005, 03:09 PM   #31
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
I think it worked adding . /sw/bin/init.sh to .xinitrc.
Now I can type just ethereal. But it still doesn't start, because of the error of the fonts.conf-file.
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 03:27 PM   #32
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
I've tried to type edit fonts.conf and then in fonts.conf I've added:

<dir>/System/Library/Fonts/</dir>
<dir>/Library/Fonts/</dir>
<dir>/Users/my-user-name/Library/Fonts/</dir>

But it doesn't work?
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 04:45 PM   #33
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Can you please copy and paste the exact output from the xterm when Ethereal fails?
yellow is offline   Reply With Quote
Old 05-12-2005, 04:51 PM   #34
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
I type sudo ethereal in X11 and get the following error after I've typed the password:

No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 04:56 PM   #35
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Where did you install X11 from?
yellow is offline   Reply With Quote
Old 05-12-2005, 04:57 PM   #36
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Quote:
Wampiro-UHA wrote:
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

Nobody knows what causes the problem, exactly, but running:

sudo fc-cache

should fix it.

.
sao is offline   Reply With Quote
Old 05-12-2005, 04:58 PM   #37
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
From the Mac OS X (Tiger) CD.
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 04:59 PM   #38
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Sao to the rescue! Again!
yellow is offline   Reply With Quote
Old 05-12-2005, 05:00 PM   #39
Wampiro-UHA
Triple-A Player
 
Join Date: Sep 2004
Posts: 182
IT WORKS!
What does sudo fc-cache do?
Wampiro-UHA is offline   Reply With Quote
Old 05-12-2005, 05:08 PM   #40
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
Quote:
Originally Posted by Wampiro-UHA
What does sudo fc-cache do?

Rephrasing your question:
What does the command xxxyyyzzz do?

Answer:
Read the man page on xxxyyyzzz:
man xxxyyyzzz
hayne is offline   Reply With Quote
Reply

Tags
ethereal


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 10:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, 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.