Open LinArcX opened 3 years ago
OK. i commented notification_handler()
function and compiled again. Successfully compiled. but if i try to run the executable, i'll get connection refused error:
Edit1: At the end of man page, you said:
EXAMPLE Connect to “127.0.0.1:16800” using “$$secret$$” token: env ARIA_RPC_PORT=16800 'ARIA_RPC_SECRET=$$secret$$' aria2t
What's “$$secret$$” token
? And how we can generate one of those?
Edit2: OK. finally i got how to run the server. (Just put this line in a separate terminal)
aria2c --enable-rpc --rpc-listen-all
And run aria2t
in another terminal:
aria2t
Everything seems OK. but if i press a
to add link, it will exit from main window and wait for user input. (Is it the normal behaviour?)
Anyway i put a link and press ENTER. nothing happen!
Hi! I'm glad you managed to compile it.
Pressing a
opens your $EDITOR
(usually vi, vim, emacs) where you can add files you want to download. One per line. The syntax is similar to what aria2c
uses for its session files.
/path/to/my/file
dir=/tmp
/path/to/another/file
pause=true
If you usually add downloads from one particular path you can automatize the whole process (either by using aria2c
RPC) or binding some action to A
, like:
~/.config/aria2t/actions/A
:
#!/usr/bin/env bash
printf '%s\n dir='/example/path/to'\n' ~/Downloads/*.torrent >$2
vim $2
# After you have finished editing, the saved file is read by `aria2t` and
# downloads are added. If you do not like vim, you can use geany too,
# or nano or whatever you want. Or better you do not even need to
# open any kind of editor if you think so.
For several other examples take a look at my config if you are interested.
Hmm. Just now realizing that if you have commented something out that will probably will not work. At the end have you managed to compile it cleanly or have you left that line commented?
Hi. i wanted to compile your application on my machine, but i got lots of erros:
OS: VoidLinux ncurses-devel-6.2_4 Compiler:
gperf:
Sed: