this post was submitted on 18 Jan 2024
56 points (87.8% liked)

Linux

48003 readers
1430 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I've been using Google Drive in Windows for about a decade and have a good workflow. I recently transitioned to Linux but cannot seem to reliably connect my drive to the filesystem. My work provides unlimited Drive space and since it's for work I have shared directories with coworkers that I need access to every day. Hence, I'm kind of tied to GDrive.

Is there a reliable method of doing this? Rclone seems to be what I want but it seems to disconnect regularly, and often doesn't upload the changes I make which defeats the purpose.

Do Linux users just not use Drive?

all 48 comments
sorted by: hot top controversial new old
[–] folkrav@lemmy.ca 53 points 9 months ago (3 children)
[–] ElderWendigo@sh.itjust.works 7 points 9 months ago

And you just know that the tools to access Google Drives natively in Linux must already exist and have been in use internally at Google for a decade, but Alphabet can't figure out how to profit so we'll never see it.

[–] L0wded_@sh.itjust.works 2 points 9 months ago

LMAO that’s just fucking stupid man

[–] BCsven@lemmy.ca 26 points 9 months ago* (last edited 9 months ago) (3 children)

If you use GNOME DE you go to the online accounts dialog, click Google and setup with your credentials, it adds GDrive to Nautilus, integrates gmail and calendar into evolution client.

[–] Father_Redbeard@lemmy.ml 11 points 9 months ago (1 children)

Came here to say the same. Works pretty damn well too. I also have mine connected to a Nextcloud sever because I'm trying to ditch the big G

[–] BCsven@lemmy.ca 8 points 9 months ago (2 children)

yeah, I am hoping thry add Proton Drive account to that list of online services

[–] Father_Redbeard@lemmy.ml 3 points 9 months ago (1 children)

Seafile would be sick too, but very unlikely. They have a SeaDrive client, but it's not quite as nicely integrated as the Gnome stuff.

[–] BCsven@lemmy.ca 2 points 9 months ago

Yeah I have the seadrive setup also. But GNOME accounts is very well done

[–] maxprime@lemmy.ml 6 points 9 months ago (1 children)

Are applications able to write directly to the directory this mounts to? Could Codium add this folder?

[–] BCsven@lemmy.ca 7 points 9 months ago

It shows in the Mounts section of nautilus, for apps that don't recognize that you may have to go to /run/media/username/mount if it doesn't show up in the Other section of file pickers

[–] cyborganism@lemmy.ca 4 points 9 months ago (3 children)

I use KDE and I don't think there's something similar, or am I mistaken?

[–] slacktoid@lemmy.ml 10 points 9 months ago

Thru the networks tab on dolphin. Maybe youll need to install some plugin too. But it works fine.

[–] intrapt@sh.itjust.works 6 points 9 months ago (1 children)
[–] cyborganism@lemmy.ca 3 points 9 months ago

Oh cool! I'm saving this for later.

[–] BCsven@lemmy.ca 1 points 9 months ago

I'm not aware of what is available for KDE. i didn't see it when I tried KDE, but maybe somebody has successfully used the packages to setup something similar

[–] geekworking@lemmy.world 13 points 9 months ago (2 children)

Not free, but I have been using Insync for years and it works well. $30 one time cost, but worth it.

[–] CodingCarpenter@lemm.ee 2 points 9 months ago

This is what I use. Though I got my email wrong and had to buy it twice...

[–] mactan@lemmy.ml 2 points 9 months ago

I got a free key from a friend and insync has always worked well for me

[–] Father_Redbeard@lemmy.ml 4 points 9 months ago

That seems strange regarding rclone. I've used that with success with G drive, backblaze B2, and I drive e2. Any errors or logs you can see?

[–] meteokr@community.adiquaints.moe 4 points 9 months ago* (last edited 9 months ago)

I've used it in the past with rclone, just mounting it with a systemd service on boot, and treating it like another folder on the system. Does it give you any logs as to why its not connecting right?

[–] the_q@lemmy.world 4 points 9 months ago

The best way I've found is to use a NAS with the ability to sync with Google drive then mount that folder as an SMB share in your fstab.

[–] dustyData@lemmy.world 4 points 9 months ago* (last edited 9 months ago) (2 children)

My google drive is just a special folder on my file explorer. My account is configured with the system account manager. It shows me all my Drive files and when I want to open one it automatically downloads and opens the file seamlessly as if it were in my PC. If I create, move or change folders, add new files, etc. It automatically syncs it with my Drive.

This is on Linux Mint with Cinnamon DE.

[–] StefanT@lemmy.world 3 points 9 months ago

I use Gnome but Cinnamon and Gnome are not that different in that topic IIRC. I have to mount the remote folder via file manager (Nautilus) then I can access the files in Code.

[–] maxprime@lemmy.ml 2 points 9 months ago (2 children)

Can you open Drive files in Codium?

[–] jerrythegenius@lemmy.world 2 points 9 months ago (1 children)
[–] maxprime@lemmy.ml 2 points 9 months ago (1 children)

Hmm. It’s not working in Manjaro for me. Is it as easy as just opening any other folder? I have Drive added in KDE and can see my files but I cannot add a folder from drive in Codium.

[–] jerrythegenius@lemmy.world 2 points 9 months ago

I'm not sure about kde sorry-- I'm using it in fedora w/gnome

[–] dustyData@lemmy.world 2 points 9 months ago* (last edited 9 months ago)

My guess is no, since the folder is a magical protocol address that I assume VScode/codium wouldn't understand for they insist on handling the directory hierarchy directly. Haven't really troubleshoot that workflow though. I use exclusively Git with GitHub/GitLab. So there's no need for GDrive with an IDE for me. My Drive is exclusively for personal files which most other Linux-as-a-first-class-citizen applications (LibreOffice, PDF readers, photo viewers and editors) just use as the OS gives it to them without issue.

ADD: I would imagine there's an additional complication depending on whether Codium is running from repository or Flatplak.

[–] mozz@mbin.grits.dev 2 points 9 months ago (1 children)

Is gcs-fuse not suitable? I haven't used this but I would guess that it works fairly well.

[–] Cwilliams@beehaw.org 2 points 9 months ago (1 children)

It appears that this only supports Google Cloud storage buckets, not Google Drive

[–] mozz@mbin.grits.dev 2 points 9 months ago

My bad, you are correct. For some reason I misread.

There is google-drive-ocamlfuse. Personally, even though the article recommends rclone, I would have started with ocamlfuse; something about the whole interaction with rclone seems flaky-sounding to me (the fact that it's not just fuse commands, but this whole other tool you have to interact with for doing stuff like 'ls' just seems weird). But like I say I have no real experience to be sharing; this is just me searching + sending to you.