One-click Installation of Aria2 + YAAW for Offline Download on Linux

Publish: 2017-12-08 | Modify: 2018-04-03

aria2 is a lightweight command-line download tool that supports multiple protocols and sources. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. aria2 can be operated through its built-in JSON-RPC and XML-RPC interfaces.

YAAW is a web interface for managing aria2. By combining the two, offline downloading can be easily achieved. In the article "CentOS Installation of aria2 + yaaw for Offline Downloading", a manual configuration method was shared, and a one-click script was provided to simplify the process.

Features and Highlights:

  • Supports various Linux systems
  • One-click installation of Aria2 + Caddy + YAAW
  • Uses FileFileManager as the file manager
  • Offline downloading + online video playback

Installation: Copy and execute the following commands, one line at a time, and follow the prompts.

For CentOS users

yum -y install wget unzip

For Debian or Ubuntu users

apt-get install -y wget unzip

The following commands are universal, just copy and execute

wget https://github.com/helloxz/aria2/archive/master.zip unzip master.zip && cd aria2-master && chmod u+x *.sh && ./install_aria2.sh

Please select the appropriate options based on your system. Make sure not to select the wrong system, otherwise it may not work properly. For example, if my system is CentOS 7, I would choose option 1.

Follow the prompts to enter the required information. Note: It is recommended to use a combination of letters and numbers for the Aria2 authorization token, and avoid special characters, especially symbols like @, to avoid unnecessary issues.

After the installation is completed, you will see the following information. It is recommended to save this information in a secure location, as you will need it later.

Getting Started: After the installation is complete, enter http://IP:6080 to access YAAW. Enter the username and password you just set, and you will be able to see YAAW.

Click on the "Setting" button in the upper right corner, enter the RPC address displayed after the installation in the JSON-RPC Path field: http://token:abc123@IP:6800/jsonrpc, and then save.

Adding Download Tasks: If the configuration is correct, click the "Add" button to add a download task and enjoy the convenience.

Managing Files: Enter http://IP:6080/admin to access FileManager and view all files. Downloaded files are saved in the "download" directory. Please do not modify other files to avoid any issues.

Retrieving Locally: It is recommended to use IDM or EagleGet as multi-threaded download tools. After copying the download address, make sure to fill in the username and password, otherwise the download will not be possible.

Related Commands: Start: /data/aria2/aria2.sh start Stop: /data/aria2/aria2.sh stop Restart: /data/aria2/aria2.sh restart Uninstall: cd aria2-master && ./uninstall.sh Caddy server configuration file: /data/aria2/caddy.conf Aria2 configuration file: /data/aria2/aria2.conf Offline download directory: /data/aria2/download

Common Questions:

  • YAAW displays "Error: Internal server error"? Possible reasons: incorrect RPC address, Aria2 service not started, or firewall blocking port 6800.
  • After restarting the server, it cannot be accessed? The script does not set automatic startup. After restarting the server, enter /data/aria2/aria2.sh start to run the service.
  • Debian/Ubuntu installation appears successful, but cannot be accessed? Debian/Ubuntu does not automatically open ports. Please open ports 6080 and 6800, or disable the firewall. If your service provider supports security groups, additional checks may be required.

Please refer to the original article for more details and troubleshooting tips.


Comments