dev-manager-desktop icon indicating copy to clipboard operation
dev-manager-desktop copied to clipboard

cli-version for arm (Linux)

Open theoneandonly-vector opened this issue 4 years ago • 13 comments

Is your feature request related to a problem? Please describe. I'm always frustrated when I see that I need to renew the developer-timer..

Describe the solution you'd like I would love to use a cli-version of this software on my raspberry p, which is runngin 24/7.. so I can let it renew the timer for me every few hours.

Describe alternatives you've considered no alternative.. the other functions would be great too.. also it would make it possible to run this from a smartphone using termux..

theoneandonly-vector avatar Jun 21 '21 18:06 theoneandonly-vector

Great that you have raspberry pi. I think I can add a feature to let you export a script for renewal, so you can run it on raspberry pi. And better yet, schedule via crontab.

mariotaku avatar Jun 21 '21 22:06 mariotaku

Great that you have raspberry pi. I think I can add a feature to let you export a script for renewal, so you can run it on raspberry pi. And better yet, schedule via crontab.

that sounds great :)

theoneandonly-vector avatar Jun 22 '21 07:06 theoneandonly-vector

can I assist you smh?

theoneandonly-vector avatar Jun 23 '21 16:06 theoneandonly-vector

The feature is almost ready, and will be available in next release.

mariotaku avatar Jun 24 '21 01:06 mariotaku

Does the TV need to be on to run the renew script?

thehhmdb avatar Jun 28 '21 19:06 thehhmdb

sure.. but as long as you do it using a regular crontask and start the tv once every 50 hours that should be fine.

thehhmdb @.***> schrieb am Mo., 28. Juni 2021, 21:03:

Does the TV need to be on to run the renew script?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/webosbrew/dev-manager-desktop/issues/2#issuecomment-869943975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPGGE2O2GS2ULENVGYNI2TTVDBRJANCNFSM47CD6HYQ .

theoneandonly-vector avatar Jun 28 '21 20:06 theoneandonly-vector

No. It doesn't have to be on. The script will try to save developer mode token.

mariotaku avatar Jun 29 '21 04:06 mariotaku

@mariotaku when I run the script it won't work. what can I do to create a working "/tmp/webos_privkey_tv" ?

Load key "/tmp/webos_privkey_tv": invalid format
[email protected]: Permission denied (publickey,keyboard-interactive).
cat: /tmp/webos_devmode_token_tv.txt: No such file or directory
Unable to get token

theoneandonly-vector avatar Jul 01 '21 13:07 theoneandonly-vector

@mariotaku any idea what I need to do?

theoneandonly-vector avatar Jul 09 '21 18:07 theoneandonly-vector

Oh sorry, didn't in the mood for my projects for a short while. Will get back soon!

mariotaku avatar Jul 10 '21 07:07 mariotaku

Trying to run script on windows with ubuntu as subsystem:

bash renewWebOs.sh
renewWebOs.sh: line 2: $'\r': command not found
renewWebOs.sh: line 32: $'\r': command not found
chmod: cannot access '/tmp/webos_privkey_tv'$'\r': No such file or directory
renewWebOs.sh: line 34: $'\r': command not found
: Name or service not knownname
renewWebOs.sh: line 39: -o: command not found
renewWebOs.sh: line 40: -p: command not found
cat: /var/luna/preferences/devmode_enabled: No such file or directory
renewWebOs.sh: line 53: syntax error: unexpected end of file

mattokar avatar Jul 14 '21 12:07 mattokar

@matustokar I think the file has CRLF breaks, which should be converted to LF in order to run on Linux.

mariotaku avatar Jul 14 '21 16:07 mariotaku

Sorry to replay on such on old post, but as it's still open I hope it's ok.

For some reason I have some permission errors while trying to execute. If I run the script generated by the tool I get this error:

sign_and_send_pubkey: no mutual signature supported
[email protected]: Permission denied (publickey,keyboard-interactive).

and When I try this script https://github.com/webosbrew/dev-goodies/blob/main/reset-devmode-timer.sh I get the following:

[email protected]: Permission denied (publickey,keyboard-interactive).

(I think the difference is only in the RSA key) for both I needed to add: -oHostKeyAlgorithms=+ssh-rsa and touch /tmp/webos_devmode_token_tv.txt to fix some other incompatabilities.

Also the "renew Session" button doesn't work. It does how ever bring up the "developer mode" app.

I think I need to modify some permissions, But I don't know which one.

[edit] using the curl script only actually works, but I'm not sure what the lifetime of the sessiontoken is.

bkbartk avatar Sep 18 '22 17:09 bkbartk