-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.nix
60 lines (43 loc) · 1.86 KB
/
README.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
______________________________________________________________________________
--- Building
>-> Get dependencies.
Last time I checked, this is all you need from a bare debian-based system.
sudo apt-get install build-essential bison flex \
libgtk2.0-dev libpcap-dev \
libxml2-dev cmake
You may want to get Wireshark too.
apt-get install wireshark
These are pretty much the same packages you'll need for Fedora
sudo yum install build-essential bison flex \
glib2-devel libpcap-devel \
libxml2-devel cmake \
gtk+
>-> Setup Wireshark source.
Download the Wireshark source and move it to ../wireshark relative to this
directory. Next, build you need to generate a correct config.h from the
Wireshark source directory.
./configure
>-> Build and install.
Run the install scrip located in $HOME/.wireshark/plugins.
./install.sh
>-> Fix your permissions.
On Ubuntu, and other Debian-based systems I assume, this must be done to allow
a user to run Wireshark. If root (or a sudo'd user) runs Wireshark, user
plugins WILL NOT LOAD. The following allows dumpcap to listen on network
interfaces without being run as root.
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' `which dumpcap`
You may need to install "setcap".
apt-get install libcap2-bin
or
yum install libcap2-bin
For more information on this, see:
http://wiki.wireshark.org/CaptureSetup/CapturePrivileges
______________________________________________________________________________
--- Notes for maintainers
cmake -DCMAKE_BUILD_TYPE=Release -DCPACK_GENERATOR=DEB
make package
This will create a debian package, distribute it to the masses.
To change back into regular development mode you must rerun cmake.
cmake -DCMAKE_BUILD_TYPE=
______________________________________________________________________________
--- EOF