Install Wireshark under Mac
/applications/wireshark.app/contents/macos/wireshark
root# Export display=:0.0
System: OS X 10.9 Maverickswireshark installation package: Wireshark 1.10.2 Intel 64_0.dmg First install X11 (i.e. Xquartz); install wireshark.dmg; Error:
The Domain/default pair of (kcfpreferencesanyapplication, appleaquacolorvariant) does not exist
2013-10-28 23:04:03.650 defaults[4205:507]
The Domain/default pair of (kcfpreferencesanyapplication, applehighlightcolor) does not exist
(process:4187): gtk-warning * *: Locale not supported by C library.
Using the fallback ' C ' locale.
(wireshark-bin:4187): gtk-warning * *: Cannot open display:
(Note the last hint above) switch to the root account, execute the following command:
root# Export display=:0.0
root# Xhost +
root# Xhost +localhost
root# xhost + localhost
root# hostname
Shuiyouren.local
root# Xhost + shuiyouren.local
root# Export Xauthority=/users/[shuiyouren (your user home directory)]/. Xauthority
Start the X11 program, and then run Wireshark as the root account:
root#/applications/wireshark.app/contents/macos/wireshark
This will run Wireshark, and if it fails, exit rerun.
Related error message in this article: (wireshark-bin:1336): gtk-warning *: Cannot open Display:: 0.0 Add the above actions to the profile file for easy operation later.Note: Be sure to run X11 first and then run wireshark! from the command line Recommendation: chmod g+rw/dev/bpf* (This can be run as a normal user, as to whether you need the configuration of the relevant parameters to re-think)Other methods on the Internet try not to, the reason is unknown, mainly still understand not deep O (∩_∩) o ha! Reference Link: http://stackoverflow.com/questions/13697397/error-when-starting-wireshark-in-ubuntu;https:// bbs.archlinux.org/viewtopic.php?id=66405;
Install Wireshark under Mac, double-click the Flash back