Announcement

Collapse
No announcement yet.

Mount your Google Drive storage and access it with Dolphin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mount your Google Drive storage and access it with Dolphin

    Found this recently and thought others might find it useful/ I have Google Fi for my cell and they include 100GB online storage. Since Box dropped davfs support it's no lnger very useful from the desktop so I went looking for other options and found this:
    How to mount your Google Drive.

    The instructions include how to do this on Windows also but TL/DR so here's the needed steps boiled down:

    1) Install ocamlfuse:
    sudo add-apt-repository ppa:alessandro-strada/ppa
    sudo apt update && sudo apt install google-drive-ocamlfuse​

    2) Run ocamlfuse in the command line:
    google-drive-ocamlfuse
    A sign-in window will open in your browser automatically where the user needs to sign-in and provide required access.
    Authorize the ocamlfuse system to access files and folders on your google drive.

    3) Make a mount point for Google drive:
    mkdir ~/Gdrive

    4) Mount google drive:
    google-drive-ocamlfuse ~/googledrive

    You can now open the Gdrive folder with Dolphin and access or add/delete files to/from your Google drive

    Unmounting can be done with:
    fusermount -u ~/Gdrive

    but at least here, plain ole' umount works:
    umount ~/Gdrive

    Last edited by oshunluvr; Jul 27, 2023, 05:58 AM.

    Please Read Me

    #2
    Normally, I'd suggest the native KDE tool (kio-gdrive -- may need to be installed) via System Settings >>Online Accounts, but it looks like this recently broke. My existing account still works, but adding a new one won't, or adding my account on a different computer. Seems to be an issue across Plasma versions and distros.
    I recall similar issues with the ocamlfuse tool in the distant past, but the devs were quick to get on it. Who knows when the kio-gdrive folks will get to fixing this current breakage.

    I have been using the kio-gdrive option for a few years now. But it isn't useful right now for those wanting to start using it.

    Comment


      #3
      Yeah, I'm aware of all that, thus offering this alternative. I'm hoping it won't break as often or at least the dev will be quicker to fix it.

      Please Read Me

      Comment


        #4
        get this when I try;

        E: The repository 'https://ppa.launchpadcontent.net/alessandro-strada/ppa/ubuntu mantic Release' does not have
        a Release file.
        N: Updating from such a repository can't be done securely, and is therefore disabled by default.
        N: See apt-secure(8) manpage for repository creation and user configuration details.

        Comment


          #5
          Originally posted by brianharr View Post
          get this when I try;

          E: The repository 'https://ppa.launchpadcontent.net/alessandro-strada/ppa/ubuntu mantic Release' does not have
          a Release file.
          N: Updating from such a repository can't be done securely, and is therefore disabled by default.
          N: See apt-secure(8) manpage for repository creation and user configuration details.

          The maintainer of the ppa hasn't created packages for Mantic yet.

          Comment


            #6
            I've been having issues with Google Drive in online accounts so after a forum search I found this thread. I first checked to see if the ppa supported neon and it did. Following the steps I noticed an issue. In step 3, you have the folder "Gdrive" created but when you're mounting, you're mounting to "googledrive" instead. If someone doesn't know better and follow step 4, they'd find out that they'd get an error. I think you should fix either step for consistency. For me, I just replaced "googledrive" with "Gdrive" that I created but I'm getting an error.
            Code:
            google-drive-ocamlfuse /home/emm/Gdrive
            Error: You should specify a client id (-id) and a client secret (-secret)​
            Did I miss something? Never mind. I found the solution here.
            Last edited by Princey; Jul 30, 2024, 06:38 PM. Reason: Found the answer.
            Challenges are what that keeps us from the borderline of boredom in life's journey. Linux user no. 419401 currently running Kubuntu 24.04
            _______________________________________________
            Current System: Beelink Mini PC, AMD Ryzen 7 5800H 8 Core(Up to 4.4GHz), 32GB DDR4 RAM 1TB NVME M.2 SSD, SER5 MAX Mini Desktop Computer with TCL BeyondTV5 serving as my monitor. ​

            Comment


              #7
              Do not forget RClone. Been using it for years and works great.

              Vektor

              Comment


                #8
                Originally posted by Princey View Post
                In step 3,
                of what/where?

                Read the docs
                https://github.com/astrada/google-drive-ocamlfuse
                and more importantly:
                https://github.com/astrada/google-dr.../Authorization

                Code:
                google-drive-ocamlfuse -id xxxxxxxxxx.apps.googleusercontent.com -secret XXX-YYY-ZZZ
                Oops...I see you saw the docs


                Comment


                  #9
                  I would like to know if this application is safe before installing it. As for kio-gdrive, I'm sorry to say that it doesn't work on kubuntu 24-04, it keeps loading infinitely. I don't know if they will fix the error. Before in version 22.04 it worked fine but I have updated to 24.04 and I can't sync Google Drive anymore.

                  Comment


                    #10
                    Originally posted by feveal View Post
                    I would like to know if this application is safe before installing it. As for kio-gdrive, I'm sorry to say that it doesn't work on kubuntu 24-04, it keeps loading infinitely. I don't know if they will fix the error. Before in version 22.04 it worked fine but I have updated to 24.04 and I can't sync Google Drive anymore.
                    Google keeps breaking things. usually, existing setups seem to continue to work, but adding an account from scratch doesn't. Try adding a new one on 22.04. I can't, but my original setup from two years ago still works.

                    I don't think it will be fixed until Kubuntu moves to Plasma 6 (24.10), AND KDE fix kio-gdrive, AND KDE backport any fixes back to the older Plasma 5.27 series. Which is a big unknown, since Plasma 6.2 is fairly close.

                    https://bugs.kde.org/buglist.cgi?com...resolution=---


                    google-drive-ocamlfuse has been around since 2013, kio-gdrive may be younger.

                    Comment

                    Working...
                    X