Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. 1. Install aria2
  2. ~> sudo pacman -Syu aria2
  3.  
  4. 2. Edit pacman config
  5. ~> sudo nano /etc/pacman.conf
  6.  
  7. 3. Add this line
  8.  
  9. XferCommand = echo Downloading %u ... && /usr/bin/aria2c --conf-path=/root/.aria2/pacman-aria2.conf %u
  10.  
  11. 4. Save and Exit
  12.  
  13. 5. Login with root
  14. ~> su
  15.  
  16. 6. Create a file in /root/.aria2/pacman-aria2.conf
  17.  
  18. ~> mkdir .aria2 && sudo nano /root/.aria2/pacman-aria2.conf
  19.  
  20. 7. Paste this
  21.  
  22. # error handling
  23. timeout=60
  24. connect-timeout=30
  25. max-tries=5
  26. retry-wait=10
  27. max-file-not-found=1
  28.  
  29. # downloading
  30. split=16
  31. max-connection-per-server=16
  32. min-split-size=1M
  33. max-concurrent-downloads=16
  34. file-allocation=none
  35. remote-time=true
  36. conditional-get=true
  37. no-netrc=true
  38.  
  39. # resuming
  40. continue=true
  41. allow-overwrite=true
  42. always-resume=false
  43.  
  44. # proxy
  45. #http-proxy=127.0.0.1:8080
  46. #https-proxy=127.0.0.1:8080
  47. #ftp-proxy=127.0.0.1:8080
  48.  
  49. # console
  50. #quiet=true
  51. console-log-level=warn
  52. summary-interval=0
  53. #enable-color=false
  54. #human-readable=false
  55. #show-console-readout=false
  56. #truncate-console-readout=false
  57.  
  58. # logging
  59. log-level=warn
  60. log=/var/log/pacman-aria2.log
  61.  
  62.  
  63. 8. Save and Exit
  64.  
  65. 9. Exit root
  66. ~> exit
  67.  
  68. 10. Profit ???
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement