Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Rochey on February 06, 2017, 07:51:54 AM

Title: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 06, 2017, 07:51:54 AM
Hi all,
What happened to wireshark?
It used to be in the repo but the last version I can find is in the 4.x repo. If this is the latest version supported how do you get it installed on 7.2?

Any help would be much appreciated.
Cheers,
Rochey
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: andyj on February 06, 2017, 09:34:11 AM
32-bit or 64-bit?
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 06, 2017, 10:56:55 AM
I'm working with 32-bit TinyCore at the moment but if 64-bit is working I would go with that.
I'd be happy to have either! lol!
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 06, 2017, 09:50:33 PM
Did you pm extension maintainer robc to request an update to the x86 version of wireshark?
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rich on February 06, 2017, 10:06:08 PM
Hi Juanito
Did you pm extension maintainer robc to request an update to the x86 version of wireshark?
He hasn't been active since March 2013.
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 07, 2017, 12:15:23 AM
wireshark posted to tc-7.x x86 repo
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 07, 2017, 11:07:17 PM
wireshark removed from tc-7.x x86 repo

For some reason the interfaces do not display properly - perhaps because I cannot compile against gnutls (too old).

The version of wireshark in the tc-7.x x86_64 repo seems to work...
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: andyj on February 08, 2017, 05:00:54 AM
I built wireshark for 64-bit a few months ago to test but I never got around to uploading it. It seemed to work as I expected for me the time or two I tried it but I didn't try many of the features. It might take me a while to find a build script if I wrote one (usually the first time I build an extension I do it by hand) and to put together the .info file. In the mean time I learned that these extensions were required:

libcap.tcz
libpcap.tcz
openssl.tcz
gnutls.tcz
libgcrypt.tcz
gtk3.tcz
gnome-icon-theme.tcz

Do you have these in the dep file?
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 08, 2017, 05:06:13 AM
In fact I uploaded wireshark to the 6.x corepure64 repo a while back, but forgot to upload the info file, so it wasn't visible in either the 6.x or 7.x repos.

Anyway, I uploaded an updated version to the 7.x corepure64 yesterday with these deps:
Code: [Select]
gtk3.tcz
libpcap.tcz
libnl.tcz
gnutls.tcz
libgcrypt.tcz
lua-5.3-lib.tcz
sbc.tcz
c-ares.tcz
portaudio.tcz
libssh.tcz
libgeoip.tcz

..and things look better with adwaita-icon-theme loaded.
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 08, 2017, 06:02:34 AM
Thanks for this guys. I'm going to test this sometime today or tomorrow.

Do you know if it's supposed to work without sudo?
When I was trying it from a normal user the interfaces wouldn't show up. I then ran wireshark with sudo and it shows an error saying it's being run from a root account but then you can see the interfaces. I just wanted to know which way it should be run.

Thanks again.
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 08, 2017, 09:07:18 AM
Has wireshark been removed again from the ..../7.x/x86/tcz/ repo?
I was just about to download and test and on my tinycore device wireshark.tcz isn't there. I'm using the 32-bit version (normal TinyCore). Would this be an issue for some reason?
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 08, 2017, 09:08:40 AM
The corepure64 version works without sudo
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 09, 2017, 12:12:00 AM
Has wireshark been removed again from the ..../7.x/x86/tcz/ repo?

wireshark re-posted to 7.x x86 repo - it should display the available interfaces and capture without sudo now
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 09, 2017, 01:02:34 AM
Hi Juanito again - Sorry to keep being a pain regarding this :-\ I still can't seem to see wireshark.
If I use the apps browser in TinyCore it shows the URI as http://repo.tinycorelinux.net/ (http://repo.tinycorelinux.net/) and wireshark doesn't show up in the list.
Also, if I browse to http://repo.tinycorelinux.net/7.x/x86/tcz/ (http://repo.tinycorelinux.net/7.x/x86/tcz/) I don't see wireshark either.

Could you confirm this is where you put it please? Or should I be getting it from somewhere else?

Thanks for all your help with this - it is greatly appreciated  ;D
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on February 09, 2017, 01:43:31 AM
sorry - you should be able to see it now
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Rochey on February 09, 2017, 09:50:25 AM
Just tested and it all looks good. I found wireshark in the repo! yay!

Also just tried to do a packet capture on both the Wireless and Wired interface an they both looked good.

Finally I can confirm that I didn't need to run it as sudo
 ;D

Thanks for all your help guys!!
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: pstavirs on October 18, 2017, 11:11:23 PM
Wireshark doesn't seem to work on the latest 8.2 release (32-bit). Exits with a X-Windows error of bad value - parameter out of range for operation.

Any ideas what's wrong and how to fix?
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on October 18, 2017, 11:35:39 PM
It will not work for me with Xvesa, but will work with Xorg-7.7

Loading adwaita-icon-theme also reduces the warning message count...
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: pstavirs on October 21, 2017, 10:25:17 PM
Thanks @Juanito! It works for me also with Xorg-7.7 but not with Xvesa.

I also tried to build the Qt version of Wireshark (which has become the preferred version since Wireshark 2.x), but that also has the same problem.

In case someone's interested, here's my script to create wireshark-qt
Code: [Select]
#/bin/sh

set -e
set -x

VERSION=2.4.2
PREFIX=/tmp/wireshark
LOCAL_EXTENSIONS=./local

# pre-req/dependencies
tce-load -wi compiletc libpcap-dev qt-4.x-dev
tce-load -wi autoconf automake libtool-dev libgcrypt-dev libcap-dev

# get and build protobuf
if [ ! -d wireshark-$VERSION ]; then
  wget https://2.na.dl.wireshark.org/src/wireshark-$VERSION.tar.xz
  tar xf wireshark-$VERSION.tar.xz
fi
cd wireshark-$VERSION
if [ ! -f config.h ]; then
  ./autogen.sh
  ./configure
fi

# TinyCore recommended flags
export CFLAGS="-march=i486 -mtune=i686 -O2"
export CXXFLAGS="-march=i486 -mtune=i686 -O2"
export LDFLAGS="-Wl,-O1"

# build and install
make -j`cat /proc/cpuinfo | grep processor | wc -l`
mkdir -p /tmp/wireshark
DESTDIR=/tmp/wireshark make install-strip

# package wireshark
PACKAGE=wireshark-qt
mksquashfs $PREFIX $PACKAGE.tcz
md5sum $PACKAGE.tcz > $PACKAGE.tcz.md5.txt
echo -e "qt-4.x-base.tcz\nlibpcap.tcz\nlibgcrypt\nlibasound" > $PACKAGE.tcz.dep
mkdir -p $LOCAL_EXTENSIONS
mv $PACKAGE.tcz* $LOCAL_EXTENSIONS

Note - some dependencies may be missing from above script
Title: Re: What happened to wireshark? Can anybody help install a version on TC 7.2?
Post by: Juanito on October 21, 2017, 11:24:43 PM
comment added to wireshark info file