{"id":14818,"date":"2022-02-02T07:31:08","date_gmt":"2022-02-02T07:31:08","guid":{"rendered":"https:\/\/linuxways.net\/?p=14818"},"modified":"2022-02-03T16:07:08","modified_gmt":"2022-02-03T16:07:08","slug":"how-to-install-wireshark-on-debian-10","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-wireshark-on-debian-10\/","title":{"rendered":"How to Install Wireshark on Debian 10"},"content":{"rendered":"<p>Wireshark is a free and open-source packet analyzer. It allows the user to examine data from a live network, or from a capture file on disk. Wireshark can be used as a simple network troubleshooting tool, as well as for security analysis and software development.<\/p>\n<p>Installing Wireshark on Debian 10 is easy &#8211; in this guide, we\u2019ll show you how to do it. We\u2019ll also explain some of the basics of using Wireshark so that you can get started right away. Follow our step-by-step guide to installing Wireshark on Debian 10!<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>In order to follow our guide to installing Wireshark on Debian 10, you\u2019ll need:<\/p>\n<ul>\n<li>A connection to the Internet (to download and install packages)<\/li>\n<li>An account with sudo privileges to install and remove packages. You can set this up by following the instructions <a href=\"https:\/\/linuxways.net\/de\/debian\/how-to-add-a-user-to-sudoers-on-debian-10\/\">here<\/a>.<\/li>\n<\/ul>\n<h2><strong>Updating Your Source List<\/strong><\/h2>\n<p>Wireshark depends on a number of open-source libraries. We need to make sure that these are up-to-date before we install the program itself. Debian 10 keeps all its packages updated through regular updates, so first we\u2019ll run an update.<\/p>\n<pre>sudo apt update -y<\/pre>\n<p>During installation, you\u2019ll be asked to allow non-superusers to capture data from your network interfaces. Select Yes to continue.<\/p>\n<h2><strong>Installing Wireshark on Debian 10<\/strong><\/h2>\n<p>Now that we\u2019re up-to-date, we can proceed to download and install Wireshark.<\/p>\n<p>1.Wireshark is distributed as a package .deb file. This means that there\u2019s no need to download anything manually. Instead, we can just install it through apt, like any other program on Debian 10.<\/p>\n<pre>sudo apt install wireshark -y<\/pre>\n<p>2.During installation, you\u2019ll be asked to allow non-superusers to capture data from your network interfaces. Select Yes to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1282\" height=\"722\" class=\"wp-image-14819\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-122.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-122.png 1282w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-122-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-122-1024x577.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-122-768x433.png 768w\" sizes=\"auto, (max-width: 1282px) 100vw, 1282px\" \/><\/p>\n<p>Once you\u2019ve installed Wireshark, run the sudo apt policy wireshark command to check the version of Wireshark you installed.<\/p>\n<pre>sudo apt policy wireshark<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1255\" height=\"298\" class=\"wp-image-14820\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-123.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-123.png 1255w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-123-300x71.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-123-1024x243.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-123-768x182.png 768w\" sizes=\"auto, (max-width: 1255px) 100vw, 1255px\" \/><\/p>\n<h2><strong>Testing Wireshark<\/strong><\/h2>\n<p>Now that we\u2019ve installed Wireshark, let\u2019s take it for a quick test drive.<\/p>\n<p>1.First up, start the program by typing sudo wireshark. This opens Wireshark in its own window.<\/p>\n<pre>sudo wireshark<\/pre>\n<p>2.You can also open Wireshark from your desktop environment\u2019s menu system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"662\" class=\"wp-image-14821\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-124.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-124.png 663w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-124-300x300.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-124-150x150.png 150w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/p>\n<p>Wireshark has a graphical user interface (GUI) for capturing packets, as shown below. You\u2019ll be presented with a list of available network interfaces that Wireshark understands. If you want to monitor the interface where your web browser is receiving its Internet connection (for example, wlan0), select the interface and click the Start button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"573\" class=\"wp-image-14822\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-125.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-125.png 746w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-125-300x230.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>However, you can also use it from the terminal by typing tshark, followed by a command to capture some traffic. Tshark is a command line program for monitoring network traffic. Together with TShark, it\u2019s part of the Wireshark suite. Just like its GUI equivalent, it can capture packets and then show a description in a terminal window or save them to a file in binary format.<\/p>\n<p>3.You can install tshark by typing the following command into your terminal window:<\/p>\n<pre>sudo apt install tshark -y<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1244\" height=\"372\" class=\"wp-image-14823\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-126.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-126.png 1244w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-126-300x90.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-126-1024x306.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-126-768x230.png 768w\" sizes=\"auto, (max-width: 1244px) 100vw, 1244px\" \/><\/p>\n<p>4.Run the tshark &#8211;help command below to see the different options that tshark offers.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1242\" height=\"677\" class=\"wp-image-14824\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-127.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-127.png 1242w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-127-300x164.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-127-1024x558.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-127-768x419.png 768w\" sizes=\"auto, (max-width: 1242px) 100vw, 1242px\" \/><\/p>\n<p>5.Run the tshark -D command below to check that your network interfaces are recognized by tshark.<\/p>\n<pre>tshark -D<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1149\" height=\"384\" class=\"wp-image-14825\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-128.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-128.png 1149w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-128-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-128-1024x342.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-128-768x257.png 768w\" sizes=\"auto, (max-width: 1149px) 100vw, 1149px\" \/><\/p>\n<p>You will get a list of your network interfaces like the one below. Note that some network interfaces may be in the \u201cdisabled\u201d state. Not all network interfaces are active by default. You must find the active interfaces. In this demo, it\u2019s interface ens3 and lo.<\/p>\n<p>6.You can find out which interface is active by typing ifconfig in your terminal.<\/p>\n<pre>ifconfig<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1232\" height=\"602\" class=\"wp-image-14826\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-129.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-129.png 1232w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-129-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-129-1024x500.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-129-768x375.png 768w\" sizes=\"auto, (max-width: 1232px) 100vw, 1232px\" \/><\/p>\n<p>7.Once you\u2019ve identified your desired capture interface, run the tshark -i &lt;interface&gt; command to start capturing packets. Where &lt;interface&gt; is the name of your desired capture interface.<\/p>\n<pre>tshark -i ens3<\/pre>\n<p>8.Once you\u2019re done capturing data, press Ctrl-C in your terminal window. This will stop the capture process and close tshark. You\u2019ll see the captured data displayed in your terminal window, as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1282\" height=\"722\" class=\"wp-image-14827\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-130.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-130.png 1282w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-130-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-130-1024x577.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-130-768x433.png 768w\" sizes=\"auto, (max-width: 1282px) 100vw, 1282px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this guide, we\u2019ve shown you how to install Wireshark on Debian 10. We also demonstrated the use of Tshark &#8211; a command-line tool that can be used together with Wireshark, just like its GUI equivalent.<\/p>\n<p>At this point, you should have a working version of Wireshark installed on your system. Leave your questions and inputs in the comments section below.<\/p>\n<p>For more information, visit the Wireshark <a href=\"https:\/\/www.wireshark.org\/docs\/wsug_html\/\">website<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Wireshark is a free and open-source packet analyzer. It allows the user to examine data from a live network, or from a capture file on disk. Wireshark can&hellip;<\/p>","protected":false},"author":1,"featured_media":14919,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17,355],"class_list":["post-14818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-10","tag-wireshark"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=14818"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14818\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/14919"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=14818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=14818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=14818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}