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-server
from 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
(inUser
andWorkingDirectory
) 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!
THX