ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

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.