123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Install Web Based Download Utility with AriaNg on Debian/Ubuntu</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="How To,Tutorial,i12bretro,Aria2,Web UI,Web Downloader,Web Based Utilities,AriaNg,FOSS">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Install Web Based Download Utility with AriaNg on Debian/Ubuntu">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Install Web Based Download Utility with AriaNg on Debian/Ubuntu</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>Quick Setup</h2>
- <ol>
- <li>Log into the Linux device</li>
- <li>Run the following commands in a terminal window
- <div class="codeBlock"># update software repositories<br />
- sudo apt update<br />
- # install available software updates<br />
- sudo apt upgrade -y<br />
- # install aria2<br />
- sudo apt install aria2 -y<br />
- # run the aria2 RPC server<br />
- sudo aria2c --dir=/home/$USER/Downloads --enable-rpc=true --rpc-allow-origin-all=true --rpc-listen-all=true --rpc-listen-port=6800 --rpc-secret=SomethingSecure -D</div>
- </li>
- <li>Open a web browser and navigate to https://github.com/mayswind/AriaNg/releases</li>
- <li>Download the latest AllInOne.zip release</li>
- <li>Extract the AllInOne .zip file</li>
- <li>Double click the extracted index.html to open it in the default web browser</li>
- <li>Select AriaNg Settings from the left navigation menu</li>
- <li>Select the automatically generated RPC connection in the top sub-navigation menu</li>
- <li>Scroll down to the Aria2 RPC Secret Token field and paste the rpc-secret string, SomethingSecure in this example</li>
- <li>Click the Reload AriaNg button on the notification popup</li>
- <li>The AriaNg will now be able to communicate with aria2 over RPC</li>
- </ol>
- <h2>Starting Aria2 on System Boot</h2>
- <ol>
- <li>Run the following commands in a terminal window
- <div class="codeBlock"># kill aria2 if it is running<br />
- sudo killall aria2c<br />
- # create aria2 conf directory<br />
- sudo mkdir /etc/aria2 -p<br />
- # create aria2.conf<br />
- sudo nano /etc/aria2/aria2.conf</div>
- </li>
- <li>Paste the following into the aria2.conf file
- <p>dir=/home/i12bretro/Downloads<br />
- enable-rpc=true<br />
- rpc-allow-origin-all=true<br />
- rpc-listen-all=true<br />
- rpc-listen-port=6800<br />
- rpc-secret=SomethingSecure</p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to aria2.conf</li>
- <li>Continue with the following commands in terminal
- <div class="codeBlock"># create the service file<br />
- sudo nano /etc/systemd/system/aria2.service</div>
- </li>
- <li>Paste the following into the aria2.service file
- <p>[Unit]<br />
- Description=Aria2c<br />
- Requires=network.target<br />
- After=dhcpcd.service</p>
- <p>[Service]<br />
- ExecStart=/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf</p>
- <p>[Install]<br />
- WantedBy=default.target</p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to aria2.service</li>
- <li>Continue with the following commands to start the new service on system boot
- <div class="codeBlock"># set the service to start on system boot<br />
- sudo systemctl enable aria2<br />
- # start the service now<br />
- sudo systemctl start aria2</div>
- </li>
- <li>Reboot the system</li>
- <li>Once the system comes back up, relaunch ariang in a web browser and verify it can connect to the aria2 RPC server</li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|