[solved] install tcpdump?

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

oliver
Posts: 28
Joined: Wed Jun 04, 2014 7:30 pm

[solved] install tcpdump?

Postby oliver » Thu Jun 05, 2014 6:33 pm

I'm a new user running 1.6.1 on a TP-Link TL-WR741N/ND v1 (re-badged Rosewill RNX-N150RT)

I'm trying to troubleshoot an SIP/VoIP problem where my phone will no longer register and tcpdump would really help :-)

Can it be installed? If so, how?
Last edited by oliver on Sat Jun 07, 2014 8:53 pm, edited 1 time in total.

oliver
Posts: 28
Joined: Wed Jun 04, 2014 7:30 pm

Re: install tcpdump?

Postby oliver » Thu Jun 05, 2014 6:51 pm

answering my own question

Code: Select all

root@Gargoyle:/tmp# opkg update
Downloading package list for attitude_adjustment source...
Package list for attitude_adjustment downloaded successfully.

Downloading package list for gargoyle source...
Package list for gargoyle downloaded successfully.


root@Gargoyle:/tmp# opkg list |grep  ^tcpd
tcpdump - 4.2.1-3 - Network monitoring and data acquisition tool
tcpdump-mini - 4.2.1-3 - Network monitoring and data acquisition tool (minimal version)


root@Gargoyle:/tmp# opkg install tcpdump
ERROR: Not enough space in destination root to install specified packages:
        tcpdump, libpcap


root@Gargoyle:/tmp# opkg install tcpdump-mini
ERROR: Not enough space in destination root to install specified packages:
        tcpdump-mini, libpcap



oh well

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: install tcpdump?

Postby n0pin » Fri Jun 06, 2014 3:38 am

You could try to install it into RAM (/tmp) folder, but it will be gone on restart.

oliver
Posts: 28
Joined: Wed Jun 04, 2014 7:30 pm

Re: install tcpdump?

Postby oliver » Fri Jun 06, 2014 8:06 am

n0pin wrote:You could try to install it into RAM (/tmp) folder, but it will be gone on restart.


I tried adding the ' -d' option to opkg but I get an error. Is the syntax incorrect? Any way to just extract the ipkg file?

Code: Select all

root@Gargoyle:/tmp# opkg install -d /tmp tcpdump
ERROR: No destination /tmp found, cannot install


/tmp does exist and is writable

n0pin
Posts: 129
Joined: Thu Jan 09, 2014 6:39 am

Re: install tcpdump?

Postby n0pin » Sat Jun 07, 2014 1:01 pm

Use "-d ram" switch.

oliver
Posts: 28
Joined: Wed Jun 04, 2014 7:30 pm

Re: install tcpdump?

Postby oliver » Sat Jun 07, 2014 8:49 pm

Perfect... thank you. A quick change to LD_LIBRARY_PATH and all was good

It's not a problem that this will be lost on a reboot since it's not like it has to be there 24/7. And I could always put a cron job in place to re-install if the file is missing

I'm loving Gargoyle BTW

darrepac
Posts: 27
Joined: Thu Dec 22, 2016 6:00 am

Re: [solved] install tcpdump?

Postby darrepac » Wed Oct 03, 2018 9:50 am

Is it normal that I do not find tcpdump in opkg list??


Return to “Other Issues”

Who is online

Users browsing this forum: Google [Bot] and 4 guests