joseph zhong

Building a small PC [4/N]

Misc Setup Notes

Some more follow-ups

Rclone: GDrive Syncing

Setup RClone for a free CLI remote-agnostic rsync/mounting tool

Since it looks like nice GUI-based linux GDrive solutions are paid-only; I’ll just stick with this for the time-being, just want a place to mount a directory or two but maybe will end up paying the developers for their hard work on Linux (we’re all part of the ecosystem, paying each other)

Installation: https://rclone.org/downloads/
Setup: https://rclone.org/drive/#making-your-own-client-id

Ended up going through the full-setup to use my own GDrive API Client (10K calls/day) to avoid hitting limits across the global “free” account. Good thing I’ve done this stuff before otherwise I probably wouldn’t have had the patience to go through this

Setup GDrive Client

  1. https://console.cloud.google.com/apis/credentials
  2. Create a project, choose GDrive API, create a credentials
  3. Setup rclone
rclone config

Bunch of stuff later…

Setup Mount

cd 
mkdir josephz_cs/Papers/2022 # mount location to emulate selective-syncing
cd josephz_cs
touch josephz_cs.logs
cd Papers/2022
# --daemon to run in background
rclone mount josephz_cs:Papers/2022 . --daemon --log-file ~/josephz_cs/josephz_cs.logs --log-format=pid

# later to unmount, just click unmount in Files or run
fusermount -u ~/josephz_cs/Papers/2022