Skip to content

Instantly share code, notes, and snippets.

@Chapoly1305
Forked from syneart/build_wireshark.sh
Created October 8, 2024 00:50
Show Gist options
  • Save Chapoly1305/b15f8ffd38b792844e8140159fcd6c9d to your computer and use it in GitHub Desktop.
Save Chapoly1305/b15f8ffd38b792844e8140159fcd6c9d to your computer and use it in GitHub Desktop.

Revisions

  1. @syneart syneart revised this gist Jul 3, 2024. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    ln -fs /usr/share/zoneinfo/$(wget -qO - http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
    2 changes: 1 addition & 1 deletion build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    ln -fs /usr/share/zoneinfo/$(wget -qO - http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
  2. @syneart syneart revised this gist Jan 29, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -79,6 +79,9 @@ sudo apt-get install -y libpcre2-dev
    # HTTP/2 protocol (Ubuntu >= 16.04)
    sudo apt-get install -y libnghttp2-dev

    # HTTP/3 protocol (Ubuntu >= 22.04)
    sudo apt-get install -y libnghttp3-dev

    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

  3. @syneart syneart revised this gist Jan 29, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ sudo apt-get install -y build-essential git cmake
    # CMake3
    sudo apt-get install -y cmake3

    # CMake 3.13 or higher is required for now Wireshark now
    # CMake 3.13 or higher is required for Wireshark now
    dpkg --compare-versions `cmake --version | head -1 | cut -f3 -d" "` lt 3.13 && {
    sudo apt install -y software-properties-common
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
  4. @syneart syneart revised this gist Jan 29, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -28,8 +28,8 @@ sudo apt-get install -y build-essential git cmake
    # CMake3
    sudo apt-get install -y cmake3

    # CMake 3.13 or higher is required for Wireshark
    [ `cmake --version | head -1 | cut -f3 -d" " | cut -f1 -d"."` -le 3 ] && [ `cmake --version | head -1 | cut -f3 -d" " | cut -f2 -d"."` -le 13 ] && {
    # CMake 3.13 or higher is required for now Wireshark now
    dpkg --compare-versions `cmake --version | head -1 | cut -f3 -d" "` lt 3.13 && {
    sudo apt install -y software-properties-common
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
    sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
  5. @syneart syneart revised this gist Jan 29, 2024. 1 changed file with 15 additions and 5 deletions.
    20 changes: 15 additions & 5 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -40,12 +40,22 @@ sudo apt-get install -y cmake3
    sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # if Ubuntu version < 22.04, use qt6-backports
    # check qt6 backports, if need
    apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || {
    sudo apt install -y software-properties-common
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    [ -e /etc/debian_version ] && {
    # Debian bullseye-backports
    # https://packages.debian.org/bullseye-backports/
    echo "deb http://deb.debian.org/debian bullseye-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list
    sudo apt-get update
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-5compat-dev -t bullseye-backports
    } || {
    # Ubuntu qt6-backports
    # https://launchpad.net/~okirby/+archive/ubuntu/qt6-testing
    sudo apt install -y software-properties-common
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    }
    }

    # PCAP
  6. @syneart syneart revised this gist Jan 29, 2024. 1 changed file with 18 additions and 21 deletions.
    39 changes: 18 additions & 21 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,16 @@
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################

    # | THIS SCRIPT IS TESTED CORRECTLY ON |
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 18.04.1 | Commit:73c7fca | OK | 28 Jan 2024 |
    # | Ubuntu 22.04.2 | Commit:4e70ea3 | OK | 24 May 2023 |
    # | Ubuntu 22.04.1 | Commit:2fcc819 | OK | 06 Dec 2022 |
    # | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 |
    # | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 |
    # | 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 |
    # | THIS SCRIPT IS TESTED CORRECTLY ON |
    # |----------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |--------------------|----------------|------|-------------|
    # | Ubuntu 24.04 (Dev) | Commit:73c7fca | OK | 29 Jan 2024 |
    # | Ubuntu 22.04.2 LTS | Commit:73c7fca | OK | 29 Jan 2024 |
    # | Ubuntu 20.04.6 LTS | Commit:73c7fca | OK | 29 Jan 2024 |
    # | Ubuntu 18.04.6 LTS | Commit:73c7fca | OK | 28 Jan 2024 |
    # | Debian 12.4 | Commit:73c7fca | OK | 29 Jan 2024 |
    # | Debian 11.8 | Commit:73c7fca | OK | 29 Jan 2024 |

    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get update
    @@ -43,6 +40,14 @@ sudo apt-get install -y cmake3
    sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # if Ubuntu version < 22.04, use qt6-backports
    apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || {
    sudo apt install -y software-properties-common
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    }

    # PCAP
    sudo apt-get install -y libpcap-dev

    @@ -67,14 +72,6 @@ sudo apt-get install -y libnghttp2-dev
    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # if Ubuntu version < 22.04, use qt6-backports
    apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || {
    sudo apt install -y software-properties-common
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    }

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
  7. @syneart syneart revised this gist Jan 27, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -78,6 +78,7 @@ apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || {
    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    sed -i '15 a #include <stdint.h>' capture/capture_ifinfo.h
    mkdir build
    cd build
    cmake ../
  8. @syneart syneart revised this gist Jan 27, 2024. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -67,15 +67,20 @@ sudo apt-get install -y libnghttp2-dev
    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # if Ubuntu version < 22.04, use Qt5
    QT6_ENABLE=`apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || echo "-DUSE_qt6=OFF"`
    # if Ubuntu version < 22.04, use qt6-backports
    apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || {
    sudo apt install -y software-properties-common
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    }

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    mkdir build
    cd build
    cmake ${QT6_ENABLE} ../
    cmake ../
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
  9. @syneart syneart revised this gist Jan 27, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,6 @@ sudo apt-get install -y cmake3

    # CMake 3.13 or higher is required for Wireshark
    [ `cmake --version | head -1 | cut -f3 -d" " | cut -f1 -d"."` -le 3 ] && [ `cmake --version | head -1 | cut -f3 -d" " | cut -f2 -d"."` -le 13 ] && {
    # https://robots.uc3m.es/installation-guides/install-cmake.html
    sudo apt install -y software-properties-common
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
    sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
  10. @syneart syneart revised this gist Jan 27, 2024. 2 changed files with 15 additions and 86 deletions.
    17 changes: 15 additions & 2 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 18.04.1 | Commit:73c7fca | OK | 28 Jan 2024 |
    # | Ubuntu 22.04.2 | Commit:4e70ea3 | OK | 24 May 2023 |
    # | Ubuntu 22.04.1 | Commit:2fcc819 | OK | 06 Dec 2022 |
    # | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 |
    @@ -27,9 +28,18 @@ sudo apt-get install -y tzdata
    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake

    # CMAKE3
    # CMake3
    sudo apt-get install -y cmake3

    # CMake 3.13 or higher is required for Wireshark
    [ `cmake --version | head -1 | cut -f3 -d" " | cut -f1 -d"."` -le 3 ] && [ `cmake --version | head -1 | cut -f3 -d" " | cut -f2 -d"."` -le 13 ] && {
    # https://robots.uc3m.es/installation-guides/install-cmake.html
    sudo apt install -y software-properties-common
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
    sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
    sudo apt install -y cmake
    }

    # GUI
    sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev
    @@ -58,12 +68,15 @@ sudo apt-get install -y libnghttp2-dev
    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # if Ubuntu version < 22.04, use Qt5
    QT6_ENABLE=`apt-cache search qt6-multimedia-dev | grep qt6 >/dev/null || echo "-DUSE_qt6=OFF"`

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    mkdir build
    cd build
    cmake ../
    cmake ${QT6_ENABLE} ../
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    84 changes: 0 additions & 84 deletions build_wireshark_ubuntu18_qt6.sh
    Original file line number Diff line number Diff line change
    @@ -1,84 +0,0 @@
    #!/bin/sh
    # This shell script is made by SyneArt <[email protected]>
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################

    # | THIS SCRIPT IS TESTED CORRECTLY ON |
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 18.04.1 | Commit:73c7fca | ? | 28 Jan 2024 |

    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake

    # CMAKE3
    #sudo apt-get install -y cmake3

    # CMAKE3 (On Ubuntu 18.04)
    # https://robots.uc3m.es/installation-guides/install-cmake.html
    sudo apt install software-properties-common -y
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
    sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
    sudo apt install -y cmake

    # gcc-9 g++-9 (On Ubuntu 18.04)
    sudo apt install software-properties-common -y
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
    sudo apt install -y gcc-9 g++-9
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9

    # Qt6
    sudo apt install software-properties-common -y
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # GUI
    #sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    #sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # PCAP
    sudo apt-get install -y libpcap-dev

    # Dev file (On Ubuntu 20.04)
    sudo apt-get install -y libc-ares-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

    # PCRE2 (On Ubuntu 18.04)
    sudo apt-get install -y libpcre2-dev

    # HTTP/2 protocol (Ubuntu >= 16.04)
    sudo apt-get install -y libnghttp2-dev

    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    sed -i '15 a #include <stdint.h>' capture/capture_ifinfo.h
    mkdir build
    cd build
    cmake ../
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
    }
  11. @syneart syneart revised this gist Jan 27, 2024. 1 changed file with 84 additions and 0 deletions.
    84 changes: 84 additions & 0 deletions build_wireshark_ubuntu18_qt6.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,84 @@
    #!/bin/sh
    # This shell script is made by SyneArt <[email protected]>
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################

    # | THIS SCRIPT IS TESTED CORRECTLY ON |
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 18.04.1 | Commit:73c7fca | ? | 28 Jan 2024 |

    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake

    # CMAKE3
    #sudo apt-get install -y cmake3

    # CMAKE3 (On Ubuntu 18.04)
    # https://robots.uc3m.es/installation-guides/install-cmake.html
    sudo apt install software-properties-common -y
    wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
    sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
    sudo apt install -y cmake

    # gcc-9 g++-9 (On Ubuntu 18.04)
    sudo apt install software-properties-common -y
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
    sudo apt install -y gcc-9 g++-9
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9

    # Qt6
    sudo apt install software-properties-common -y
    sudo add-apt-repository ppa:okirby/qt6-backports -y
    sudo apt install -y libgl1-mesa-dev
    sudo apt install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # GUI
    #sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    #sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # PCAP
    sudo apt-get install -y libpcap-dev

    # Dev file (On Ubuntu 20.04)
    sudo apt-get install -y libc-ares-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

    # PCRE2 (On Ubuntu 18.04)
    sudo apt-get install -y libpcre2-dev

    # HTTP/2 protocol (Ubuntu >= 16.04)
    sudo apt-get install -y libnghttp2-dev

    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    sed -i '15 a #include <stdint.h>' capture/capture_ifinfo.h
    mkdir build
    cd build
    cmake ../
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
    }
  12. @syneart syneart revised this gist May 24, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 22.04.2 | Commit:4e70ea3 | OK | 24 May 2023 |
    # | Ubuntu 22.04.1 | Commit:2fcc819 | OK | 06 Dec 2022 |
    # | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 |
    # | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 |
    @@ -54,6 +55,9 @@ sudo apt-get install -y libpcre2-dev
    # HTTP/2 protocol (Ubuntu >= 16.04)
    sudo apt-get install -y libnghttp2-dev

    # SpeexDSP
    sudo apt-get install -y libspeexdsp-dev

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
  13. @syneart syneart revised this gist Dec 6, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 22.04.1 | Commit:2fcc819 | OK | 06 Dec 2022 |
    # | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 |
    # | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 |
    # | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 |
  14. @syneart syneart revised this gist Dec 6, 2022. 2 changed files with 8 additions and 5 deletions.
    3 changes: 2 additions & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@
    # | Debian 9.6 | Commit:8beab04 | OK | 20 Nov 2018 |

    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get -y update
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    @@ -30,6 +30,7 @@ sudo apt-get install -y cmake3

    # GUI
    sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    sudo apt-get install -y qt6-base-dev qt6-multimedia-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libqt6core5compat6-dev

    # PCAP
    sudo apt-get install -y libpcap-dev
    10 changes: 6 additions & 4 deletions build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -14,10 +14,12 @@
    # | Ubuntu 14.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Debian 9.6 | Commit:a679ae6 | 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
    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get update

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake
  15. @syneart syneart revised this gist Dec 6, 2022. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -15,10 +15,12 @@
    # | 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
    # 1. KEEP UBUNTU OR DEBIAN 's apt-cache UP TO DATE
    sudo apt-get -y update
    sudo apt-get -y upgrade
    sudo apt-get -y autoremove

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/$(curl http://ip-api.com/line?fields=timezone) /etc/localtime
    sudo apt-get install -y tzdata

    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake
  16. @syneart syneart revised this gist Feb 19, 2022. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -47,6 +47,9 @@ sudo apt-get install -y flex bison
    # PCRE2 (On Ubuntu 18.04)
    sudo apt-get install -y libpcre2-dev

    # HTTP/2 protocol (Ubuntu >= 16.04)
    sudo apt-get install -y libnghttp2-dev

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
  17. @syneart syneart revised this gist Feb 7, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 18.04.1 | Commit:e03a590 | OK | 07 Feb 2021 |
    # | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 |
    # | Ubuntu 18.04.1 | Commit:8beab04 | OK | 20 Nov 2018 |
    # | Ubuntu 16.04.5 | Commit:8beab04 | OK | 20 Nov 2018 |
    @@ -43,6 +44,9 @@ sudo apt-get install -y libglib2.0-dev
    # LEX & YACC
    sudo apt-get install -y flex bison

    # PCRE2 (On Ubuntu 18.04)
    sudo apt-get install -y libpcre2-dev

    # 3. BUILD THE WIRESHARK
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
  18. @syneart syneart revised this gist Nov 10, 2020. 2 changed files with 5 additions and 0 deletions.
    1 change: 1 addition & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/bin/sh
    # This shell script is made by SyneArt <[email protected]>
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################
    4 changes: 4 additions & 0 deletions build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #!/bin/sh
    # This shell script is made by SyneArt <[email protected]>
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################
    @@ -30,6 +31,9 @@ sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultime
    # PCAP
    sudo apt-get install -y libpcap-dev

    # Dev file (On Ubuntu 20.04)
    sudo apt-get install -y libc-ares-dev

    # CRYPT
    sudo apt-get install -y libgcrypt20-dev

  19. @syneart syneart revised this gist Nov 7, 2020. 2 changed files with 9 additions and 9 deletions.
    8 changes: 4 additions & 4 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -43,12 +43,12 @@ sudo apt-get install -y libglib2.0-dev
    sudo apt-get install -y flex bison

    # 3. BUILD THE WIRESHARK
    sudo git clone https://github.com/wireshark/wireshark ~/wireshark
    git clone https://github.com/wireshark/wireshark ~/wireshark
    cd ~/wireshark
    sudo mkdir build
    mkdir build
    cd build
    sudo cmake ../
    sudo make -j`nproc` && {
    cmake ../
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
    10 changes: 5 additions & 5 deletions build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -40,13 +40,13 @@ sudo apt-get install -y libglib2.0-dev
    sudo apt-get install -y flex bison

    # 3. BUILD THE WIRESHARK
    sudo git clone https://github.com/wireshark/wireshark ~/wireshark_f1ap_r15_2_1
    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
    git checkout a679ae6 # F1AP R15.2.1
    mkdir build
    cd build
    sudo cmake -DDISABLE_WERROR=true ../ # g++
    sudo make -j`nproc` && {
    cmake -DDISABLE_WERROR=true ../ # g++
    make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
  20. @syneart syneart revised this gist Nov 7, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 20.04.1 | Commit:a679ae6 | OK | 05 Nov 2020 |
    # | Ubuntu 18.04.1 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Ubuntu 16.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Ubuntu 14.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 |
    @@ -44,7 +45,7 @@ cd ~/wireshark_f1ap_r15_2_1
    sudo git checkout a679ae6 # F1AP R15.2.1
    sudo mkdir build
    cd build
    sudo cmake ../
    sudo cmake -DDISABLE_WERROR=true ../ # g++
    sudo make -j`nproc` && {
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
  21. @syneart syneart revised this gist Nov 7, 2020. 2 changed files with 8 additions and 4 deletions.
    4 changes: 4 additions & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    # |------------------------------------------------------|
    # | OS | Wireshark | Test | Last test |
    # |----------------|----------------|------|-------------|
    # | Ubuntu 20.04.1 | Commit:a3b2afa | OK | 05 Nov 2020 |
    # | 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 |
    @@ -29,6 +30,9 @@ sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultime
    # PCAP
    sudo apt-get install -y libpcap-dev

    # Dev file (On Ubuntu 20.04)
    sudo apt-get install -y libc-ares-dev

    # CRYPT
    sudo apt-get install -y libgcrypt20-dev

    8 changes: 4 additions & 4 deletions build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -7,10 +7,10 @@
    # |------------------------------------------------------|
    # | 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 |
    # | Ubuntu 18.04.1 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Ubuntu 16.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Ubuntu 14.04.5 | Commit:a679ae6 | OK | 20 Nov 2018 |
    # | Debian 9.6 | Commit:a679ae6 | OK | 20 Nov 2018 |

    # 1. KEEP UBUNTU OR DEBIAN UP TO DATE
    sudo apt-get -y update
  22. @syneart syneart revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -41,7 +41,7 @@ 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
    git checkout 2ba45c2 # F1AP R15.2.1
    sudo git checkout a679ae6 # F1AP R15.2.1
    sudo mkdir build
    cd build
    sudo cmake ../
  23. @syneart syneart revised this gist May 22, 2019. 1 changed file with 52 additions and 0 deletions.
    52 changes: 52 additions & 0 deletions build_wireshark_F1AP_R15_2_1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    #!/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
    git checkout 2ba45c2 # 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\""
    }
  24. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,15 @@
    # 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
    @@ -11,7 +20,7 @@ sudo apt-get -y autoremove
    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential git cmake

    # CMake3
    # CMAKE3
    sudo apt-get install -y cmake3

    # GUI
  25. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,10 @@ 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 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
  26. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ sudo apt-get -y upgrade
    sudo apt-get -y autoremove

    # 2. INSTALL THE DEPENDENCIES
    sudo apt-get install -y build-essential cmake3 git
    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
  27. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ 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\"'
    echo "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
    }
  28. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/bash
    #!/bin/sh
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################
    @@ -33,7 +33,7 @@ sudo mkdir build
    cd build
    sudo cmake ../
    sudo make -j`nproc` && {
    echo -e "\nBuild Success!"
    echo "You can execute the Wireshark by command \"sudo ./wireshark\""
    echo "at \"`pwd`/run\""
    echo '\nBuild Success!'
    echo 'You can execute the Wireshark by command \"sudo ./wireshark\"'
    echo 'at \"`pwd`/run\"'
    }
  29. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #!/bin/bash
    #######################################
    # BUILD WIRESHARK ON UBUNTU OR DEBIAN #
    #######################################
  30. @syneart syneart revised this gist Nov 20, 2018. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions build_wireshark.sh
    Original file line number Diff line number Diff line change
    @@ -3,27 +3,27 @@
    #######################################

    # 1. KEEP UBUNTU OR DEBIAN UP TO DATE
    sudo apt -y update
    sudo apt -y upgrade
    sudo apt -y autoremove
    sudo apt-get -y update
    sudo apt-get -y upgrade
    sudo apt-get -y autoremove

    # 2. INSTALL THE DEPENDENCIES
    sudo apt install -y build-essential cmake3 git
    sudo apt-get install -y build-essential cmake3 git

    # GUI
    sudo apt install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev
    sudo apt-get install -y qttools5-dev qttools5-dev-tools libqt5svg5-dev qtmultimedia5-dev

    # PCAP
    sudo apt install -y libpcap-dev
    sudo apt-get install -y libpcap-dev

    # CRYPT
    sudo apt install -y libgcrypt20-dev
    sudo apt-get install -y libgcrypt20-dev

    # GLIB2
    sudo apt install -y libglib2.0-dev
    sudo apt-get install -y libglib2.0-dev

    # LEX & YACC
    sudo apt install -y flex bison
    sudo apt-get install -y flex bison

    # 3. BUILD THE WIRESHARK
    sudo git clone https://github.com/wireshark/wireshark ~/wireshark