[ANSWERED] How use --rpc-secret=<TOKEN>

Are you having a problem with a Development release of uGet? If so, please let us know here. - Note*: Development releases are unstable beta releases and are available for those who like to use bleeding edge software but we recommend that you use the latest Stable release.

[ANSWERED] How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 10:16 am

I have aria2c on my desktop computer, runned as RPC
I have client android uget (1.0.9 beta) .
I'm configure android uget for use my aria2 RPC server on desktop (all work) but I cannot configure --rpc-secret=<TOKEN>

Please, give example about ari2.conf and how setup android uget 1.0.9 beta..

Thank you
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 10:44 am

This is my aria2.conf

Code: Select all
continue=true
quiet=true
daemon=true
dir=j:/1
file-allocation=falloc
log-level=warn
max-connection-per-server=4
max-concurrent-downloads=3
max-overall-download-limit=0
min-split-size=5M
enable-http-pipelining=true

enable-rpc=true
rpc-listen-all=true
rpc-user=a
rpc-passwd=a
#rpc-secret=pass


This is , how im run RPC aria2c (os - win7)
aria2.vbs - I'm put this vbs file to autorun
Code: Select all
Option Explicit
dim path, WshShell
path = "F:\Run\Internet\aria2\"
set WshShell = WScript.CreateObject("Wscript.Shell")
WshShell.Run path & "aria2c.exe --conf-path f:/run/internet/aria2/aria2.conf",0,false
Set WshShell = Nothing
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby MichaelTunnell » Mon Nov 10, 2014 11:15 am

Based on your question, I decided to add a tutorial to the uGet for Android page which explains how to install and setup aria2 with uGet for Android.

http://ugetdm.com/downloads-android

------------
I don't think aria2 is necessary on Android though...the curl backend has been working great for me on Android. uGet 2 Beta also has a much better implementation of CURL so I haven't used aria2 on that for a while either.
User avatar
MichaelTunnell
Site Admin
 
Posts: 510
Joined: Sun Sep 02, 2012 1:01 pm
Location: Alabama, USA
uGet Version: Latest Dev Build
Operating System: Linux
System Architecture: 64bit
Linux Distro: Kubuntu & Antergos

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 11:29 am

Probably, you not understand me...
I'm use aria2c on my desktop and my client is - uget for android
I'm use uget for REMOTELY manage my aria2c RPC server located on my desktop PC.

Seetings for uget :
https://docs.google.com/file/d/0B82uJto ... cslist_api
192.168.1.2 - my desktop PC (win7), where ari2c runned as RPC

https://docs.google.com/file/d/0B82uJto ... cslist_api

My question:how use uget with --rpc-secret=<TOKEN>
How setup --rpc-secret=<TOKEN> on my desktop ari2c ?
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby MichaelTunnell » Mon Nov 10, 2014 1:12 pm

You would have to open ports in your router to give aria2 public access to the internet so you could remotely control it. We do not offer support with non-typical usage because well, I've never needed to do that so I have no idea how to do it. You will need to ask the developers of aria2 how to remote via different devices.
User avatar
MichaelTunnell
Site Admin
 
Posts: 510
Joined: Sun Sep 02, 2012 1:01 pm
Location: Alabama, USA
uGet Version: Latest Dev Build
Operating System: Linux
System Architecture: 64bit
Linux Distro: Kubuntu & Antergos

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 1:42 pm

You don't understand me again.
All my ports are open, because I'm using all of this in my home lan via WiFi router...
All works fine.
My question about only secret-token.
How configure secret - token access. That's all. Nothing more.
Repeat. How configure secret token access.
http://aria2.sourceforge.net/manual/en/ ... rpc-secret

How ?
https://drive.google.com/folder/d/0B82u ... ZGTUE/edit

And what write on ari2c.conf on desktop computer. Please, consult with android version developers...
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby MichaelTunnell » Mon Nov 10, 2014 2:37 pm

It looks like the token is uniquely created by the user so it seems to be whatever you want it to be.

--rpc-secret=<TOKEN>

replace the <TOKEN> portion with whatever you want it to be.

--rpc-secret=$$token$$

or whatever you want.

However, we are not the developers of aria2 so you should be asking aria2 developers questions that are specific to aria2.
User avatar
MichaelTunnell
Site Admin
 
Posts: 510
Joined: Sun Sep 02, 2012 1:01 pm
Location: Alabama, USA
uGet Version: Latest Dev Build
Operating System: Linux
System Architecture: 64bit
Linux Distro: Kubuntu & Antergos

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 2:57 pm

1. Where I must put the --rpc-secret=$$token$$ ?
2. What I must write here https://docs.google.com/file/d/0B82uJto ... cslist_api ?
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby MichaelTunnell » Mon Nov 10, 2014 4:35 pm

1. Edit -> Settings -> Plugin -> Arguments
2. the secret token that you defined in the arguments.

Oh I see, there is a language barrier in this conversation...that explains the confusion.
User avatar
MichaelTunnell
Site Admin
 
Posts: 510
Joined: Sun Sep 02, 2012 1:01 pm
Location: Alabama, USA
uGet Version: Latest Dev Build
Operating System: Linux
System Architecture: 64bit
Linux Distro: Kubuntu & Antergos

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 4:52 pm

[1. Edit -> Settings -> Plugin -> Arguments
:( Where is it option ? What soft ?


2. the secret token that you defined in the arguments.

Secret token = ???????

You CAN PROVIDE ME EXAMPLE OR NOT ?

OMG.... :(
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby chhuang » Mon Nov 10, 2014 6:37 pm

Example for your case:
If you specify --rpc-secret=777 in your aria2 server, You must set "777" in client (uGet) RPC authorization secret token.

======================================================================
[uGet] HOWTO: Remote aria2 downloading for uGet2.
---------------------------------------
Step 1. Setup aria2c in your server:

If you want aria2c to listen incoming JSON-RPC/XML-RPC requests on all network interfaces,
you may use below arguments:

--enable-rpc[=true|false]
--rpc-listen-all[=true|false]
--rpc-listen-port=<PORT>

Example: (See aria2c document for more info.)

aria2c --enable-rpc=true --rpc-listen-all=true

------
If you want to use encrypted RPC transport by SSL/TLS, you must use below arguments:

--rpc-secure[=true|false]
--rpc-certificate=<FILE>
--rpc-private-key=<FILE>
--rpc-secret=<TOKEN> (aria2 v1.8.4 new feature)

Example for Encrypted RPC: (See aria2c document for more info.)

aria2c --enable-rpc=true \
--rpc-listen-all=true \
--rpc-secure=true \
--rpc-secret=TokenString \
--rpc-certificate=host.crt.pem \
--rpc-private-key=host.key.pem

---------------------------------------
Step 2. Setup uGet as aria2 client:

1. Open uGet Setting dialog and select "plug-in" in left side.
2. Select "aria2" in Plug-in matching order.
3. Disable "Launch aria2 on startup" and "Shutdown aria2 on exit"
4. Setup RPC authorization secret token if you specify --rpc-secret in server.
5. Setup URI for your server. e.g. "http://your.server:6800/jsonrpc".
If you specify --rpc-secure in server, you must replace "http" with "https"
chhuang
Site Admin
 
Posts: 193
Joined: Tue Sep 04, 2012 6:35 am
uGet Version: 2.1.4
Operating System: Linux
System Architecture: 64bit
Linux Distro: Fedora
Windows Version: 7

Re: How use --rpc-secret=<TOKEN>

Postby Andrewe » Mon Nov 10, 2014 6:54 pm

Thank you. I'm will try this tutorial..

One more request: please optimize android uget for remote using...
Now android version:
- can't delete files on remote machine;
- can't open files on remote machine (for example: open file via ES explorer samba future )
- when downloading task is active , after exit android-uget and run android-uget again, android-uget was crushed and cannot start.

Thank you...
Andrewe
 
Posts: 13
Joined: Mon Nov 10, 2014 10:09 am
uGet Version: 1.0.9 beta (android)
Operating System: Android
System Architecture: ARM

Re: How use --rpc-secret=<TOKEN>

Postby chhuang » Mon Nov 10, 2014 7:09 pm

You must delete/open remote file in remote server. There are no way to operate remote file now.
I will test android uget crashed bug.
chhuang
Site Admin
 
Posts: 193
Joined: Tue Sep 04, 2012 6:35 am
uGet Version: 2.1.4
Operating System: Linux
System Architecture: 64bit
Linux Distro: Fedora
Windows Version: 7

roll the ball

Postby rolltheballaz » Sun Nov 19, 2017 10:19 pm

This is a very good free game web site. I also often play in free time . Please visit our website and play exciting game
- impossible game - roll the ball
rolltheballaz
 
Posts: 4
Joined: Mon Sep 18, 2017 11:06 pm
uGet Version: 2.0.1
Operating System: BSD
System Architecture: 64bit
Linux Distro: mi 17
Windows Version: 10


Return to Development Release Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron