View Single Post
Old 03-17-2016, 04:56 AM   #11
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 irreld View Post
Top command needs extra terminal definition files in /usr/share/terminfo since 5.6.x on my PW2. Maybe @NiLuJe should include then in his USBNetworking hack.

Bought usb-ttl cable, preparing my soldering iron, and swear not to be so stupid again.
It should not in single pass batch mode - use the: -bn1 option shown.

Plus - it is included in USBnetworking (to support htop and nano) -
Code:
[root@kindle us]# find . -name terminfo
./usbnet/etc/terminfo

[root@kindle us]# ls -ld /usr/bin/top /usr/bin/htop /usr/share/terminfo
lrwxrwxrwx    1 root     root            23 Dec 31  2014 /usr/bin/htop -> /mnt/us/usbnet/bin/htop
-rwxr-xr-x    1 root     root         48771 Apr 15  2015 /usr/bin/top
drwxr-xr-x    6 root     root          1024 Apr 15  2015 /usr/share/terminfo
So you should be able to fix Amazon's goof-up by (**WITHOUT** having USB exported in USB storage mode):
Code:
mntroot rw
cd /usr/share
ln -s /mnt/us/usbnet/etc/terminfo .
mntroot ro
PS: There are alternatives to soldering posted.
knc1 is offline   Reply With Quote