Help install rclone on omega21

Hello everyone, anyone got step by step guide to get rclone on omega please?

Followed this guide:Is it possible to create a symlink in /usr/bin?

And installed all necessary via entware, and copied the rclone.conf from android as Coreelec does not have web browser but still couldn’t get it to work :sleepy:.

Any help would be appreciated, thanks.

Why not using rsync which is part of system tools I think?

Thanks and correct me if I am wrong but isn’t rsync mainly for backups (server-clients)? Can you mount it as local storage?

Also do you know how to pm here. The link above is to a closed thread but I believe that person got it working on coreelec and it will be great if he or she can help me.

You are using NE or NG image?

NG Minix u22-xj max.

Update. So i manage to mount rclone using that same method in above link, but their service to execute at start does not work, any help with this please, thank you.

I think you will have to provide much more info for any useful help.
Like this for start

journalctl -l | paste

https://wiki.coreelec.org/coreelec:ce_support

Hi thanks for the help.

  1. I followed the exact same process Here on a minix u22-xjmax.

  2. I can then mount rclone manually using this code:

/storage/.config/rclone/rclone mount D[My Gdrive]: [destination folder]

3 I want now to now autostart on boot rclone mount but this is where I’m stuck. The link above uses this service:

[Unit]
Description=RClone Gdrive
After=network-online.target
[service]
Type=simple
Environment=PATH=/storage/.opt/bin:/.opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStartPre=/bin/mkdir -p /var/media/Gdrive
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/logs
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/cache
ExecStart=/storage/.config/rclone/rclone mount
--log-file /storage/.config/rclone/logs/rclonemount.log
--log-level INFO
--allow-other
--allow-non-empty
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time=48h
--buffer-size=64M
--attr-timeout=1s
--vfs-read-chunk-size=64M
--vfs-read-chunk-size-limit=2G
--vfs-cache-max-age=5m
--vfs-cache-mode=writes
--cache-dir /storage/.config/rclone/cache
--config=/storage/.config/rclone/rclone.conf
Gdrive: /var/media/Gdrive
ExecStop=/bin/fusermount -uz /var/media/Gdrive
Restart=on-abort
[Install]
WantedBy=default.target

I tried to emulate it and place it in config/system.d folder and enable/start it with

systemctl enable gdrive.service
systemctl start  gdrive.service 

But keep getting this error on system status:

○ [name].service - RClone [name]
     Loaded: bad-setting (Reason: Unit [name].service has a bad u
○ [name].service - RClone [name]
     Loaded: bad-setting (Reason: Unit [name].service has a bad unit file setting.)
     Active: inactive (dead)
Apr 29 12:06:12 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.
Apr 29 12:06:19 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.
Apr 29 12:06:19 CoreELEC systemd[1]: [name].service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Apr 29 12:07:12 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.

Try with this service file - your had ExecStart directive on multiple lines without continuation char at end of the line. But probably was not an error.

But service must be [Service].

[Unit]
Description=RClone Gdrive
After=network-online.target

[Service]
Type=simple
Environment=PATH=/storage/.opt/bin:/.opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStartPre=/bin/mkdir -p /var/media/Gdrive
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/logs
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/cache
ExecStart=/storage/.config/rclone/rclone mount \
  --log-file /storage/.config/rclone/logs/rclonemount.log \
  --log-level INFO \
  --allow-other \
  --allow-non-empty \
  --tpslimit 10 \
  --tpslimit-burst 10 \
  --dir-cache-time=48h \
  --buffer-size=64M \
  --attr-timeout=1s \
  --vfs-read-chunk-size=64M \
  --vfs-read-chunk-size-limit=2G \
  --vfs-cache-max-age=5m \
  --vfs-cache-mode=writes \
  --cache-dir /storage/.config/rclone/cache \
  --config=/storage/.config/rclone/rclone.conf \
  Gdrive: /var/media/Gdrive
ExecStop=/bin/fusermount -uz /var/media/Gdrive
Restart=on-abort

[Install]
WantedBy=default.target
1 Like

service must be [Service].

1 Like

You’re a star, It works now!

Many thanks for all your help, really appreciate it.

1 Like

Hi if i want multiple cloud services how do i do that? Thanks.

I think you will have to write one service file per share.