Running Megasync on armhf using Docker

What is this?

Using the image presented here, you can synchronize files with Mega using a Docker container on an ARM device.

Note that this container uses Mega’s GUI version. For most automation purposes, it might be advisable to use Mega’s commandline client instead. IIRC, at the time of creating this container, the commandline client was not available yet. See https://github.com/meganz/MEGAcmd

Getting Started

Obtian the scripts from Github as follows:

git clone https://github.com/m7a/lo-megasync.git

The image armhf/masysmalocal/megasync may then be built on an amd64 host sytsem using make build.

You can run it as follows:

docker run --restart=unless-stopped -d -p 127.0.0.1:5900:5900 \
            -v ...:/fs/backup \
            -v ...:/home/linux-fan/.local/share/data \
            armhf/masysmalocal/megasync

Volumes are as follows:

/fs/backup
Map the directory to be synced to this node.
/home/linux-fan/.local/share/data
Map a directory to contain the Megasync configuration to this one.

For successful read/write access from inside and outside the container, the files from the shared volumes should belong to user and group with ID 1024. If you want to use a different ID, change the Dockerfile accordingly and rebuild the image.

In order to graphically interact with the client, connect via VNC like this:

vncviewer localhost:0

For amd64 Systems

It seems the ARM version is stuck at Debian Buster, hence the Debian Bullseye variant is only available as a separate Dockerfile for amd64 systems. Build it with make build_amd64 and run it just like the armhf variant except for leaving out the prefix armhf/ in the image name.

About the Upgrader

A binary version of mdvl-trival-automatic-update is supplied as part of this repository. It is installed inside the container as to keep a 24/7-running container up to date automatically. Check trivial_automatic_update(32) for further details including a link to the package’s source code repository.

Note that directory old contains an old version which is suitable to be used with Debian Bullseye and earlier. The new version (1.1.3 onwards) uses the new style format for security upgrades.

Newer Ideas


Ma_Sys.ma Website 5 (1.0.2) – no Flash, no JavaScript, no Webfont, no Copy Protection, no Mobile First. No bullshit. No GUI needed. Works with any browser.

Created: 2017/04/02 00:33:14 | Revised: 2022/09/18 21:17:18 | Tags: docker, arm | Version: 1.1.2 | SRC (Pandoc MD) | GPL

Copyright (c) 2017, 2019, 2020 Ma_Sys.ma. For furhter info send an e-mail to Ma_Sys.ma@web.de.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.