Showing posts with label systemd. Show all posts
Showing posts with label systemd. Show all posts

Tuesday, 30 July 2019

Mounting OneDrive in Linux

In one of the posts about GNOME 3, I have mentioned that I had installed rclone app. I use it, to mount my OneDrive folder in my Linux home directory. After configuring OneDrive in rclone browser, I have configured the system to mount it, when I logged in. First, I had created a target directory in my home directory:
cd ~
mkdir OneDrive
Then, I have used systemd to create service which mounts my OneDrive folder. Command
systemctl --user edit OneDrive
creates service file in ~/.config/systemd/user/OneDrive.service and I have filled it with my gist:

Then I have enabled OneDrive service to run on login:
systemctl --user enable OneDrive
To run it immediately, You can issue the command:
systemctl --user start OneDrive