一、安装
# step 1:安装wireshark,弹出交互界面后,需点击【确认】
deepin@deepin:/$ sudo apt-get install wireshark -y
# step 2:打开启动文件
deepin@deepin:/$ sudo vi /usr/share/wireshark/init.lua
# step 3:将启动文件倒数地二行改为以下内容,避免启动时弹窗报错
--dofile(DATA_DIR.."console.lua")
二、运行
以菜单图标启动、运行过程中的权限不够,这是wireshark 本身设计的问题。
方式1: 在终端中以root权限运行wireshark
deepin@deepin:/$ sudo wireshark
方式2: 增加wireshark访问网卡权限
# step 1: 添加wireshark用户组
deepin@deepin:/$ sudo groupadd wireshark
# step 2:将dumpcap更改为wireshark用户组
deepin@deepin:/$ sudo chgrp wireshark /usr/bin/dumpcap
# step 3:让wireshark用户组有root权限使用dumpcap
deepin@deepin:/$ sudo chmod 4755 /usr/bin/dumpcap
# step 4:将需要使用的用户名加入wireshark用户组
deepin@deepin:/$ sudo gpasswd -a deepin wireshark