#!/bin/sh ####################################### # BUILD WIRESHARK ON UBUNTU OR DEBIAN # ####################################### # 1. KEEP UBUNTU OR DEBIAN UP TO DATE sudo apt-get -y update sudo apt-get -y upgrade sudo apt-get -y autoremove # 2. INSTALL THE DEPENDENCIES sudo apt-get install -y build-essential git cmake cmake3 # GUI sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev # PCAP sudo apt-get install -y libpcap-dev # CRYPT sudo apt-get install -y libgcrypt20-dev # GLIB2 sudo apt-get install -y libglib2.0-dev # LEX & YACC sudo apt-get install -y flex bison # 3. BUILD THE WIRESHARK sudo git clone https://github.com/wireshark/wireshark ~/wireshark cd ~/wireshark sudo mkdir build cd build sudo cmake ../ sudo make -j`nproc` && { echo "\nBuild Success!" echo "You can execute the Wireshark by command \"sudo ./wireshark\"" echo "at \"`pwd`/run\"" }