Volt Download Manager
  1. หน้าหลัก
  2. วิธีใช้
  3. Run VDM on a server

Run VDM on a server

Run Volt 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 VDM 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

ตั้งแต่เวอร์ชัน 0.6.0 ให้ดึงอิมเมจที่เผยแพร่จาก GitHub Container Registry (ตอนนี้รองรับเฉพาะ x86-64):

docker pull ghcr.io/mikailhossenimran/voltdownloadmanager:<version>
# or the latest release:
docker pull ghcr.io/mikailhossenimran/voltdownloadmanager:latest

Or build the image yourself from VDM's source:

git clone https://github.com/mikailhossenimran/voltdownloadmanager
cd voltdownloadmanager
docker build -t voltdownloadmanager .

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, VDM's two programs and the certificates downloads are checked against. It needs no desktop libraries: VDM 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 VDM will run as: a folder Docker makes for you belongs to root, and VDM can't use it.

mkdir -p /srv/vdm-config /srv/downloads
docker run -d --name vdm --restart unless-stopped \
  -p 8463:8463 \
  -v /srv/vdm-config:/config \
  -v /srv/downloads:/downloads \
  --user "$(id -u):$(id -g)" \
  ghcr.io/mikailhossenimran/voltdownloadmanager:<version>

(แทนที่ ghcr.io/mikailhossenimran/voltdownloadmanager:<version> ด้วย voltdownloadmanager หากคุณสร้างอิมเมจด้วยตัวเอง)

  • /configเก็บรายการ, การตั้งค่า, ใบรับรอง และอุปกรณ์ที่จับคู่
  • /downloadsคือที่ที่ไฟล์จะลง: แต่ละหมวดหมู่มีโฟลเดอร์ย่อยอยู่ภายใน (Music, Video, Torrents…) ติดตั้งแชร์เครือข่ายที่นั่นเพื่อดาวน์โหลดลงไปโดยตรง
  • --user: the user that owns those folders (VDM runs as no particular user).

docker/compose.yml ทำเช่นเดียวกันกับ Docker Compose

จับคู่โทรศัพท์ของคุณ

docker logs vdmแสดงที่อยู่ที่จะเปิด และในขณะที่ยังไม่มีอุปกรณ์จับคู่ จะแสดงรหัสการจับคู่พร้อมรหัส QR:

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 VDM finds is the container's own: give it the one you open, the server's address with the port you published, as -e VDM_REMOTE_URL=https://192.168.1.10:8463/, and the log and the QR code show that one. Then pair as Control VDM from your phone says. For another code, at any time:

docker exec vdm voltdownloadmanager-cli pair

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

บน Unraid

docker/unraid.xml is a template: copy it to /boot/config/plugins/dockerMan/templates-user/ on the flash drive, then Docker → Add Container and pick voltdownloadmanager. It maps /config to appdata, /downloads to a share, the port 8463, and runs as nobody:users (99:100), as Unraid's shares expect. The image must be built first (above), on the server or pushed to a registry you use. If the container's log says a folder belongs to another user, give it to nobody:users once: chown -R 99:100 /mnt/user/appdata/voltdownloadmanager.

ไม่มี Docker

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

voltdownloadmanager --headless --data ~/vdm-server --downloads /srv/downloads
แฟล็ก หรือตัวแปร สิ่งที่ตั้งค่า
--data <folder> VDM_DATA_DIR รายการ, การตั้งค่า, ใบรับรอง และอุปกรณ์ที่จับคู่
--downloads <folder> VDM_DOWNLOADS ที่ที่การดาวน์โหลดไป (โฟลเดอร์ของแต่ละหมวดหมู่ภายใน)
--port <number> VDM_REMOTE_PORT พอร์ตของการควบคุมระยะไกล (8463)
--listen <address> VDM_REMOTE_LISTEN ที่ที่มันฟัง: ทุกที่อยู่เครือข่ายท้องถิ่น เว้นแต่จะระบุ
--hosts <names> VDM_REMOTE_HOSTS ชื่ออื่น ๆ นอกเหนือจากที่อยู่ของมันที่หน้าอาจถูกเปิดโดย
VDM_REMOTE_URL ที่อยู่ของหน้าตามที่คุณเปิด แสดงพร้อมรหัสการจับคู่

การควบคุมระยะไกลเปิดใช้งานในโหมดนี้ (VDM_REMOTE=off ปิดการใช้งาน) มันจะหยุดอย่างสะอาด โดยบันทึกรายการเมื่อระบบหยุดมัน (docker stop, systemd, Ctrl+C) มันทำงานบน Windows และ macOS ด้วยวิธีเดียวกัน

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

ส่งการดาวน์โหลดจากเบราว์เซอร์ของคุณ

จากเมนูส่วนขยายเบราว์เซอร์ ใต้ ส่งการดาวน์โหลดไปยัง:

  • Select Another Volt 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, Download with Volt Download Manager on a link, and Download all links / Download selected links, then go to the server instead of this computer. On the server, links are added and started right away (rather than opened in Link grabber). Only links matching the file types VDM catches (or its default types) are sent, capped at 100 links per batch; links beyond the cap or of other types are left out, and the toolbar button's badge and status notice report how many links were sent, refused, or left out. 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.
  • The Download video button over videos sends the server the video's page when you click it, and nothing before: whether it shows is up to this computer's VDM (its Options), and when there's no VDM on this computer, it shows on every site.

สิ่งที่เซิร์ฟเวอร์ไม่ทำ

  • หน้าวิดีโอ (yt-dlp) และแกลเลอรีรูปภาพต้องการตัวช่วย ซึ่งอิมเมจไม่ได้รวมไว้
  • ไม่มีอะไรเปิดหน้าต่าง: การดาวน์โหลดที่จะถามคำถาม (ไฟล์ซ้ำ, ไฟล์ที่มีอยู่แล้ว) จะเลือกตัวเลือกที่ตั้งไว้ในการตั้งค่า หรือไม่ถูกเพิ่ม
  • อย่าเผยแพร่พอร์ตบนอินเทอร์เน็ต; ให้เข้าถึงเครือข่ายภายในบ้านของคุณผ่าน VPN แทน

ฟรี, โอเพนซอร์ส, ไม่มีโฆษณา, ไม่มีช่วงทดลองใช้

Download Volt Download Manager