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 .
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?
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.
I followed the exact same process Here on a minix u22-xjmax.
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.
system
Closed
13 May 2024 17:52
17
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
xmlcom
29 December 2024 04:30
19
Continuing the discussion from Help install rclone on omega21 :
Thanks to @vpeter Got one gdrive running using above instructions.
How do i add a 2nd,3rd remote share etc . Do you name 2nd remote rclone2.conf?
Any help will be really appreciated, thanks.
vpeter
29 December 2024 08:21
20
You will have to make new conf files and new services. With only change between them conf file name.
xmlcom
1 January 2025 13:43
21
Hi @vpeter happy new year to you & all CE team.
I updated rclone.conf to have multiple accounts under one conf file. It has 1 gdrive + 3 mega.nz accounts. I then created a service file for each(4 in total) .
But only 2 accounts is working-1 gdrive + 1st mega.nz account. The other two mega.nz accounts
folder is created but is empty & doesn’t show my files.
Thanks for your help.
xmlcom
6 January 2025 02:27
22
Hi anyone able to help me on this please? Thanks
vpeter
6 January 2025 07:46
23
Run rclone from comsole to see what errors you get. Or check by
journalctl -l | paste
and post url.