RClone
Mount GDrive to your system
How to Install
sudo -v ; curl https://rclone.org/install.sh | sudo bash # install rclone
sudo apt-get update && sudo apt-get install fuse # install fuse
Setting Fuse
enable (uncomment) user_allow_other on /etc/fuse.conf
Create New Config
rclone config
# then follow instructions
config will be created on ~/.config/rclone/rclone.conf and the content will be like this:
[GDrive1]
type = drive
client_id = 296935019271-if3gmhuj1rcforn6jgtvu6vh5l7oiim6.apps.googleusercontent.com
client_secret = LUE1q9NBWLH4Db8-yFPwDDq9
scope = drive
token = {"access_token":"ya29.a0Ael9sCPb2AeVMR9OX0ac90VYeuevJjtVScsJLdPBxtIG_1oT7NNRmtMu0eGSufViXjJsQmRDUbJQI0eVYfc_lPdYtzgi6P7DmcgAgHxmJXw63HFVqLbEdURq68MBFCGc8TmsgSs9K13vUZKiF_6mV1kL4dESaCgYKAQMSARISFQF4udJhSVfUktMEkH7nlXyxPnyVVg0163","token_type":"Bearer","refresh_token":"1//0gJUEfr20r2ZsCgYIARAAGBASNwF-L9IrYcHduc4GIBy12_4Rs5aJ1ZKHtVFPUhLeCWM90aEurA1yLXUtGjqnGIvgAUHwsJqnCf8","expiry":"2023-03-29T03:09:51.970728401+07:00"}
Create Mount Point
for example : /mnt/gdrive
Create Systemd file
filepath: .config/systemd/user/rclone.service
[Unit]
Description=Google Drive (rclone)
AssertPathIsDirectory=/mnt/gdrive
#After=plexdrive.service
[Service]
Type=notify
ExecStart=/usr/bin/rclone mount GDrive1: /mnt/gdrive \
--config=/home/urip/.config/rclone/rclone.conf \
--allow-other
# --dir-cache-time 5000h
ExecStop=/bin/fusermount -uz /mnt/gdrive
Restart=always
RestartSec=10
StandardOutput=file:%h/rclone_log_file
[Install]
WantedBy=default.target
Reload Systemd
systemctl --user daemon-reload
Enable Rclone Service
systemctl --user enable --now rclone.service