Hello everyone!
It's been a while since I created a post here.
I just want to write this up because I have my own businesses and I needed to mount these cloud storages to my file explorer, Thunar.
I use Arch Linux using i3wm.
I can confirm that this works for Google Drive, Box, and Dropbox. I also mounted 2 google drives.
First thing first install rclone.
You can use yay or just sudo pacman -S rclone
I would create a Parent Folder, RemoteCloud. I just like to have this to have them all in one place.
Create subfolders such as Dropbox, GDrive1, GDrive2, Box, etc.
Once you got those created, go to your terminal and type
rclone config
and create new remotes one by one. You will login and confirm that rclone will have access to your cloud storage. This is safe.
In order to mount you will have to run the following command line in your terminal:
rclone mount yourRemoteName: ~/path/to/subfolder
example.
rclone mount GDrive: ~/RemoteCloud/GDrive
Unfortunately, this is temporary. As soon as you quit your terminal this would disconnect all mounts.
I would go into the config file
my i3wm config file is located in
~/.config/i3/config
at the end of the file, I would just add
exec_always --no-startup-id rclone mount yourRemoteName: ~/path/to/subfolder
This is also a reminder for myself if I ever forget. Because I will forget it if I don't use it often enough.
Update:
It was painfully slow with Google Drive. Just going to a folder I would have to wait 5-10 seconds to see anything.
I used the OAuth2 and ClientID from google. Instruction is in rclone. So not going to put it here.
Now to use the flags and make it faster.
I added these to my i3 config file.
exec_always --no-startup-id rclone mount \
--bind 0.0.0.0 \
--umask=002 \
--gid=1002 \
--uid=1000 \
--allow-other \
--timeout=1h \
--poll-interval=15s \
--dir-cache-time=1000h \
--cache-dir=/opt/rclone/cache/gmedia \
--vfs-cache-mode=full \
--vfs-cache-max-size=150G \
--vfs-cache-max-age=12h \
yourdrive: ~/path/to/your/drive
The bind 0.0.0.0 is what make the biggest difference for me. It forces to use the ipv4. Also the backslash \ is so you can continue the code for each line. i3wm config typically only allows 1 line per command and since this is a very long command, this is a way to make it nice and clean.
Top comments (0)