Welcome, Guest. Please login or register.

Author Topic: AmigaOS 3.x i Google Drive handler  (Read 4472 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« on: January 29, 2016, 12:11:39 PM »
Quote from: Sir_Lucas;802407


Here you can check out AmigaOS 3.x with Google Drive handler support.
The author claims that Dropbox support is next on his list.

https://www.youtube.com/watch?v=8v9guAQdbDA&feature=youtu.be



Arrgh - I was just trying to post the news as "Amiga Software News"-item and was wondering why it didn't appear in the "Amiga Software News"-section after clicking the "Submit"-button, when I noticed this thread already existed.

I'll post my 'news-item' nevertheless here in this thread, as it contains some additional information from the e-mails Norbert Kett and I exchanged since yesterday:

Norbert Kett, chief programmer at 4Flash, has released an Google Drive Handler for AmigaOS 3.x.

"Google Drive Handler" for AmigaOS 3.x is a Dos handler, allowing easy access to your Google Drive storage (Gmail account required).

Support for "Drop Box" and "Google Cloud Print" is planned as well:
  • "Drop Box Handler" is under development. While a Gmail address is required for Google Drive, this will be a bit different for Drop Box later on. Norbert Kett's intention is to release the "Drop Box Handler" next month.
  • "Google Cloud Print" will be an easy printing solution for Amiga. You can print documents with drag&drop, and no printer driver is required. This is sort of network printing - only Google offers this printing support at the moment.


"Google Drive Handler" for AmigaOS 3.x is based on
  • libCurl v7.37.1 and
  • OpenSSL v0.9.8zh. This version of OpenSSL contains all security patches until December 3rd, 2015, but only supports TLS 1.0.
    OpenSSL v1.0.2e (also included in this distribution) is the latest, full featured SSL library, but requires a fast 68k machine (68040+).
Without licence key, the handler acts as a read only volume, and document exporting is disabled. To obtain the licence key, please contact Norbert Kett using this email address: anchor@rocketmail.com. Once you obtained a licence you will get full access to all his upcoming handlers. The cost of the license is 10 EUR. With one licence, you can use all his upcoming "REST API based products" on all Amiga like platforms without limitation.

"REST API" is an industry standard for app <-> server communication. It is getting more popular. Some services for example:
Google Drive, Google Cloud Printing, DropBox, Microsoft One-Drive, Amazon Cloud, PayPal, Twitter, FaceBook, and many others.

It may also work on AROS Vision, and on MorphOS too. However, it has not been fully tested yet on these platforms (MorphOS will get a native version separately).

Only porting to OS4 is problematic, since Norbert Kett currently has no hardware to run OS4 and test the handler with.
An OS4 emulation is not enough - a real machine is required. Norbert tried to port it to OS4 in UAE, but when he tried the handler on a real Amiga with OS4, some issues arose that weren't perceivable on the emulated machine.

So everybody wanting OS4 ports of this software should seriously consider to support him with OS4 capable hardware - at least as a loan!



Further details:

Short:        Google Drive handler for AmigaOS 3.x
Author:       Norbert Kett (anchor@rocketmail.com)
Type:         comm/tcp
Version:      0.4
Requires:     68020
Architecture: m68k-amigaos >= 3.0.0


DESCRIPTION

  This is a Dos handler allowing easy access to Your Google Drive storage.


REQUIREMENTS

  AmigaOS 3.x, 68020 28MHz, 8M fast RAM, with Internet connection. The
  handler has been tested on OS3.1, and OS3.9. It may also work on AROS
  Vision, and on MorphOS too. However, it has not been fully tested yet
  on these platforms. (MorphOS will get a native version separately.)


LIMITATIONS

  Without licence key, the handler acts as a read only volume, and document
  exporting is disabled. To obtain the licence key, please contact me using
  my email address. Once licence obtained, full access to all my upcoming
  handlers is enabled. (Dropbox and Google Cloud Print are planned as well)
  The cost of the license is 10 EUR.

 
INSTALLATION

  Since there is no installer yet, You need to follow these steps:
  1. Copy the entire 'Google' folder to your Devs: from the archive.
  2. Visit the following site with a modern browser: https://goo.gl/1K3xoq
     and copy the given client code into Devs:Google/_client_code
     (Please note: Every time when You ask new client code, You must delete
     Devs:Google/_access_token and Devs:Google/_refresh_token files if they
     are exist!)
  3. Add the following lines to Your user-startup:
 
  ;BEGIN Google
     Assign SSLROOT: Devs:Google/.sslroot
     Mount GOOGLE: from Devs:Google/google.mountlist
  ;END Google

  (If somehow You already have SSLROOT: assign, skip that line)
  That's all. Let's check your installation. Reboot, and open a new
  CLI window. Type: list google:
  If everything is fine, after a few seconds You should see the list of
  files and folders of your GD root.
 
  If You want to see GD icon on your Workbench, upload one from
  Devs:Google/.data folder to Your GD root, and rename it to Disk.info.
  Disk1.info is a classic icon format for OS3.1, Disk2.info is for
  Peter Keunecke's icon.library, while Disk3.info is a png image for
  OS3.9. In order to upload files You'll need to use a full version
  of the handler, or a modern browser.
 

COMPONENTS

  GD handler is based on libCurl (v7.37.1), and OpenSSL (0.9.8zh)
  This version of openssl contains all security patches until
  2015.12.03, but supports only TLS 1.0. Use this handler at Your
  own risk. If You have stronger CPU (68040/68060/Apollo FPGA),
  You can try the handler built with the latest, full featured,
  but slower openssl. (v1.0.2e) Just rename google-drive-handler_102e
  to google-drive-handler in Your Devs:Google folder.
  You can check the components, and the licence status with this
  command: list google:@about
  The SSL connection and data transmission is a relatively slow on
  68k based machines. GD handler worked on my boosted ACA1221 with
  68020 28MHz, but it wasn't too fast. For the fluent operating a
  68030 is strongly recommended.
 
 
TECHNICAL RESTRICTIONS

  - GD does not show the file size of the document type files. The zero
  file size may cause problems, thus the handler showing a huge file size
  for exportable documents. The real size is determined only at the export
  time. File managers without EOF support are unable to handle it. Dopus
  can't handle EOF, and its default I/O buffer size is too small for
  networking. I recommend FileMaster, or Workbench for GD. FileMaster uses
  big enough (and adjustable) I/O buffer size by default, and handles EOF.
  - GD does not allow modification of file contents. If You want to modify
  a file, make a local copy first, and when You have finished, upload it
  to your GD.
  - GD expects the exact file size for every upload. If You creating a new
  file, it is empty. Due to this, if You uploading something, the content
  will be stored into a buffer, and the real upload will occur when the
  file has been closed. The maximum size of the uploaded file is limited
  by amount of free RAM.
 
 
PLANNED FEATURES

  - OCR (automatic text document export from image, during upload)
  - Shared file support
  - icon ghosting
  - thumbnails as icons for NG systems
  - 64 bit actions for NG systems
  - change detection (if You operate with GD on other machine too)
  - MOS, AROS x86, OS4 port (I have no OS4 capable machine yet)
 
 
 VERSION
 
   This handler is still in an early stage of development, far from the
   mature state. It may contain bugs. Please consider this release as a
   public beta. Any feedback is welcomed.
   Thanks to:
    - BSzili,
    - Viktor Soponyai alias dh1 from Amiga Mania Magazin,
    - PMonster,
    - Sir_Lucas

.
.
.
.
« Last Edit: January 29, 2016, 01:24:24 PM by Dandy »
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« Reply #1 on: January 29, 2016, 01:16:45 PM »
Quote from: BSzili;802959
The readme was written for it yesterday, but it didn't make it to aminet yet.


As I already stated in my previous post I am in contact with Norbert Kett.

Here is an extract of the relevant part of these mails:


"Dandy:
I’m highly interested in this OpenSSL v1.0.2e, as my YAM installation stopped working (connecting to the pop server), when German Telekom switched to the “securepop” servers in April 2014. Even the latest YAM version with the latest AmiSSL version cannot connect to the securepop servers any longer.
 
I think my CyberstormPPC with 68060@50mHz and PPC 604e@200 mHz is sufficiently fast for OpenSSL v1.0.2e, isn’t it?
My OS is OS 3.9 with BBs I & II/WarpOS 16.1, TCP/IP stack is registered version of MiamiDX…
 
Research on the web resulted in finding a rumor saying a new version of AmiSSL would be required to do the trick (http://www.amiga-news.de/de/forum/thread.php?id=35246&BoardID=1#36659 and http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=40718&forum=27#773611).

Norbert Kett:
OpenSSL v1.0.2e is the latest, full featured SSL library, it requires a fast 68k machine. (68040+)
AmiSSL is a good project, but not updated years ago, and it uses very old openssl. YAM should be recompiled with the latest openssl.
The OpenSSL what i use is integrated into the handler. This is unusable by other apps like Yam.
AmiSSL is a shared lib. As you wrote Yam uses openssl through AmiSSL. So AmiSSL need to be updated with the latest OpenSSL, but i see small chance for it in the near future. I contacted them to get their OpenSSL, but i did not get reply. So BSzili made fresh openssl ports.

Dandy:
Hmmm – maybe providing BSzili’s port of Openssl v1.0.2e to the YAM dev team could help?
Maybe they can somehow incorporate this latest OpenSSL version in YAM…
This could help a lot of YAM users!
Can you try to persuade BSzili to provide his port to the YAM dev team, please?
"

:idea:
Now that I found you here at Amiga.org I can ask you directly:
Could providing your port of OpenSSL v1.0.2e to the YAM dev team help them?
Maybe they can somehow incorporate this latest OpenSSL version in YAM…
This could help a lot of YAM users and enable them to do their e-mails on their Miggies again (if it is really the fault of the obsolete AmiSSL)!
Or could it help if the AmiSSL dev team would base an update of AmiSSL on your new port of Openssl v1.0.2e?


As Norbert tried to contact the the AmiSSL developer team without success - obviously this is the actual e-mail address of the AmiSSL developer team: AmiSSL development (Jens Maus)
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« Reply #2 on: June 30, 2016, 08:18:53 AM »
Quote from: Acill;803002


No luck getting it to work here. I have tried to generate the token a couple times and entered it into the file as instructed. When I type list google: I get an auth error pop up and it has a locked up shell window at that point.

"cDosHandler::auth() curl_easy_perform() failed: Error"
...
Any idea what I may have done wrong to get that error? I have the assign in my user-startup as instructed as well.
...
A4000T - CSPPC - Mediator
...



Initially I got the same error message.
I have also tried to run the DropBox handler (with license key) on my towered Amiga4000 with CyberstormPPC (060@50 mHz/PPC604e@200 mHz; 128 mB; OS 3.9 (BBs I & II)/WarpOS 16.1) and Mediator, but all I got was:

"cDropBoxHandler: :auth() curl_easy_perform() failed: Error".

So I mailed Norbert Kett and described the problem.
He replied:

Quote

Original by Norbert Kett:

Hello,

On 68060's, the 'dropbox-handler_102e.68k' and 'google-drive-handler_102e.68k' handlers should be used.

Regards,

 
Norbert Kett
Lead Programmer
4Flash Interactive



If you want to use the 68060 version of the handlers (..._102e.68k) you have to edit the related mountlist in Devs:Cloud/ and change the entry there from e.g.

GOOGLE:
               Handler = Devs:Google/google-drive-handler
               Stacksize = 4096
               Priority = 5
               GlobVec = -1
#


to

GOOGLE:
               Handler = Devs:Google/google-drive-handler_102e.68k
               Stacksize = 4096
               Priority = 5
               GlobVec = -1
#


(if you use DropBox, you have to edit the DropBox part accordingly, of course...)
That should do the trick.
In my case another problem existed, bringing up the next error message:

"cDropBoxHandler::auth() failed (first time login)
{"error_description": "code doesn`t exist or has expired". "error": "invalid_grant"}"

The code I had obtained from https://goo.gl/n7rfoa with a modern browser and copied into Devs:Cloud/dropbox_client_code had expired in the meantime (2 days had passed before being able to try).

My problem is that currently I have no WinPC here here at my home in Cologne with a modern browser, so I have to get the code from https://goo.gl/n7rfoa while I`m at work.
There I can copy it to my USB stick and when I`m back home I can copy the code to the DropBox_client_code-file and then give it a try.

I hope the new code I will retrieve today will not expire in the two hours between downloading it and arriving at home to test it.
Norbert Kett told me it should work then - so I keep my fingers crossed...
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« Reply #3 on: June 30, 2016, 08:23:58 AM »
Quote from: roomeo;803220


i get the same error. Did you sort this out somehow?



See my reply to Acill above...
I will try to support Norbert by editing the readme file and adding the 68060 Information, as well as by translating the readme file into German language.
He then might want to update the readme/liesmich file on AmiNet...
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« Reply #4 on: June 30, 2016, 08:56:50 AM »
Quote from: Dandy;803097
As I already stated in my previous post I am in contact with Norbert Kett.

Here is an extract of the relevant part of these mails:


"Dandy:
I'm highly interested in this OpenSSL v1.0.2e, as my YAM installation stopped working (connecting to the pop server), when German Telekom switched to the 'securepop' servers in April 2014. Even the latest YAM version (v2.09) with the latest AmiSSL version cannot connect to the securepop servers any longer.
 
I think my CyberstormPPC with 68060@50mHz and PPC 604e@200 mHz is sufficiently fast for OpenSSL v1.0.2e, isn't it?
My OS is OS 3.9 with BBs I & II/WarpOS 16.1, TCP/IP stack is registered version of MiamiDX.
 
Research on the web resulted in finding a rumor saying a new version of AmiSSL would be required to do the trick (http://www.amiga-news.de/de/forum/thread.php?id=35246&BoardID=1#36659 and http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=40718&forum=27#773611).

Norbert Kett:
OpenSSL v1.0.2e is the latest, full featured SSL library, it requires a fast 68k machine. (68040+)
AmiSSL is a good project, but not updated years ago, and it uses very old openssl. YAM should be recompiled with the latest openssl.
The OpenSSL what i use is integrated into the handler. This is unusable by other apps like Yam.
AmiSSL is a shared lib. As you wrote Yam uses openssl through AmiSSL. So AmiSSL need to be updated with the latest OpenSSL, but i see small chance for it in the near future. I contacted them to get their OpenSSL, but i did not get reply. So BSzili made fresh openssl ports.

Dandy:
Hmmm - maybe providing BSzili's port of Openssl v1.0.2e to the YAM dev team could help?
Maybe they can somehow incorporate this latest OpenSSL version in YAM%&$#?@!%&$#?@!%&$#?@!8230;
This could help a lot of YAM users!
Can you try to persuade BSzili to provide his port to the YAM dev team, please?
"

:idea:
Now that I found you here at Amiga.org I can ask you directly:
Could providing your port of OpenSSL v1.0.2e to the YAM dev team help them?
Maybe they can somehow incorporate this latest OpenSSL version in YAM%&$#?@!%&$#?@!%&$#?@!8230;
This could help a lot of YAM users and enable them to do their e-mails on their Miggies again (if it is really the fault of the obsolete AmiSSL)!
Or could it help if the AmiSSL dev team would base an update of AmiSSL on your new port of Openssl v1.0.2e?


As Norbert tried to contact the the AmiSSL developer team without success - obviously this is the actual e-mail address of the AmiSSL developer team: AmiSSL development (Jens Maus)


EDIT (June 30th, 2016):

Quote

Original by Dandy:

...
I'm highly interested in this OpenSSL v1.0.2e, as my YAM installation stopped working (connecting to the pop server), when German Telekom switched to the 'securepop' servers in April 2014.
...



Last Monday I got YAM working again.
I downloaded and installed the latest 'nightly build' of the 'YAM 2.10 dev'eloper version. With the proper settings I now can access my mails with my Miggy again...
« Last Edit: June 30, 2016, 09:03:39 AM by Dandy »
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)
 

Offline Dandy

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 1221
    • Show all replies
    • http://www.wiehltalbahn.de/en/
Re: AmigaOS 3.x i Google Drive handler
« Reply #5 on: June 30, 2016, 09:07:47 AM »
Quote

Original by Dandy:

...
I'm highly interested in this OpenSSL v1.0.2e, as my YAM installation stopped working (connecting to the pop server), when German Telekom switched to the 'securepop' servers in April 2014.
...



Last Monday I got YAM working again.
I downloaded and installed the latest 'nightly build' of the 'YAM 2.10 dev'eloper version.
With the proper settings I now can access my mails with my Miggy again...
All the best,

Dandy

Website maintained by me

If someone enjoys marching to military music, then I already despise him. He got his brain accidently - the bone marrow in his back would have been sufficient for him! (Albert Einstein)