Google-drive Filemanager
Posted: Wed 13 Dec 2017, 18:09
*** Google-drive Filemanager ***
==============================================================
EDIT 2018-01-03: For a completely new version (v2, not compatible with earlier versions), see here:
http://murga-linux.com/puppy/viewtopic. ... 148#979148
2018-01-11, update of v2, multiple file section supported from main GUI, see:
http://murga-linux.com/puppy/viewtopic. ... 902#979902
2019-03-16, update of v2, see:
http://murga-linux.com/puppy/viewtopic. ... 85#1022085
2019-03-24, update of v1, see (and below links to portable v1 updated to v0.3.3):
http://murga-linux.com/puppy/viewtopic. ... 51#1023051
==============================================================
Very, very similar to: Dropbox Filemanager from mikeb, I took his GUI concept of a dual pane filemanager (thanks mikeb !!), but then made it for google-drive.
It makes use of the "drive" command line program (it's included in the packages for download below), see here:
https://github.com/odeke-em/drive
(it has tons of options, just basic options are used in Google-drive Filemanager)
Same as for Dropbox Filemanager, this has limitation also that only one file or folder can be selected for upload/download/delete (gtkdialog limitation)
One significant difference is that the 'profile' should be an existing directory (rather than just a name), e.g. /root or /mnt/sda2 (see also info by clicking Help button).
Also: downloading is restricted to that directory (or a subfolder of that directory)
First thing you need to do is to select an existing directory, then click 'New Profile'. A terminal will open and follow the instructions by pasting the URL in your browser, log in at your Google account, click 'Allow', copy the authorization code and paste in the terminal.
EDIT: To explain better: Select the (long) URL in the terminal, fire up your browser and 'paste' it in the address bar by doing mouse middle-click, login if required, click 'Allow', then just select the authorization code, go to the earlier opened terminal and 'paste' it in by mouse middle-click (and press ENTER).
(not sure, this can be hard to do when using touchpad, I always use mouse)
Note: 'Share Url' will give a link for direct download of a file , but the parent folder needs to be marked as 'Shared', otherwise it won't work
(this program can't do that at the moment, so it should be done from google-drive in browser)
(EDIT: changed that in v0.2.0, see below)
Update: v0.2.0
- 'Share Url' will automatically mark file or folder as shared (anyone with the link can view or download
- Added button 'Unshare' to undo that (NOT anyone with the link can view or download, login is required)
- Added tooltips for some buttons and changed Help text (according to above changes)
Update: Version 0.3.2, changes (compared to v0.3.1):
- No absolute dependency anymore for 'yad', if yad is installed there will be option for multiple file selection, if not, the program still runs, but supports single file selection only (thanks mikeb !)
- Fix for 'Add all', uploads folders also now (previously only files)
- Also 'Add all' will be processed in one terminal now (previously was spawning terminal for every file)
- If yad installed (and nothing selected in main GUI), the 'Add' button will give "file-selection" (previously was list) which is better IMO, to be able to browse files or folders for upload from everywhere
Download: googledrivegui pet packages v0.3.2: (from google-drive URL links of course, where else )
32-bit: https://drive.google.com/uc?export=down ... hFb0KWTlHb
64-bit: https://drive.google.com/uc?export=down ... gQp1yem8BH
Deb packages v0.3.2 (for e.g. DebianDog, Stretchdog, Xenialdog): :
32-bit: https://fredx181.github.io/StretchDog/i ... 2_i386.deb
64-bit: https://fredx181.github.io/StretchDog/a ... _amd64.deb
Here's also a portable version, recommended to extract at the top dir level of a partition, e.g. /mnt/sda2 (to have that partition as 'profile' and have download access to all that (including it's subfolders)
This contains the files 'gdrive_gui' (the executable script to launch the program) and 'drive' (a hidden directory '.gd' and hidden config file '.gdriverc' will be created in (same) profile dir after initiated profile dir).
Updated portable to v0.3.3: see info: http://murga-linux.com/puppy/viewtopic. ... 51#1023051
Portable v0.3.3:
32-bit .tar.gz: https://drive.google.com/uc?export=down ... 4bohZFIPNw
64-bit .tar.gz: https://drive.google.com/uc?export=down ... ty6wJPUAuG
See here for experimental version 0.3.0, with support for selecting multiple items (continued with v0.3.1. and higher)
Tested on Tahrpup (x-tahr) and Stretchdog, (and D-pup Stretch), not sure it works on other (older) puppies
It pops up rxvt or xterm for upload/download/delete, about the parameters, I'm not sure, please tell me if there's no terminal showing in case of download, upload, delete, and I'll try to fix it.
Update: Mike Walsh tested v0.2.0 on many puppies (see further in this thread): Tahr64 6.0.5, Tahr 6.0.6 (uefi), Xenialpup 7081, Upup Raring, Slacko 570, Racy 5.5, Lucid.
Works on all, but there can be a problem with authentication, (as is on Upup Raring), all that's required then is to update ca-certificates, Mike provided a pet for it, download:
http://www.mediafire.com/file/rc2e6drbf ... update.pet
EDIT: Also he provided mirrors for googledrivegui , see here: http://murga-linux.com/puppy/viewtopic. ... 447#977447
Fred
==============================================================
EDIT 2018-01-03: For a completely new version (v2, not compatible with earlier versions), see here:
http://murga-linux.com/puppy/viewtopic. ... 148#979148
2018-01-11, update of v2, multiple file section supported from main GUI, see:
http://murga-linux.com/puppy/viewtopic. ... 902#979902
2019-03-16, update of v2, see:
http://murga-linux.com/puppy/viewtopic. ... 85#1022085
2019-03-24, update of v1, see (and below links to portable v1 updated to v0.3.3):
http://murga-linux.com/puppy/viewtopic. ... 51#1023051
==============================================================
Very, very similar to: Dropbox Filemanager from mikeb, I took his GUI concept of a dual pane filemanager (thanks mikeb !!), but then made it for google-drive.
It makes use of the "drive" command line program (it's included in the packages for download below), see here:
https://github.com/odeke-em/drive
(it has tons of options, just basic options are used in Google-drive Filemanager)
Same as for Dropbox Filemanager, this has limitation also that only one file or folder can be selected for upload/download/delete (gtkdialog limitation)
One significant difference is that the 'profile' should be an existing directory (rather than just a name), e.g. /root or /mnt/sda2 (see also info by clicking Help button).
Also: downloading is restricted to that directory (or a subfolder of that directory)
First thing you need to do is to select an existing directory, then click 'New Profile'. A terminal will open and follow the instructions by pasting the URL in your browser, log in at your Google account, click 'Allow', copy the authorization code and paste in the terminal.
EDIT: To explain better: Select the (long) URL in the terminal, fire up your browser and 'paste' it in the address bar by doing mouse middle-click, login if required, click 'Allow', then just select the authorization code, go to the earlier opened terminal and 'paste' it in by mouse middle-click (and press ENTER).
(not sure, this can be hard to do when using touchpad, I always use mouse)
Note: 'Share Url' will give a link for direct download of a file , but the parent folder needs to be marked as 'Shared', otherwise it won't work
(this program can't do that at the moment, so it should be done from google-drive in browser)
(EDIT: changed that in v0.2.0, see below)
Update: v0.2.0
- 'Share Url' will automatically mark file or folder as shared (anyone with the link can view or download
- Added button 'Unshare' to undo that (NOT anyone with the link can view or download, login is required)
- Added tooltips for some buttons and changed Help text (according to above changes)
Update: Version 0.3.2, changes (compared to v0.3.1):
- No absolute dependency anymore for 'yad', if yad is installed there will be option for multiple file selection, if not, the program still runs, but supports single file selection only (thanks mikeb !)
- Fix for 'Add all', uploads folders also now (previously only files)
- Also 'Add all' will be processed in one terminal now (previously was spawning terminal for every file)
- If yad installed (and nothing selected in main GUI), the 'Add' button will give "file-selection" (previously was list) which is better IMO, to be able to browse files or folders for upload from everywhere
Download: googledrivegui pet packages v0.3.2: (from google-drive URL links of course, where else )
32-bit: https://drive.google.com/uc?export=down ... hFb0KWTlHb
64-bit: https://drive.google.com/uc?export=down ... gQp1yem8BH
Deb packages v0.3.2 (for e.g. DebianDog, Stretchdog, Xenialdog): :
32-bit: https://fredx181.github.io/StretchDog/i ... 2_i386.deb
64-bit: https://fredx181.github.io/StretchDog/a ... _amd64.deb
Here's also a portable version, recommended to extract at the top dir level of a partition, e.g. /mnt/sda2 (to have that partition as 'profile' and have download access to all that (including it's subfolders)
This contains the files 'gdrive_gui' (the executable script to launch the program) and 'drive' (a hidden directory '.gd' and hidden config file '.gdriverc' will be created in (same) profile dir after initiated profile dir).
Updated portable to v0.3.3: see info: http://murga-linux.com/puppy/viewtopic. ... 51#1023051
Portable v0.3.3:
32-bit .tar.gz: https://drive.google.com/uc?export=down ... 4bohZFIPNw
64-bit .tar.gz: https://drive.google.com/uc?export=down ... ty6wJPUAuG
See here for experimental version 0.3.0, with support for selecting multiple items (continued with v0.3.1. and higher)
Tested on Tahrpup (x-tahr) and Stretchdog, (and D-pup Stretch), not sure it works on other (older) puppies
It pops up rxvt or xterm for upload/download/delete, about the parameters, I'm not sure, please tell me if there's no terminal showing in case of download, upload, delete, and I'll try to fix it.
Update: Mike Walsh tested v0.2.0 on many puppies (see further in this thread): Tahr64 6.0.5, Tahr 6.0.6 (uefi), Xenialpup 7081, Upup Raring, Slacko 570, Racy 5.5, Lucid.
Works on all, but there can be a problem with authentication, (as is on Upup Raring), all that's required then is to update ca-certificates, Mike provided a pet for it, download:
http://www.mediafire.com/file/rc2e6drbf ... update.pet
EDIT: Also he provided mirrors for googledrivegui , see here: http://murga-linux.com/puppy/viewtopic. ... 447#977447
Fred