GolinksPRO Download Manager
  1. 主页
  2. 帮助
  3. Run GDM on a server

Run GDM on a server

Run GolinksPRO Download Manager on a home server or a NAS (Docker, Unraid, any Linux machine) without a window, and send it downloads from your phone or your browser: the server downloads them into its own folders, such as a network share.

It is the same GDM as on a desktop: its list, categories, queues, Scheduler, speed limits and torrents. You control it with the remote control's page (from any phone or computer on your network), the browser extension pointed at it, or its command line.

新增:服务器模式是此版本的新功能。请告诉我们您的使用体验。

使用 Docker

Build the image from GDM's source (a published image comes later):

git clone https://golinkspro-download-manager.web.app
cd misterdownloadmanager
docker build -t misterdownloadmanager .

The first build is long (up to an hour on a small server: the whole program is optimised as one). The image is small, about 175 MB: Debian's slim base, GDM's two programs and the certificates downloads are checked against. It needs no desktop libraries: GDM loads those only to open a window, which a server never does.

Then run it, with a folder for its settings and one for the downloads. Make both folders first, as the user GDM will run as: a folder Docker makes for you belongs to root, and GDM can't use it.

mkdir -p /srv/mdm-config /srv/downloads
docker run -d --name mdm --restart unless-stopped \
  -p 8463:8463 \
  -v /srv/mdm-config:/config \
  -v /srv/downloads:/downloads \
  --user "$(id -u):$(id -g)" \
  misterdownloadmanager
  • /config保留列表、设置、证书和已配对设备。
  • /downloads是文件存放的位置:每个分类都有其自己的子文件夹(Music、Video、Torrents…)。在此处挂载网络共享,即可直接下载到共享中。
  • --user: the user that owns those folders (GDM runs as no particular user).

docker/compose.yml 使用 Docker Compose 实现相同功能。

配对您的手机

docker logs mdm显示要打开的地址,并且在没有设备配对时,显示一个带有二维码的配对码:

The remote control listens at: https://172.17.0.2:8463/
Its certificate's SHA-256 fingerprint: DE:26:7F:…
No device is paired yet. Open the address (or scan this) and enter the code 1037 1606 …

Inside a container, the address GDM finds is the container's own: give it the one you open, the server's address with the port you published, as -e MDM_REMOTE_URL=https://192.168.1.10:8463/, and the log and the QR code show that one. Then pair as Control GDM from your phone says. For another code, at any time:

docker exec mdm misterdownloadmanager-cli pair

To open the page by the server's name (https://nas.local:8463/), give GDM that name: -e MDM_REMOTE_HOSTS=nas.local (several: separated by commas). Other names are refused, so that no web page can reach GDM through a name of its own.

在 Unraid 上

docker/unraid.xml 是一个模板:将其复制到闪存驱动器上的 /boot/config/plugins/dockerMan/templates-user/,然后选择 Docker → 添加容器 并选择 misterdownloadmanager。它将 /config 映射到 appdata,将 /downloads 映射到一个共享,端口为 8463,并以 nobody:users (99:100) 身份运行,正如 Unraid 的共享所期望的那样。镜像必须先在服务器上构建(如上所述),或者推送到您使用的注册表。如果容器日志显示某个文件夹属于其他用户,请将其一次性授予 nobody:users:chown -R 99:100 /mnt/user/appdata/misterdownloadmanager。

不使用 Docker

On any Linux machine with GDM installed (the .deb, .rpm, AppImage or tar.gz):

misterdownloadmanager --headless --data ~/mdm-server --downloads /srv/downloads
标志 或变量 设置内容
--data <folder> MDM_DATA_DIR 列表、设置、证书和已配对设备
--downloads <folder> MDM_DOWNLOADS 下载文件的存放位置(每个分类的子文件夹)
--port <number> MDM_REMOTE_PORT 远程控制端口 (8463)
--listen <address> MDM_REMOTE_LISTEN 监听地址:除非指定,否则为所有本地网络地址
--hosts <names> MDM_REMOTE_HOSTS 除了其地址之外,页面可能通过其打开的名称
MDM_REMOTE_URL 您打开页面时显示的地址,与配对码一起显示

在此模式下,远程控制已开启(MDM_REMOTE=off将其关闭)。当系统停止它时(docker stop、systemd、Ctrl+C),它会干净地停止并保存其列表。它在 Windows 和 macOS 上也以相同的方式工作。

The command line talks to it as to a desktop GDM, with the same data folder: MDM_DATA_DIR=~/mdm-server misterdownloadmanager-cli status (once api on), pair, and adding an address: misterdownloadmanager /d https://example.com/file.zip.

从浏览器发送下载

In the browser extension's menu, Send downloads to → Another GolinksPRO Download Manager (a server): type the server's address, open it once in that browser to accept its certificate, then enter a pairing code (pair above). Downloads the extension catches, and Download with GolinksPRO Download Manager on a link, then go to the server instead of this computer. The browser's cookies are not sent to the server: a download that needs you to be signed in to a site stays with this computer.

服务器不支持的功能

  • 视频页面 (yt-dlp) 和图片库需要其辅助程序,而镜像中不包含这些程序。
  • 不会打开任何窗口:需要提问的下载(重复文件、已存在的文件)将根据设置中的选择进行处理,或者不予添加。
  • 请勿在互联网上公开端口;请通过 VPN 访问您的家庭网络。

免费、开源、无广告、无试用版。

Download GolinksPRO Download Manager