Skip to content

Instantly share code, notes, and snippets.

@cameronelliott
Forked from syneart/build_wireshark.sh
Last active January 4, 2020 05:22
Show Gist options
  • Save cameronelliott/e6102cd268677ed94d2688b9f6f93fa7 to your computer and use it in GitHub Desktop.
Save cameronelliott/e6102cd268677ed94d2688b9f6f93fa7 to your computer and use it in GitHub Desktop.
BUILD WIRESHARK ON UBUNTU OR DEBIAN
#!/bin/sh
#######################################
# BUILD WIRESHARK ON UBUNTU OR DEBIAN #
#######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------------------------|
# | OS | Wireshark | Test | Last test |
# |----------------|----------------|------|-------------|
# | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Ubuntu 16.04.5 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Ubuntu 14.04.5 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Debian 9.6 | Commit:8beab04 | OK | 20 Nov 2018 |
# 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
# C-ARES
sudo apt-get install -y libc-ares-dev
# CMAKE3
sudo apt-get install -y 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\""
}
#!/bin/sh
#######################################
# BUILD WIRESHARK ON UBUNTU OR DEBIAN #
#######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------------------------|
# | OS | Wireshark | Test | Last test |
# |----------------|----------------|------|-------------|
# | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Ubuntu 16.04.5 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Ubuntu 14.04.5 | Commit:8beab04 | OK | 20 Nov 2018 |
# | Debian 9.6 | Commit:8beab04 | OK | 20 Nov 2018 |
# 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
sudo apt-get install -y 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_f1ap_r15_2_1
cd ~/wireshark_f1ap_r15_2_1
sudo git checkout a679ae6 # F1AP R15.2.1
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\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment