Announcement

Collapse
No announcement yet.

Google Drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google Drive

    In case anybody is interested: Google Drive has a linux CLI sync program called "grive" that manually syncs any folder you choose with your G-Drive. I thought about setting up auto-syncing using inotify, but opted for manual syncing instead.

    I like servicemenus (those right-click options) but I wanted the option to be only available in the synced folder. I did this by creating a custom .directory (Thanks kubicle!) in the synced folder and added this text to it:


    Code:
    [Desktop Entry]
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,inode/directory
    Type=Service
    MimeType=inode/directory;
    Actions=gsync;
    
    [Desktop Action gsync]
    Name=Sync with Google Drive
    Icon=sync-client-updating
    Exec=grive -p ~/Downloads/grive
    Now when I right-click on the dolphin pane in the synced folder I see this:
    Attached Files
    Last edited by oshunluvr; Mar 22, 2014, 10:24 AM.

    Please Read Me

    #2
    I use isync.
    Attached Files
    Last edited by richb; Mar 22, 2014, 10:04 AM. Reason: Added image
    Linux because it works. No social or political motives in my decision to use it.
    Always consider Occam's Razor
    Rich

    Comment


      #3
      You wrote isync. iPhone user are you? Sorry - no Apple products here!

      Insync: I saw that, but went free instead.

      Please Read Me

      Comment


        #4
        Originally posted by oshunluvr View Post
        You wrote isync. iPhone user are you? Sorry - no Apple products here!

        Insync: I saw that, but went free instead.
        Oops! I will eat an apple core. You mean free as in Open Source, not money.
        Linux because it works. No social or political motives in my decision to use it.
        Always consider Occam's Razor
        Rich

        Comment


          #5
          https://www.insynchq.com/pricing



          Free of cost for fifteen days according to their website.

          Please Read Me

          Comment


            #6
            Originally posted by oshunluvr View Post
            https://www.insynchq.com/pricing



            Free of cost for fifteen days according to their website.
            I first installed as a beta. I have been using it a long time, so may have eventually paid for it, and just forgot. Thanks for clarifying.
            Linux because it works. No social or political motives in my decision to use it.
            Always consider Occam's Razor
            Rich

            Comment


              #7
              For an easy setup, install and desktop integration of grive on Unity, Gnome, KDE, Xfce, Cinnamon and LXDE see

              http://www.thefanclub.co.za/how-to/u...nd-grive-tools

              I installed grive initially from synaptic but neglected to create a folder in my home directory, so when i first activated grive it began uploading/ syncing my home folder.

              Of course I closed the terminal and deleted the unwanted files online that had uploaded ,then installed Grive Tools via ppa repository and now have an updated grive with
              Google Drive folder and a Google Drive Indicator in the system tray


              Comment


                #8
                "Grive"? LOL.

                Comment


                  #9
                  Yeah, the default folder it wants you to use is also "grive." I think "grieve" is the actual correct spelling, LOL. Clearly, the marketing group was not made up of actual marketing types.

                  Please Read Me

                  Comment


                    #10
                    Originally posted by oshunluvr View Post
                    In case anybody is interested: Google Drive has a linux CLI sync program called "grive" that manually syncs any folder you choose with your G-Drive. I thought about setting up auto-syncing using inotify, but opted for manual syncing instead.

                    I like servicemenus (those right-click options) but I wanted the option to be only available in the synced folder. I did this by creating a custom .directory (Thanks kubicle!) in the synced folder and added this text to it:


                    Code:
                    [Desktop Entry]
                    X-KDE-ServiceTypes=KonqPopupMenu/Plugin,inode/directory
                    Type=Service
                    MimeType=inode/directory;
                    Actions=gsync;
                    
                    [Desktop Action gsync]
                    Name=Sync with Google Drive
                    Icon=sync-client-updating
                    Exec=grive -p ~/Downloads/grive
                    Now when I right-click on the dolphin pane in the synced folder I see this:
                    Like it!

                    Of course, it took me a few minutes to figure out how to install grive:

                    From (K)Ubuntuguide ( http://ubuntuguide.org/wiki/Template...oud_storage.29 ) :

                    Google Drive ( https://drive.google.com/ ) is a free but proprietary online remote hosting service for private files (similar to the free open-source alternative SparkleShare). Be careful of any storage solution not under your complete control (especially proprietary solutions); they are insecure and should be used for temporary storage of non-critical files only (as an alternative to sending files by email).

                    * Grive ( http://www.lbreda.com/grive ) is a free, open-source command-line API for Linux systems to interface with Google Drive.

                    :* Download and install a 32-bit or 64-bit .deb package from http://www.ubuntuupdates.org/package...ain/base/grive .

                    :* Alternatively, a method for installation from a private PPA repository ( https://launchpad.net/~nilarimogard/+archive/webupd8 ) is also provided by WebUpd8 ( http://www.webupd8.org/2012/05/grive...ve-client.html ).

                    UbuntuGuide/KubuntuGuide

                    Right now the killer is being surrounded by a web of deduction, forensic science,
                    and the latest in technology such as two-way radios and e-mail.

                    Comment


                      #11
                      Resurrecting my own old thread...

                      This works great for Google Drive access: http://www.linuxtechi.com/mount-google-drive-in-ubuntu/

                      Please Read Me

                      Comment


                        #12
                        Thanks, oshunluvr, I switched my iPhone from iCloud to GDrive and use Chrome to access it.
                        https://drive.google.com/drive/my-drive

                        Having this app will make it easier.

                        EDIT:
                        Opps!
                        The following packages have unmet dependencies: grive-tools : Depends: grive (>= 0.3) but 0.2.0-1.1 is to be installed
                        E: Unable to correct problems, you have held broken packages.
                        Wrong grive in the repository.

                        EDIT-EDIT:
                        I downgraded to the 0.2~ version and it installed. When I ran it system monitor showed 3 -10% activity but nothing was actually happening. The command froze on "Reading local Directories".
                        So I deleted it.
                        Last edited by GreyGeek; Aug 19, 2015, 08:43 PM.
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #13
                          I use and enjoy google-drive-ocamlfuse. It's not particularly fast (it seems to be slower than using Google Drive in a browser) but I like the fact that it integrates seamlessly with your regular folders. Under 14.04, enter the following commands:

                          Code:
                          sudo apt-add-repository ppa:alessandro-strada/ppa
                          sudo apt-get update
                          sudo apt-get install google-drive-ocamlfuse
                          After it has installed you need to run:

                          Code:
                          google-drive-ocamlfuse
                          which opens your default browser where you need to authorize your Google account to access ocamlfuse. After that, make a folder anywhere you want (I use ~/googledrive but that's totally subjective) and issue the following:

                          Code:
                          google-drive-ocamlfuse ~/googledrive
                          and then you can access your GDrive from the command line or from Dolphin just as if it were a folder on your local HDD.

                          EDIT: After a reboot you will need to issue the "google-drive-ocamlfuse ~/googledrive" in order to access your GDrive, so if you use GDrive a lot you may want to add that command to your startup.
                          Last edited by GKNByNW; Aug 19, 2015, 08:34 PM. Reason: Addt'l info

                          Comment


                            #14
                            So, if I drop a file into googledrive it will automatically upload to the cloud? And, if I upload from another device that file will download to googledrive automatically?
                            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                            – John F. Kennedy, February 26, 1962.

                            Comment


                              #15
                              Originally posted by GreyGeek View Post
                              So, if I drop a file into googledrive it will automatically upload to the cloud? And, if I upload from another device that file will download to googledrive automatically?
                              Yes, if you drop a file or folder into your ~/googledrive (or whatever folder you have designated for ocamlfuse) it will automatically upload to your GDrive. As far as downloading to that folder, it doesn't download TO your PC unless/until you access it. In other words, think of ocamlfuse as a visual representation of what is on your GDrive. For example, if I have a .odt document on my GDrive and I double-click it, it will open locally in OpenOffice. When I am done editing and go to save the file, it will seamlessly save to my GDrive folder.

                              Comment

                              Working...
                              X