This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How do I do an offline install ?

0

I need some help to gather the necessary pieces to do an offline install of Wireshark from source. This is for use on an isolated network where we want to create custom dissectors, so I have to be able to build from source.

asked 15 Feb '11, 13:29

ygor's gravatar image

ygor
1115
accept rate: 100%


2 Answers:

1

I found a solution that mostly achieves the first desired goal:

  1. Using a machine with Internet connectivity, I built a Wireshark 1.4.4 development environment as described in the Developer's Guide.
  2. I set up a USB thumb drive with Portable Wireshark 1.4.4 -- it is important that this version matches the version of the development environment of the previous step.
  3. I copied the DLL files of the custom dissectors into the plugins directory on the thumb drive.

The thumb drive will run Wireshark on any Windows machine and has the custom dissectors available.

Now, I need to see if I can do the same thing for a Linux machine.

This answer is marked "community wiki".

answered 09 Mar '11, 07:03

ygor's gravatar image

ygor
1115
accept rate: 100%

edited 09 Mar '11, 07:04

1

See the Wireshark Developer's Guide for info on building Wireshark on either Windows or *nix:

answered 15 Feb '11, 13:54

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

OK, fine. I did that.

When I got to 2.2.8 (Install Libraries) and typed nmake -f Makefile.nmake setup it started trying to connect to anonsvn.wireshark.org to download gtk+-bundle_2.16.6-20100207_win32.zip

This would be one of the "necessary pieces" mentioned in the original posting.

I can download it and jump it over the "air-gap", but where do I put it and how many more pieces will be needed ?

(16 Feb '11, 08:30) ygor
1

That's defined by the symbol WIRESHARK_LIBS in config.nmake. There are about 13 more.

(16 Feb '11, 09:01) Jaap ♦

Ah ha ! There they are ! Ok, I also found stuff in Makefile.nmake like

gtk+-bundle_$(GTK_PKG)_$(WIRESHARK_TARGET_PLATFORM).zip on line 775

Are all of these pieces in the bucket I'd get if I SVN'ed the source tree instead of using the tarball from the download page ?

(16 Feb '11, 09:10) ygor

No; The support stuff is downloaded via the make setup process.

If possible, it might be simpler for you to do the initial make setup on a PC with access to the Internet and then copy over the resulting WIRESHARK_LIBS directory.

(

(16 Feb '11, 09:37) Bill Meier ♦♦

I totally agree: An online machine would be an easy set-up. But my problem is that the machine in question is offline and cannot be placed online, thus my request for assistance.

(16 Feb '11, 10:16) ygor
1

I do understand what you are saying. I was merely asking if you could do a Wireshark make setup on a different PC with access to the Internet and then copy/move over everything to the offline machine. :)

(I also understand that that would require installing VC on that machine, etc and thus might not be worth the effort).

(16 Feb '11, 10:37) Bill Meier ♦♦

Another issue is that the ultimate target machine has a cygwin installation that is part of another development environment. I am concerned that it would interfere with wireshark if it is not the same version. How does one tell the version of cygwin ? I may not have access to the original installation media.

(16 Feb '11, 17:58) ygor
1

cygwin is used to run certain bash scripts and to gain access to certain *nix tools (listed in the Developer's Guide).

My experience is that the specific cygwin version being used isn't really all that important.

Checking for required applications: ... bash: /usr/bin/bash bison: /usr/bin/bison flex: /usr/bin/flex env: /usr/bin/env grep: /usr/bin/grep /usr/bin/find: /usr/bin/find perl: /usr/bin/perl ... sed: /usr/bin/sed unzip: /usr/bin/unzip wget: /usr/bin/wget

(16 Feb '11, 18:26) Bill Meier ♦♦

Thanks, Bill. This is a lot of good info. I now have a few ideas of ways to get this done. I will be happy to share my results.

(17 Feb '11, 07:10) ygor
showing 5 of 9 show 4 more comments