View Single Post
Old 02-26-2015, 09:16 PM   #7
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
https://github.com/prasmussen/gdrive
this is easy to install as there is a version for linux arm:
https://drive.google.com/uc?id=0B3X9...XRGWmw2T0xsa1k
I copied to my Kindle and can run it through ssh. You would only need some scripts I believe to get it to work with KUAL?
EDIT: I made some scripts and am testing now. the leafpad package defines home for it's rc file, so I had to copy the token files from /var/tmp/root/.gdrive to /mnt/us/extensions/leafpad/settings. Also requires kterm for an easy cli interface.
All in all, I wouldn't want to type a whole document on the Kindle like this, but for a quick note - maybe. This IS what you wanted, right? Save notes to your google drive and edit them on other devices?

OK file attached. First time login MUST be from an SSH shell!
unzip, chdir to /mnt/us/extensions/gdrive/bin and run "./drive list"
the shell will give you a browser link, I copied and pasted to my host browser and then copy and pasted the verification code back to the shell.
then copy the token files from /var/tmp/root/.gdrive to /mnt/us/extensions/leafpad/settings
KUAL has 2 links under gdrive, both kind of work OK if your connected to the net. Feel free to change anything you want, have fun!
the cli has "drive --help" and "leafpad" which SHOULD upload the saved file (sometimes I get timeouts...)


more ideas:
http://www.linuxjournal.com/content/...-cloud-gcalcli
https://github.com/odeke-em/drive

Both could probably be made to work? Python is available, and command line apps work well.. MAYBE even use a command line to open leafpad? Or just save your notes using vim or other cli editor and send them to your cloud.

Also this script works with dropbox:
https://www.mobileread.com/forums/sho...d.php?t=227348
so you could use instead?

also check this out to compile stuff:
https://www.mobileread.com/forums/sho...9&postcount=30
along with this script:
https://www.mobileread.com/forums/sho...ht=filechecker
to get needed libs.
Attached Files
File Type: zip gdrive.zip (1.61 MB, 267 views)

Last edited by brianinmaine; 02-27-2015 at 03:29 AM.
brianinmaine is offline   Reply With Quote