View Single Post
Old 03-04-2016, 07:52 AM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
Yeah, I have a vague memory of biting the dust on that front, but I can't remember for the life of me on which device that was.

Even more weird is the fact that I even have a memory of trying something like that, because networking is really not my game.

Eh.
I had to do the first one (tshark) 'by hand' before I could figure out how to script the relocation to /mnt/us/esys.
Of course, once I had the first one done, I don't need any scripting to do the relocation if the first example doesn't work.


One application and 12 libraries to relocate as:
Interpreter: /mnt/us/esys/lib/ld-linux.so.3
RPATH: $ORIGIN/../lib;$ORIGIN/../../lib
Location: /mnt/us/esys/lib or /mnt/us/esys/usr/lib or /mnt/us/esys/usr/bin as appropriate.
But doing it this way removes all dependencies on the Amazon installed system and libraries.

Hmm...
And if it uses any configuration files (I think it does) I'll need to move those to either /var/local/esys/etc or /mnt/us/esys/etc (depending on if sym-links are required).

Note:
The readme at the link above says: /mnt/us/extensions/system
But that location changed after the repo became read-only to the shorter: /mnt/us/esys to deal with some limitations of patchelf.

Edit:
Nope that will not be the minimum.
tshark requires the dumpcap application.
Quote:
Originally Posted by tshark on x386
Code:
core2quad arm $ tshark
tshark: Couldn't run /usr/bin/dumpcap in child process: Permission denied
core2quad arm $ sudo tshark
tshark: Lua: Error during loading:
 [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
  0.000000  192.168.0.2 -> 66.55.128.228 TCP 66 33386 > http [ACK] Seq=1 Ack=1 Win=2641 Len=0 TSval=41384632 TSecr=1509670841
  0.071340 66.55.128.228 -> 192.168.0.2  TCP 66 [TCP ACKed lost segment] http > 33386 [ACK] Seq=1 Ack=2 Win=102 Len=0 TSval=1509673361 TSecr=41367005
  0.416006  192.168.0.2 -> 74.125.21.99 TCP 66 37793 > http [ACK] Seq=1 Ack=1 Win=1686 Len=0 TSval=41384736 TSecr=1895430300
  0.465072 74.125.21.99 -> 192.168.0.2  TCP 66 [TCP ACKed lost segment] http > 37793 [ACK] Seq=1 Ack=2 Win=576 Len=0 TSval=1895440380 TSecr=41367112
  4.466579 66.55.128.228 -> 192.168.0.2  TCP 66 http > 33386 [FIN, ACK] Seq=1 Ack=2 Win=102 Len=0 TSval=1509674459 TSecr=41367005
  4.466694  192.168.0.2 -> 66.55.128.228 TCP 66 33386 > http [FIN, ACK] Seq=2 Ack=2 Win=2641 Len=0 TSval=41385748 TSecr=1509674459
  4.537743 66.55.128.228 -> 192.168.0.2  TCP 66 http > 33386 [ACK] Seq=2 Ack=3 Win=102 Len=0 TSval=1509674477 TSecr=41385748
 10.495992  192.168.0.2 -> 74.125.21.99 TCP 66 [TCP Keep-Alive] 37793 > http [ACK] Seq=1 Ack=1 Win=1686 Len=0 TSval=41387256 TSecr=1895440380
 10.545048 74.125.21.99 -> 192.168.0.2  TCP 66 [TCP Keep-Alive ACK] http > 37793 [ACK] Seq=1 Ack=2 Win=576 Len=0 TSval=1895450460 TSecr=41367112
 20.575996  192.168.0.2 -> 74.125.21.99 TCP 66 [TCP Keep-Alive] 37793 > http [ACK] Seq=1 Ack=1 Win=1686 Len=0 TSval=41389776 TSecr=1895450460
 20.624820 74.125.21.99 -> 192.168.0.2  TCP 66 [TCP Keep-Alive ACK] http > 37793 [ACK] Seq=1 Ack=2 Win=576 Len=0 TSval=1895460540 TSecr=41367112 
^C
11 packets captured
Code:
NetRange:       74.125.0.0 - 74.125.255.255
CIDR:           74.125.0.0/16
NetName:        GOOGLE
NetHandle:      NET-74-125-0-0-1
Parent:         NET74 (NET-74-0-0-0-0)
NetType:        Direct Allocation
OriginAS:       
Organization:   Google Inc. (GOGL)
RegDate:        2007-03-13
Updated:        2012-02-24
Ref:            https://whois.arin.net/rest/net/NET-74-125-0-0-1
And: 66.55.128.228 is MobileRead.com.

Last edited by knc1; 03-04-2016 at 09:09 AM.
knc1 is offline   Reply With Quote