Last verified on Synology DSM 7.0.1.
- install MEGAcmd package in DSM package center
- enable user home service (Control Panel → User & Group → Advanced → User Home)
- set up MEGAcmd so you can run
mega-cmd-serverfrom your Synology terminal prompt and see the server start (then use Ctrl-C to stop it)
- Edit the provided mega-cmd-server.service file to replace
username(inUserandWorkingDirectory) with your Synology user name - Place the file in /etc/systemd/system (e.g.
sudo mv mega-cmd-server.service /etc/systemd/system) - Make sure the file is owned by the root user (e.g.
sudo chown root:root /etc/systemd/system/mega-cmd-server.service) - Reload your systemd daemon files:
sudo systemctl daemon-reload - Start the service:
sudo systemctl start mega-cmd-server - Verify the server is running by checking its status and log output:
sudo systemctl status mega-cmd-server - Enable the service to be started automatically at startup:
sudo systemctl enable mega-cmd-server
Reboot to check if it works. Enjoy!
To my experience it works on DSM 7.2.2.
However my NAS mounted
/var/packages(and thus/usr/local/bin) withnoexec, causing theAssertFileIsExecutablecheck in the systemd unit to fail. My fix was to comment out theAssertFileIsExecutable=/usr/local/bin/mega-cmd-serverline in/etc/systemd/system/mega-cmd-server.service.After that the sync started properly however I received some errors about missing jid-files:
Although this seems not to be an issue in regard of the sync, I added the missing files manually
I'm sure there are more elegant ways to solve this, but I'm not a Linux pro