一.环境:
系统:centos
二.安装:
1、yum install wireshark。注意这样并无法使用wireshark命令和图形界面。但提供了抓包基本功能。
2、yum install wireshark-gnome。这样就可以方便的使用了。
三.使用:
工具:MobaXterm_Portable_v10.2
启动:在命令行输入:wireshark
报错:
[root@dev ~]# wireshark
(wireshark:27706): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'
(wireshark:27706): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
(wireshark:27706): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='han'
浮点数例外
解决:
安装字体:
yum install liberation-sans-fonts
[root@dev ~]# yum install liberation-sans-fonts
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 liberation-sans-fonts.noarch.1.1.07.2-15.el7 将被 安装
--> 正在处理依赖关系 liberation-fonts-common = 1:1.07.2-15.el7,它被软件包 1:liberation-sans-fonts-1.07.2-15.el7.noarch 需要
--> 正在检查事务
---> 软件包 liberation-fonts-common.noarch.1.1.07.2-15.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
============================================================================================================================================
Package 架构 版本 源 大小
============================================================================================================================================
正在安装:
liberation-sans-fonts noarch 1:1.07.2-15.el7 base 279 k
为依赖而安装:
liberation-fonts-common noarch 1:1.07.2-15.el7 base 27 k
事务概要
============================================================================================================================================
安装 1 软件包 (+1 依赖软件包)
总下载量:305 k
安装大小:636 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): liberation-fonts-common-1.07.2-15.el7.noarch.rpm | 27 kB 00:00:00
(2/2): liberation-sans-fonts-1.07.2-15.el7.noarch.rpm | 279 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------
总计 324 kB/s | 305 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : 1:liberation-fonts-common-1.07.2-15.el7.noarch 1/2
正在安装 : 1:liberation-sans-fonts-1.07.2-15.el7.noarch 2/2
验证中 : 1:liberation-fonts-common-1.07.2-15.el7.noarch 1/2
验证中 : 1:liberation-sans-fonts-1.07.2-15.el7.noarch 2/2
已安装:
liberation-sans-fonts.noarch 1:1.07.2-15.el7
作为依赖被安装:
liberation-fonts-common.noarch 1:1.07.2-15.el7
完毕!
重新在命令行输入:wireshark
显示:
x-window点击是:
wiresharkwireshark具体使用方法,参考:
http://blog.csdn.net/xukai871105/article/details/31008635
http://jingyan.baidu.com/article/75ab0bcbebe340d6874db254.html
http://www.linuxidc.com/Linux/2012-06/62295.htm
https://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallWinInstall.html
https://www.wireshark.org/download.html
网友评论