Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2012, 12:46 AM   #1
lukeroge
Enthusiast
lukeroge began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
SFTP not working on 5.1.0

I'm trying to use the sftp hack mentioned on the wiki to connect to my kindle touch, but its not working at all. An example of this below
Code:
me:~$ sshfs -o sftp_server=/mnt/us/sftp-server root@KINDLE_IP:/ /media/kindle
root@KINDLE_IPs password: 
remote host has disconnected
I tried running the sftp-server program itself on the kindle, and got this error:
Code:
[root@kindle root]# /mnt/us/sftp-server
/mnt/us/sftp-server: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
I would really like to get this working again, as I can't really do much without it
Thanks in advance.

Last edited by lukeroge; 05-10-2012 at 12:51 AM.
lukeroge is offline   Reply With Quote
Old 05-10-2012, 01:07 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Oh, yep, they updated to OpenSSL-1 in 5.1.0.

I'll probably do a proper KT OpenSSH (where sftp-server comes from) build at some point, so, err, unless you want to do it yourself, you'll have to wait, because the older Kindles relies on a binary built against OpenSSL-0.9.8 (and I guess that's where the binary came from, the K2/K3 usbnet hack).

(The very, very ugly hack of symlinking openssl 1 to openssl 0.9.8 might work, but it might also make sftp-server explode in a fiery abi mismatch ^^).

But that's good to know, it means that yet another thing will be 5.1.0 only .

Last edited by NiLuJe; 05-10-2012 at 01:10 AM.
NiLuJe is offline   Reply With Quote
Old 05-10-2012, 01:39 AM   #3
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by NiLuJe View Post
Oh, yep, they updated to OpenSSL-1 in 5.1.0.
...
But that's good to know, it means that yet another thing will be 5.1.0 only .
It would be nice to declare 5.1.0 hopelessly broken and unsupported. I actually requested that amazon release an update to make eink updates compatible with 5.0.x, but it is looking like that is only the beginning. I suppose if they can just recompile everything to use their broken header files and they keep this a closed system, they do not have to care (and it may actually be in their advantage) in their war on software that does not come from their app store (from which they profit at least from exposure to ads)....
geekmaster is offline   Reply With Quote
Old 05-10-2012, 07:00 AM   #4
lukeroge
Enthusiast
lukeroge began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
It would be nice to declare 5.1.0 hopelessly broken and unsupported. I actually requested that amazon release an update to make eink updates compatible with 5.0.x, but it is looking like that is only the beginning. I suppose if they can just recompile everything to use their broken header files and they keep this a closed system, they do not have to care (and it may actually be in their advantage) in their war on software that does not come from their app store (from which they profit at least from exposure to ads)....
I don't think its really "broken" per say, but it is annoying that they changed a lot around (breaking our stuff) :/


Quote:
Originally Posted by NiLuJe View Post
Oh, yep, they updated to OpenSSL-1 in 5.1.0.

I'll probably do a proper KT OpenSSH (where sftp-server comes from) build at some point, so, err, unless you want to do it yourself, you'll have to wait, because the older Kindles relies on a binary built against OpenSSL-0.9.8 (and I guess that's where the binary came from, the K2/K3 usbnet hack).

(The very, very ugly hack of symlinking openssl 1 to openssl 0.9.8 might work, but it might also make sftp-server explode in a fiery abi mismatch ^^).

But that's good to know, it means that yet another thing will be 5.1.0 only .
Shockingly enough, symlinking it does actually work! I've only just tried it so I'm yet to see if there will be any crashing issues later on. I look forward to seeing progress on a proper version

Last edited by lukeroge; 05-10-2012 at 07:08 AM.
lukeroge is offline   Reply With Quote
Old 06-15-2012, 01:12 PM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
FWIW, after finally having built a proper K5 TC, the reason it doesn't implode is because of the fact that sftp-server doesn't really depends on OpenSSL, as building it with as-needed reveals .

Code:
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux.so.3]
vs.

Code:
 0x00000001 (NEEDED)                     Shared library: [libcrypto.so.0.9.8]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libutil.so.1]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libnsl.so.1]
 0x00000001 (NEEDED)                     Shared library: [libcrypt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libresolv.so.2]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [ld-linux.so.3]


Sidebar: Where the hell did that ARMv5 binary came from, anyway? o_O.

Last edited by NiLuJe; 06-15-2012 at 01:18 PM.
NiLuJe is offline   Reply With Quote
Old 10-10-2012, 10:17 AM   #6
orpheus2011
Connoisseur
orpheus2011 doesn't litterorpheus2011 doesn't litterorpheus2011 doesn't litter
 
Posts: 92
Karma: 216
Join Date: Oct 2011
Device: Kindle
Niluje - Could you kindly provide the ssh commands for the correct symlinking? I am having the same trouble in getting sftp-server to work on my Paperwhite. Many thanks!
orpheus2011 is offline   Reply With Quote
Old 10-10-2012, 11:14 AM   #7
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
1) find what you want to link against

[root@kindle awesome]# find / -iname '*'"libcrypto"'*'
Quote:
/usr/lib/libcrypto.so.1.0.0
/usr/lib/libcrypto.so
/mnt/us/usr/lib/libcrypto.so.1.0.0
/mnt/us/usr/lib/libcrypto.so
2) read ln help

Quote:
[root@kindle awesome]# ln -h

Usage: ln [OPTIONS] TARGET... LINK|DIR

Create a link LINK or DIR/TARGET to the specified TARGET(s)

Options:
-s Make symlinks instead of hardlinks
-f Remove existing destinations
-n Don't dereference symlinks - treat like normal file
-b Make a backup of the target (if exists) before link operation
-S suf Use suffix instead of ~ when making backup files
so we probably want a soft link

3) cd to the folder you want the link to live in
[root@kindle awesome]# cd /usr/lib
[root@kindle lib]#

4) make root writable
mntroot rw

5) make link
ln -s /usr/lib/libcrypto.so.1.0.0 libcrypto.so.0.9.8

4) make root read only
mntroot ro


That kind of thing?
twobob is offline   Reply With Quote
Old 10-10-2012, 11:38 AM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@orpheus2011: I did. It's in the K4 usbnet package.
NiLuJe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sftp on your kindle drendo70 Kindle Developer's Corner 13 08-10-2012 03:53 AM
sftp, kindle and calibre rajil.s Amazon Kindle 0 05-09-2012 04:25 PM
a href links working/not working mimosawind ePub 5 12-09-2011 12:42 PM
Android SFTP (client) kenjennings enTourage Archive 4 04-12-2010 01:37 PM
Request Geek Tools for moving files to/from the Library: ssh/sftp/rsync/samba kenjennings enTourage Archive 6 04-06-2010 11:36 PM


All times are GMT -4. The time now is 09:17 AM.


MobileRead.com is a privately owned, operated and funded community.