View Single Post
Old 12-21-2011, 02:24 PM   #22
EightWeight
Enthusiast
EightWeight began at the beginning.
 
EightWeight's Avatar
 
Posts: 35
Karma: 12
Join Date: Dec 2011
Device: Kindle4, PW
Oh man, this is SOOOOOO Cool!! I got sshfs wifi to work on my K4 so I can mount it on my desktop like a regular drive with the whole filesystem visible.

Here's how I did it:

The first step is to get ssh wifi working. Once you have that you can work on the filesystem in a terminal without using the USB cable.

Get the file at https://www.mobileread.com/forums/att...4&d=1285246572 and extract it somewhere.

Log into the Kindle as root. Do 'mntroot rw'.

Do 'mkdir /usr/libexec'. Copy the file you grabbed and extracted above to this new directory.

Log out and in a terminal 'sftp root@xxx.xxx.xxx.xxx'. Replace the x's with the Kindle's IP on your local network. Once you give it the password you should get the sftp> prompt. So far, so good. Now log out.

On your local machine create a directory to which you have permissions. I used ~/kindle.

Now try 'sshfs root@xxx.xxx.xxx.xxx:/ ~/kindle' from your terminal. This should mount the Kindle filesystem at ~/kindle and may even put an icon on your desktop. Mine does. (In the screenshot I mounted /mnt)

To unmount the Kindle you have to issue 'fusermount -u /your/mount/point'. On my system, if the Kindle has timed out (another problem that needs addressing), this may not work and it freezes the Desktop.

Another mod I did was to create a /root directory on / in the Kindle. I opened the /etc/passwd file and changed the root target to /root instead of /tmp/root. Then I created /root/.ssh/authorized_keys and set up public and private keys on host and client. I don't know if this is really necessary since I always get prompted for a password anyway. BTW, I changed root's password to something I could remember!
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	7329
Size:	190.1 KB
ID:	80219  

Last edited by EightWeight; 12-21-2011 at 06:27 PM.
EightWeight is offline   Reply With Quote