A distro-agnostic script to manage multiple MEGASync instances for different MEGA accounts.
- Works on Debian, Ubuntu, Fedora, and Arch Linux
- Graphical interface with Zenity
- Isolated instances with separate config directories
- Add instances dynamically
- Persistent instance storage
Run this command to install:
wget -O - https://raw.githubusercontent.com/geraldohomero/megasync-multiple-instances/refs/heads/main/megasync-manager.sh | bash -s installThen use:
megaThe script detects your distro and installs dependencies (megasync, zenity).
- Run
megato open the manager. - Select instances to start or add new ones.
- Configure auto-startup for instances.
Edit the script's ACCOUNTS array to add instances manually:
declare -A ACCOUNTS=(
["MEGASync_Instance_1"]="$HOME/.config/MEGASync_Instance_1"
["MEGASync_Instance_2"]="$HOME/.config/MEGASync_Instance_2"
)- Ensure graphical environment and permissions.
- Check config directories exist.
- For auto-startup, verify
~/.config/autostart/files.
Open issues on GitHub for bugs or suggestions.
For support or questions:
- Open an issue in the repository
- Check script logs for error messages
- Make sure all dependencies are installed