0425.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Web Based Download Utility with AriaNg on Debian/Ubuntu</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,i12bretro,Aria2,Web UI,Web Downloader,Web Based Utilities,AriaNg,FOSS">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Web Based Download Utility with AriaNg on Debian/Ubuntu">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Install Web Based Download Utility with AriaNg on Debian/Ubuntu</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Quick Setup</h2>
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Run the following commands in a terminal window
  28. <div class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install available software updates<br />
  31. sudo apt upgrade -y<br />
  32. # install aria2<br />
  33. sudo apt install aria2 -y<br />
  34. # run the aria2 RPC server<br />
  35. 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>
  36. </li>
  37. <li>Open a web browser and navigate to&nbsp;https://github.com/mayswind/AriaNg/releases</li>
  38. <li>Download the latest AllInOne.zip release</li>
  39. <li>Extract the AllInOne .zip file</li>
  40. <li>Double click the extracted index.html to open it in the default web browser</li>
  41. <li>Select AriaNg Settings&nbsp;from the left navigation menu</li>
  42. <li>Select the automatically generated RPC connection in the top sub-navigation menu</li>
  43. <li>Scroll down to the&nbsp;Aria2 RPC Secret Token field and paste the rpc-secret string, SomethingSecure in this example</li>
  44. <li>Click the Reload AriaNg button on the notification popup</li>
  45. <li>The AriaNg will now be able to communicate with aria2 over RPC</li>
  46. </ol>
  47. <h2>Starting Aria2 on System Boot</h2>
  48. <ol>
  49. <li>Run the following commands in a terminal window
  50. <div class="codeBlock"># kill aria2 if it is running<br />
  51. sudo killall aria2c<br />
  52. # create aria2 conf directory<br />
  53. sudo mkdir /etc/aria2 -p<br />
  54. # create aria2.conf<br />
  55. sudo nano /etc/aria2/aria2.conf</div>
  56. </li>
  57. <li>Paste the following into the aria2.conf file
  58. <p>dir=/home/i12bretro/Downloads<br />
  59. enable-rpc=true<br />
  60. rpc-allow-origin-all=true<br />
  61. rpc-listen-all=true<br />
  62. rpc-listen-port=6800<br />
  63. rpc-secret=SomethingSecure</p>
  64. </li>
  65. <li>Press CTRL+O, Enter, CTRL+X to write the changes to aria2.conf</li>
  66. <li>Continue with the following commands in terminal
  67. <div class="codeBlock"># create the service file<br />
  68. sudo nano /etc/systemd/system/aria2.service</div>
  69. </li>
  70. <li>Paste the following into the aria2.service file
  71. <p>[Unit]<br />
  72. Description=Aria2c<br />
  73. Requires=network.target<br />
  74. After=dhcpcd.service</p>
  75. <p>[Service]<br />
  76. ExecStart=/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf</p>
  77. <p>[Install]<br />
  78. WantedBy=default.target</p>
  79. </li>
  80. <li>Press CTRL+O, Enter, CTRL+X to write the changes to aria2.service</li>
  81. <li>Continue with&nbsp;the following commands to start the new service on system boot
  82. <div class="codeBlock"># set the service to start on system boot<br />
  83. sudo systemctl enable aria2<br />
  84. # start the service now<br />
  85. sudo systemctl start aria2</div>
  86. </li>
  87. <li>Reboot the system</li>
  88. <li>Once the system comes back up, relaunch ariang in a web browser and verify it can connect to the aria2&nbsp;RPC server</li>
  89. </ol>
  90. </div>
  91. </div>
  92. </body>
  93. </html>