0254.html 4.4 KB

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