ubuntu12.04安装wireshark
1 安装
$ sudo apt-get install wireshark
2 启动
$ sudo wireshark
3 启动报错
直接运行wireshark的话会报错:
Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
解决办法:
要对其进行修改,终端运行
sudo gedit /usr/share/wireshark/init.lua
将倒数第二行
dofile(DATA_DIR.."console.lua")
改为
--dofile(DATA_DIR.."console.lua")
4 欢迎界面
选择不再显现该信息
Running as user "root" and group "root".
This could be dangerous.
If you're running Wireshark this way in order to perform live capture, you may want to be aware that there is a better way documented at
/usr/share/doc/wireshark-common/README.Debian
5 使用
$ sudo wireshark