Skip to content

Instantly share code, notes, and snippets.

@nayr1991
nayr1991 / aria2
Last active October 24, 2015 20:15 — forked from andrzejressel/aria2
init.d file for aria2c daemon (debian)
#!/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.
@nayr1991
nayr1991 / gist:d77bab5226c737bc7b61
Last active October 24, 2015 20:16 — forked from Nerten/gist:399257dba4c36393c063
Aria2c + webui-aria2 to Ubuntu on Odroid-C1
#!/bin/bash
sudo apt-get install -y aria2
sudo mkdir /etc/aria2
sudo touch /etc/aria2/aria2.session
read -e -i "aria2" -p "What username do you want to use?" ariauser
read -e -i "aria2" -p "What password do you want to use?" ariapass
read -e -p "What Directory do you want aria2 to show?" ariadir
sudo bash -c "cat <<EOT > /etc/aria2/aria2.conf
daemon=true