Add rclone to mount on startup

I am on Ubuntu 19.04 and currently manual type this two command to mount my google drive.

"screen -S rclone"
and "rclone mount -vvv --allow-other --transfers 50 --buffer-size 256M gdrive: /mnt/shared/gdrive"

How can I get Ubuntu to do that at startup. I like to do it in a screen so i can see what is uploading or download.

thanks

Probably the easiest way is to write this in a shell script and run it from your desktop startup which you'll find a GUI for in the desktop settings. This will run whenever you log in.

You can also run scripts from cron on machine start with

@reboot /path/to/script

I use this technique quite often.

The hardcore way would be to do it with systemd

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.