uget+aria2 server config
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have installed aria2 to my home server and configured it to run as daemon.
I also installed uget to my own pc and configured it to connect to aria2.
All works fine,but... whenever i close uget on my pc. Aria on server pauses downloading as well...Feels like i missing something. I want to get similar behaviour like transmission-daemon when i can launch download from any device and forget about it, but with all types of downloads not just torrents.
server:
ubuntu server 16.04.3 4.14.0-041400-lowlatency
aria 1.33.1
client:
ubuntu desktop 16.04.3
uget 2.2.0
init.d file stolen from web
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.
# Description: Starts and stops aria2 daemon.
### END INIT INFO
umask 0002
USER="aria2c"
DAEMON=/usr/local/bin/aria2c
CONF=/home/ghs/.aria2/aria2.conf
start()
if [ -f $CONF ]; then
echo "Starting aria2 daemon"
start-stop-daemon -S -c $USER -x $DAEMON -- -D --conf-path=$CONF
else
echo "Couldn't start aria2 daemon for $USER (no $CONF found)"
fi
stop()
start-stop-daemon -o -c $USER -K -u $USER -x $DAEMON
status()
dbpid=`pgrep -fu $USER $DAEMON`
if [ -z "$dbpid" ]; then
echo "aria2c daemon for USER $btsuser: not running."
else
echo "aria2c daemon for USER $btsuser: running (pid $dbpid)"
fi
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/aria2 force-reload"
exit 1
esac
exit 0
aria2.conf file
daemon=true
allow-overwrite=false
check-certificate=false
dir=/mnt/storage/Downloads
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
rpc-secret=topsecret
file-allocation=falloc
disable-ipv6=true
log=/home/ghs/.aria2/aria2.log
log-level=warn
auto-save-interval=30
save-session=/home/ghs/.aria2/aria2.sav
input-file=/home/ghs/.aria2/aria2.sav
save-session-interval=30
force-save=true
#check-integrity=true
continue=true
bt-min-crypto-level=arc4
bt-require-crypto=true
bt-request-peer-speed-limit=1M
disk-cache=100M
quiet=true
bt-load-saved-metadata=true
bt-save-metadata=true
follow-torrent=true
ls -la conf dir
ghs@GHS:~/.aria2$ ls -la
total 24
drwxrwx--- 1 aria2c aria2c 70 Feb 7 19:46 .
drwxr-xr-x 1 ghs ghs 428 Feb 7 14:40 ..
-r--r----- 1 aria2c aria2c 603 Feb 7 19:28 aria2.conf
-rw-rw---- 1 aria2c aria2c 3284 Feb 7 19:17 aria2.log
-rw-rw-r-- 1 aria2c aria2c 254 Feb 7 19:20 aria2.sav
-rw-rw-r-- 1 aria2c aria2c 10696 Feb 7 19:20 dht.dat
uget
add a comment |Â
up vote
0
down vote
favorite
I have installed aria2 to my home server and configured it to run as daemon.
I also installed uget to my own pc and configured it to connect to aria2.
All works fine,but... whenever i close uget on my pc. Aria on server pauses downloading as well...Feels like i missing something. I want to get similar behaviour like transmission-daemon when i can launch download from any device and forget about it, but with all types of downloads not just torrents.
server:
ubuntu server 16.04.3 4.14.0-041400-lowlatency
aria 1.33.1
client:
ubuntu desktop 16.04.3
uget 2.2.0
init.d file stolen from web
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.
# Description: Starts and stops aria2 daemon.
### END INIT INFO
umask 0002
USER="aria2c"
DAEMON=/usr/local/bin/aria2c
CONF=/home/ghs/.aria2/aria2.conf
start()
if [ -f $CONF ]; then
echo "Starting aria2 daemon"
start-stop-daemon -S -c $USER -x $DAEMON -- -D --conf-path=$CONF
else
echo "Couldn't start aria2 daemon for $USER (no $CONF found)"
fi
stop()
start-stop-daemon -o -c $USER -K -u $USER -x $DAEMON
status()
dbpid=`pgrep -fu $USER $DAEMON`
if [ -z "$dbpid" ]; then
echo "aria2c daemon for USER $btsuser: not running."
else
echo "aria2c daemon for USER $btsuser: running (pid $dbpid)"
fi
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/aria2 force-reload"
exit 1
esac
exit 0
aria2.conf file
daemon=true
allow-overwrite=false
check-certificate=false
dir=/mnt/storage/Downloads
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
rpc-secret=topsecret
file-allocation=falloc
disable-ipv6=true
log=/home/ghs/.aria2/aria2.log
log-level=warn
auto-save-interval=30
save-session=/home/ghs/.aria2/aria2.sav
input-file=/home/ghs/.aria2/aria2.sav
save-session-interval=30
force-save=true
#check-integrity=true
continue=true
bt-min-crypto-level=arc4
bt-require-crypto=true
bt-request-peer-speed-limit=1M
disk-cache=100M
quiet=true
bt-load-saved-metadata=true
bt-save-metadata=true
follow-torrent=true
ls -la conf dir
ghs@GHS:~/.aria2$ ls -la
total 24
drwxrwx--- 1 aria2c aria2c 70 Feb 7 19:46 .
drwxr-xr-x 1 ghs ghs 428 Feb 7 14:40 ..
-r--r----- 1 aria2c aria2c 603 Feb 7 19:28 aria2.conf
-rw-rw---- 1 aria2c aria2c 3284 Feb 7 19:17 aria2.log
-rw-rw-r-- 1 aria2c aria2c 254 Feb 7 19:20 aria2.sav
-rw-rw-r-- 1 aria2c aria2c 10696 Feb 7 19:20 dht.dat
uget
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed aria2 to my home server and configured it to run as daemon.
I also installed uget to my own pc and configured it to connect to aria2.
All works fine,but... whenever i close uget on my pc. Aria on server pauses downloading as well...Feels like i missing something. I want to get similar behaviour like transmission-daemon when i can launch download from any device and forget about it, but with all types of downloads not just torrents.
server:
ubuntu server 16.04.3 4.14.0-041400-lowlatency
aria 1.33.1
client:
ubuntu desktop 16.04.3
uget 2.2.0
init.d file stolen from web
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.
# Description: Starts and stops aria2 daemon.
### END INIT INFO
umask 0002
USER="aria2c"
DAEMON=/usr/local/bin/aria2c
CONF=/home/ghs/.aria2/aria2.conf
start()
if [ -f $CONF ]; then
echo "Starting aria2 daemon"
start-stop-daemon -S -c $USER -x $DAEMON -- -D --conf-path=$CONF
else
echo "Couldn't start aria2 daemon for $USER (no $CONF found)"
fi
stop()
start-stop-daemon -o -c $USER -K -u $USER -x $DAEMON
status()
dbpid=`pgrep -fu $USER $DAEMON`
if [ -z "$dbpid" ]; then
echo "aria2c daemon for USER $btsuser: not running."
else
echo "aria2c daemon for USER $btsuser: running (pid $dbpid)"
fi
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/aria2 force-reload"
exit 1
esac
exit 0
aria2.conf file
daemon=true
allow-overwrite=false
check-certificate=false
dir=/mnt/storage/Downloads
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
rpc-secret=topsecret
file-allocation=falloc
disable-ipv6=true
log=/home/ghs/.aria2/aria2.log
log-level=warn
auto-save-interval=30
save-session=/home/ghs/.aria2/aria2.sav
input-file=/home/ghs/.aria2/aria2.sav
save-session-interval=30
force-save=true
#check-integrity=true
continue=true
bt-min-crypto-level=arc4
bt-require-crypto=true
bt-request-peer-speed-limit=1M
disk-cache=100M
quiet=true
bt-load-saved-metadata=true
bt-save-metadata=true
follow-torrent=true
ls -la conf dir
ghs@GHS:~/.aria2$ ls -la
total 24
drwxrwx--- 1 aria2c aria2c 70 Feb 7 19:46 .
drwxr-xr-x 1 ghs ghs 428 Feb 7 14:40 ..
-r--r----- 1 aria2c aria2c 603 Feb 7 19:28 aria2.conf
-rw-rw---- 1 aria2c aria2c 3284 Feb 7 19:17 aria2.log
-rw-rw-r-- 1 aria2c aria2c 254 Feb 7 19:20 aria2.sav
-rw-rw-r-- 1 aria2c aria2c 10696 Feb 7 19:20 dht.dat
uget
I have installed aria2 to my home server and configured it to run as daemon.
I also installed uget to my own pc and configured it to connect to aria2.
All works fine,but... whenever i close uget on my pc. Aria on server pauses downloading as well...Feels like i missing something. I want to get similar behaviour like transmission-daemon when i can launch download from any device and forget about it, but with all types of downloads not just torrents.
server:
ubuntu server 16.04.3 4.14.0-041400-lowlatency
aria 1.33.1
client:
ubuntu desktop 16.04.3
uget 2.2.0
init.d file stolen from web
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.
# Description: Starts and stops aria2 daemon.
### END INIT INFO
umask 0002
USER="aria2c"
DAEMON=/usr/local/bin/aria2c
CONF=/home/ghs/.aria2/aria2.conf
start()
if [ -f $CONF ]; then
echo "Starting aria2 daemon"
start-stop-daemon -S -c $USER -x $DAEMON -- -D --conf-path=$CONF
else
echo "Couldn't start aria2 daemon for $USER (no $CONF found)"
fi
stop()
start-stop-daemon -o -c $USER -K -u $USER -x $DAEMON
status()
dbpid=`pgrep -fu $USER $DAEMON`
if [ -z "$dbpid" ]; then
echo "aria2c daemon for USER $btsuser: not running."
else
echo "aria2c daemon for USER $btsuser: running (pid $dbpid)"
fi
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload|force-reload)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/aria2 force-reload"
exit 1
esac
exit 0
aria2.conf file
daemon=true
allow-overwrite=false
check-certificate=false
dir=/mnt/storage/Downloads
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
rpc-secret=topsecret
file-allocation=falloc
disable-ipv6=true
log=/home/ghs/.aria2/aria2.log
log-level=warn
auto-save-interval=30
save-session=/home/ghs/.aria2/aria2.sav
input-file=/home/ghs/.aria2/aria2.sav
save-session-interval=30
force-save=true
#check-integrity=true
continue=true
bt-min-crypto-level=arc4
bt-require-crypto=true
bt-request-peer-speed-limit=1M
disk-cache=100M
quiet=true
bt-load-saved-metadata=true
bt-save-metadata=true
follow-torrent=true
ls -la conf dir
ghs@GHS:~/.aria2$ ls -la
total 24
drwxrwx--- 1 aria2c aria2c 70 Feb 7 19:46 .
drwxr-xr-x 1 ghs ghs 428 Feb 7 14:40 ..
-r--r----- 1 aria2c aria2c 603 Feb 7 19:28 aria2.conf
-rw-rw---- 1 aria2c aria2c 3284 Feb 7 19:17 aria2.log
-rw-rw-r-- 1 aria2c aria2c 254 Feb 7 19:20 aria2.sav
-rw-rw-r-- 1 aria2c aria2c 10696 Feb 7 19:20 dht.dat
uget
uget
asked Feb 7 at 17:59
user3769205
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003955%2fugetaria2-server-config%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password