ubuntu12.04 安装wireshark1.10.2稳定版本

来源:互联网 发布:网络教学与传统教学 编辑:程序博客网 时间:2024/04/30 12:16

        方法一:编译安装,可以参考http://blog.csdn.net/u011500307/article/details/12519617;可是这个安装成功后,打开wireshark监听网络,经常会卡死,不知道是不是我编译的时候没有加什么不。如果你对wireshark不是好熟悉,最好不要用这个方法。

        

        方法二:就是添加ppa源,下面是我找到的一个wireshark1.10.2源:

As I know, there’s only a personal PPA has updated the packages for Ubuntu 12.04 Precise. Here I’ll do a little tweak to get it work in Ubuntu 13.04 and Ubuntu 12.10. Do it at your own risk!

1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below command to add the PPA:

sudo add-apt-repository ppa:whoopie79/ppa

2.) Edit the repository config file by running below command in terminal:

sudo gedit /etc/apt/sources.list.d/whoopie79-ppa*.list

Change the Ubuntu release name from raring or quantal to precise. Skip this step if you’re on Ubuntu 12.04.


3.) Update and install wireshark:

sudo apt-get update; sudo apt-get install wireshark

4.) Once installed, you can remove this ppa because there contains other packages you may not want. To do so, run:

sudo rm /etc/apt/sources.list.d/whoopie79-ppa*.list; sudo apt-get update
但是用ppa安装后会出现一些有关权限的问题,可以用下面的方法解决:

If you run wireshark as a non root user at this stage (see image above), you will get the message “No interface can be used for capturing in this system with the current configuration.”. The following steps will rectify this.

Create the wireshark group.

sudo groupadd wireshark

Add your username to the wireshark group

sudo usermod -a -G wireshark YOUR_USER_NAME

Change the group  ownership of file dumpcap to wireshark

sudo chgrp wireshark /usr/bin/dumpcap

Change the mode of the file dumpcap to allow execution by the group wireshark

sudo chmod 750 /usr/bin/dumpcap

Grant capabilities with setcap

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Verify the change

sudo getcap /usr/bin/dumpcap

At this point, you will need to log out, then back into Unity (Thanks for Jorge for pointing this out).

方法三:如果想装最新的wireshark版本,可以用下面的ppa:

The latest Wireshark version available is Wireshark 1.11.0, which can be installed from a PPA. To install Wireshark on Ubuntu, Linux Mint and Debian, do this:

$ sudo add-apt-repository ppa:dreibh/ppa
$ sudo apt-get update
$ sudo apt-get install wireshark





To start wiresharking, just type nohup wireshark &> /dev/null & in your terminal.



原创粉丝点击