|
|
#1 |
|
Registered User
Join Date: Jun 2005
Posts: 1
|
Hi...
Running Ethereal (compiled from darwinports)... when I'm logged in as Admin, I can open up xterm in X11 and run it as 'sudo ethereal' and that's fine. However, I rarely use my Admin account, and it's a pain because I have no need to use Ethereal while I'm logged into my Admin account. Soo... in my normal account, in X11, I can't 'sudo' anything because I'm not in the sudoers file (which is as it should be). So I use 'login' to login as Admin, but when I then try to use 'sudo ethereal' it gives me this error: Gtk-WARNING **: cannot open display: I have found this thread http://forums.macosxhints.com/showth...9&page=3&pp=20 but it wasn't much help. The advice there was very confusing (I'm a Unix newbie.. ).Any help would be really appreciated! Many thanks, Matt. |
|
|
|
|
|
#2 | |||||||||||||||||||
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
|
If you' want to run 'sudo ethereal' from Terminal.app and you're using bash, write in your ~/.bash_profile file: Code:
if [[ -z $DISPLAY ]]; then export DISPLAY=:0.0 fi . |
|||||||||||||||||||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|