How to install Wireshark in Termux Android: Without root
I am an expert in Linux and noticed many people have trouble installing Wireshark on Termux. This guide provides the easiest method to install it.
In this article, I am going to show you how to install Wireshark in Termux Android without root.
Wireshark Android is a very popular network packet analyzer application. With the help of Wireshark Android, you can observe what is happening on your network to a basic level, besides that Wireshark is commonly used for network troubleshooting, packet analyzing, etc.
With the help of this tool, you can capture and analyze network packets in real time. Wireshark is the most considered tool by Ethical hackers.
So let's get started.
Then go to your Android menu open the VNC viewer Android application and click on your machine. Type the password and click on continue. In the VNC terminal type the following command:
wireshark-gtk
Wireshark Android is a very popular network packet analyzer application. With the help of Wireshark Android, you can observe what is happening on your network to a basic level, besides that Wireshark is commonly used for network troubleshooting, packet analyzing, etc.
With the help of this tool, you can capture and analyze network packets in real time. Wireshark is the most considered tool by Ethical hackers.
So let's get started.
Install Wireshark
First, we need to update our repository by typing the following command in Termux.
apt update && apt upgrade -y
Now type the following command in the Termux and press Enter.
pkg install x11-repo
wait until the process is finished.
Now we need to install Wireshark by typing the following command
apt install wireshark-gtk
Wait for the installation to be finished. It will take approx 4 to 5 min to install Wireshark. It can take more depending on your internet speed.
Wait for the installation to be finished. It will take approx 4 to 5 min to install Wireshark. It can take more depending on your internet speed.
Install Required Tools
Wireshark has a Graphical User Interface (GUI), while we can run only the Command-line interface tool in Termux. To run Wireshark on Termux, we need to install some tools that will help us to run Wireshark on Termux.
Follow the below commands:
pkg install xterm
apt install tigervnc
apt install tigervnc-viewer
Now we have to configure Tigervnc in order to configure Tigervnc run command vncserver and press enter.
If it is your first time you are running this command then it will ask you to enter the VNC password. You can enter any password you want. But you must remember the password that you type.
In order for the GUI application to use display, you must set the environment variable with the command export DISPLAY=":1".
now the final step, we need to install a VNC viewer remote desktop application for Android. VNC viewer will help us to run Wireshark in GUI mode. You can simply install the VNC viewer from Google Playstore.
Now we have to configure Tigervnc in order to configure Tigervnc run command vncserver and press enter.
If it is your first time you are running this command then it will ask you to enter the VNC password. You can enter any password you want. But you must remember the password that you type.
In order for the GUI application to use display, you must set the environment variable with the command export DISPLAY=":1".
now the final step, we need to install a VNC viewer remote desktop application for Android. VNC viewer will help us to run Wireshark in GUI mode. You can simply install the VNC viewer from Google Playstore.
After successfully installing the VNC viewer. Open the VNC viewer application on your Android device.
After opening the application click on + sign. You will see something like this in the below image:
On Address, field add: 127.0.0.1:5901
And on the name field, you can add anything you like for example Termux, Desktop, Wireshark, etc.
And then click Create. After this, you will be prompted to add the password. Now type the password that you have typed at the time of configuring the VNC server.
Now you are successfully connected. You will see the terminal in the VNC viewer simply type the following command in the VNC viewer in order to run Wireshark:
wireshark-gtk
After opening the application click on + sign. You will see something like this in the below image:
Normally VNC server listens at the localhost i.e. 127.0.0.1 and 5901 port.
On Address, field add: 127.0.0.1:5901
And on the name field, you can add anything you like for example Termux, Desktop, Wireshark, etc.
And then click Create. After this, you will be prompted to add the password. Now type the password that you have typed at the time of configuring the VNC server.
Now you are successfully connected. You will see the terminal in the VNC viewer simply type the following command in the VNC viewer in order to run Wireshark:
wireshark-gtk
Hence we have successfully installed and run Wireshark on Termux without any kind of error.
To run the Wireshark again simply open Termux and type the following command to run the VNC server.
vncserver
Then type the following command:
export DISPLAY=":1"
To run the Wireshark again simply open Termux and type the following command to run the VNC server.
vncserver
Then type the following command:
export DISPLAY=":1"
Then go to your Android menu open the VNC viewer Android application and click on your machine. Type the password and click on continue. In the VNC terminal type the following command:
wireshark-gtk
Conclusion
In this article, we have learned how to install Wireshark in Termux Android. Read the full article to avoid any kind of error.
Post a Comment