Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] wireshark without x server

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Mon, 05 Mar 2007 08:22:11 -0800
Luca Rossi wrote:
> Hi all,
> is possible to use wireshark without a server X (in
> command line only)
> If yes what paramera i must settings?
> Now when I try to use a wireshark i receved thi error:
> (wireshark:21755): Gtk-WARNING **: cannot open
> display:

Try TShark: http://www.wireshark.org/docs/man-pages/tshark.html

If you just want to capture traffic, try dumpcap:
http://www.wireshark.org/docs/man-pages/dumpcap.html

Tcpdump should work as well.