Aria2: Difference between revisions

From James's Wiki
No edit summary
No edit summary
Line 20: Line 20:
https://aria2.github.io/<br>
https://aria2.github.io/<br>
https://github.com/ziahamza/webui-aria2
https://github.com/ziahamza/webui-aria2
download make install and configure arai2c on debian (the latest version, not the package version)
go to https://aria2.github.io/ to get the latest version
use wget to download it (the gz file is there any different between that and bz2? I donno)
use tar xvfz somefilename.tar.bz2 to unzip it (gz)
cd aria2whatever
./configure
sudo make
sudo make install
sudo adduser aria2c
need to create a aria2 group I really dont know if the group serves any purpose
sudo groupadd aria
add aria2c to group aria:
sudo usermod -a -G aria aria2c
here we create a systemd file....this file needs some modifitation it was done by a fool
sudo nano /lib/systemd/system/aria2.service
    [Unit]
    Description=aria2 Service
    Requires=network.target
    After=dhcpcd.service
    [Service]
    Type=forking
    User=aria2c
    Group=aria
    EnvironmentFile=/etc/conf.d/aria2.conf
    WorkingDirectory=/var/aria2
    ExecStart=/usr/bin/aria2c $ARIACMD
    ExecReload=/usr/bin/kill -HUP $MAINPID
    RestartSec=1min
    Restart=on-failure
    [Install]
    WantedBy=multi-user.target
this is his aria2.conf file why bother having a file for this shit?
    #!/bin/sh
    AHOME=/var/aria2
    ARIASESSION=$AHOME/aria2.session
    ARIACMD="--enable-rpc -D"
    EXTRA_ARGS="--max-overall-download-limit=100k  --max-overall-upload-limit=5k \
    --rpc-allow-origin-all  --rpc-listen-all --min-split-size=1M \
    --bt-min-crypto-level=arc4 --save-session-interval=180"
[Unit]
Description=Aria2 Service
After=network.target
[Service]
ExecStart=/usr/local/bin/aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all --save-session %h/.config/aria2/session.lock --input-file %h/.config/aria2/session.lock --conf-path=%h/.config/aria2/aria2.conf
[Install]
WantedBy=default.target
do to:
aira2.conf file
ufw allow
logrotate

Revision as of 02:44, 23 November 2017

Compile, install, configure aria2 from scratch on a raspberry pi 3 (stretch)

you can check for the latest version here: https://aria2.github.io/

wget https://github.com/aria2/aria2/releases/download/release-1.33.1/aria2-1.33.1.tar.bz2
tar xvjf aria2-1.33.1.tar.bz2
cd aria2whatever
./configure
make
sudo make install


References

https://aria2.github.io/
https://github.com/ziahamza/webui-aria2


download make install and configure arai2c on debian (the latest version, not the package version)

go to https://aria2.github.io/ to get the latest version

use wget to download it (the gz file is there any different between that and bz2? I donno)

use tar xvfz somefilename.tar.bz2 to unzip it (gz)

cd aria2whatever

./configure

sudo make

sudo make install

sudo adduser aria2c


need to create a aria2 group I really dont know if the group serves any purpose sudo groupadd aria

add aria2c to group aria: sudo usermod -a -G aria aria2c

here we create a systemd file....this file needs some modifitation it was done by a fool

sudo nano /lib/systemd/system/aria2.service

   [Unit]
   Description=aria2 Service
   Requires=network.target
   After=dhcpcd.service
   [Service]
   Type=forking
   User=aria2c
   Group=aria
   EnvironmentFile=/etc/conf.d/aria2.conf
   WorkingDirectory=/var/aria2
   ExecStart=/usr/bin/aria2c $ARIACMD
   ExecReload=/usr/bin/kill -HUP $MAINPID
   RestartSec=1min
   Restart=on-failure
   [Install]
   WantedBy=multi-user.target


this is his aria2.conf file why bother having a file for this shit?

   #!/bin/sh
   AHOME=/var/aria2
   ARIASESSION=$AHOME/aria2.session
   ARIACMD="--enable-rpc -D"
   EXTRA_ARGS="--max-overall-download-limit=100k  --max-overall-upload-limit=5k \
   --rpc-allow-origin-all  --rpc-listen-all --min-split-size=1M \
   --bt-min-crypto-level=arc4 --save-session-interval=180"


[Unit] Description=Aria2 Service After=network.target

[Service] ExecStart=/usr/local/bin/aria2c --enable-rpc --rpc-listen-all --rpc-allow-origin-all --save-session %h/.config/aria2/session.lock --input-file %h/.config/aria2/session.lock --conf-path=%h/.config/aria2/aria2.conf

[Install] WantedBy=default.target


do to: aira2.conf file ufw allow logrotate