current position:Home>Construction of raspberry pie download tool (aria2 and qbittorrent)

Construction of raspberry pie download tool (aria2 and qbittorrent)

2022-02-03 17:24:16 Pinellia ternata is slightly cool

 Raspberry pie download tool (aria2 And qbittorrent) build

aria2 And qbittorrent build

This article mainly explains how to build aria2 And qibittorrent, as for How to use oil monkey plug-ins and scripts and download certain resources , Doesn't this all tell you how to search ?

Open up .

One 、 Mount the hard disk

My raspberry pie is from SD Card activated , Naturally, you can't put the downloaded resources in SD obstruct , Then find a hard disk and plug it into usb3.0 On the interface ( what , Your hard drive is 2.0 Of , When I didn't say ), Then start mounting .

su - # Enter super tube mode df -h # Check whether to mount fdisk -l # Check the hard disk path , Remember the hard disk path , similar dev/sda1 What? .mkfs.ext4 /dev/sdb1 # Format hard disk as ext4 Format , This format window Can't identify , To mount ntfs Format , Other operations are required , I won't tell you how to operate .mkdir /data # Create a new directory to mount , Mount anywhere , General mount mnt And media Catalog .mount /dev/sda1 /data # Mount Directory , Don't copy the middle df -h # View mounted 

 Raspberry pie download tool (aria2 And qbittorrent) build

Mounting is mounting , But after the power failure , Restart the machine and find , It's gone again . So you have to start and mount automatically .

blkid # see idvi /etc/fstab # Modify file , Copy a line according to the format inside and change it .reboot # Input after restart df -h  See if it works .

 Raspberry pie download tool (aria2 And qbittorrent) build

uuid Remember to change the name of the first item to check it out ,/data You have to mount the directory ,ext4 The format you formatted .

Two 、 build aria2

All right , The hard disk is mounted , Now it's time to get a download tool , stay data Create a directory downloads Folder (mkdir /data/downloads), If you just put the root directory , Just be happy .

I used to like to use docker build , Now find docekr-compose More incense , If you use the same system as me , He has one docker Management tools , You can operate from the web , I prefer the pleasure of typing on the keyboard .

For ease of management , All my tools are built on /opt Under the table of contents

  1. new directory
mkdir /opt/aria2cd /opt/aria2vi docker-compose.yml
  1. Official paste down , It'll be over
version: "3.8"services:  Aria2-Pro:    container_name: aria2-pro    image: p3terx/aria2-pro    environment:      - PUID=1000    # Command line input   id+ user name , Get your own numbers       - PGID=1000    # ditto       - UMASK_SET=022      - RPC_SECRET=jiushiwan   # secret key       - RPC_PORT=6800      - LISTEN_PORT=6888      - DISK_CACHE=128M   # Default 64  I SD card 128G, Double it       - IPV6_MODE=true      - UPDATE_TRACKERS=true      - CUSTOM_TRACKER_URL=      - TZ=Asia/Shanghai    volumes:      - ${PWD}/aria2-config:/config      - /data/downloads:/downloads   # Mount download path # If you use host network mode, then no port mapping is required.# This is the easiest way to use IPv6 networks.    network_mode: host#    network_mode: bridge#    ports:#      - 6800:6800#      - 6888:6888#      - 6888:6888/udp    restart: unless-stopped# Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.    logging:      driver: json-file      options:        max-size: 1m# AriaNg is just a static web page, usually you only need to deploy on a single host.  AriaNg:    container_name: ariang    image: p3terx/ariang    command: --port 6880 --ipv6    network_mode: host#    network_mode: bridge#    ports:#      - 6880:6880    restart: unless-stopped    logging:      driver: json-file      options:        max-size: 1m
  1. Execute the command to complete the construction .
docker-compose up -d
  1. Enter your ip+ port , Enter the page , Configure a password , The password is the key written on it . Click reload , Get it done . Remember to modify the download path .

3、 ... and 、 build qbittorrent

  1. Old rules , new directory
mkdir /opt/qbittorrentcd /opt/qbittorrentvi docker-compose.yml
  1. Or take the copy and modification of the official website , Change the parameter to your own
version: "3"services:  qbittorrent:    image: linuxserver/qbittorrent    container_name: qbittorrent    environment:      - PUID=1000      - PGID=1000 # id username  Replace it with your       - TZ=Asia/Shanghai #  The Shanghai time zone       - UMASK_SET=022 # jurisdiction       - WEBUI_PORT=6060 #   Web Management Port      volumes:      - ${PWD}/config:/config #  Profile path       - /data/downloads:/downloads #  Download path     ports:      #  The mapped download port to use is the same as the internal download port , You can keep the default , After installation, you can still change to other ports on the management page .      - 6881:6881       - 6881:6881/udp      #  here WEB UI  Target port and internal port , Remember the same       - 6060:6060    restart: unless-stopped
  1. Execute the command to complete the construction .
docker-compose up -d
  1. Enter your ip+ port , Enter the page , Default account admin,adminadmin. Setup language 、 Download address 、 Passwords and so on .

 Raspberry pie download tool (aria2 And qbittorrent) build

Four 、 summary

I wanted to build another transmission Of , Two is enough , and aria2 Also support bt download , One seems to be enough , Now that it's set up , Just put it .

It took half a day to study docker-compose, It's really better than docker It's much more convenient , and docker-compose.yml Files can be saved , Change the machine , No, it is. docker-compose up -d About the keyboard a few times ?So easy!

Of course , What is missing is never the download tool . What is missing is ....

Call it a day !

copyright notice
author[Pinellia ternata is slightly cool],Please bring the original link to reprint, thank you.
https://en.fheadline.com/2022/02/202202031724121167.html

Random recommended