-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/18/11 12:24 PM, Ulrich C. Manns | msp-it wrote:
> I have installed wireshark.
> 
> I must run it with: sudo wireshark

(The version of wireshark I just installed (1.4.5-1) complains if you
run it under sudo or as root rather than as an ordinary user)

> 
> If i start is as root (sudo su - root) i get
> 
> (wireshark:98987): Gtk-WARNING **: cannot open display:
> 
> Did i miss any config file?
> 
> Regards,
> Ulrich
> 
> 
> 

It won't work because when you do "sudo su - root" you lose the DISPLAY
setting.  What worked for me in these circumstances was the following:

1)  Make sure X11 is running.
2)  Get the value of DISPLAY as a regular user, e.g. via "printenv DISPLAY"
3)  Do "sudo su - root"
4)  Set DISPLAY for root and run wireshark, e.g.

# env DISPLAY=/tmp/launch-1neKjj/org.x:0 /sw32/bin/wireshark

, putting in what you got for DISPLAY at step 2 above.
- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2sijYACgkQB8UpO3rKjQ/QSACeM/xXlGfYdZPdyZ6z1Wbo4kv/
zqMAnj0SG7mfqyAYjHYVDxYVaDfM1I2s
=Lzdd
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to