Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LG TV requires ares-novacom #13

Open
emise opened this issue Jul 17, 2021 · 5 comments
Open

LG TV requires ares-novacom #13

emise opened this issue Jul 17, 2021 · 5 comments

Comments

@emise
Copy link

emise commented Jul 17, 2021

To install this on the LG TV, we need to install ares-novacom which is not in the open source version of ares cli. This is so we can connect to the TV via the --getkey command.

To make it work on LG TV, all the commands need to include --device <device_name> because the LG version of ares cli doesn't have a default setting. I've also discovered that you can only install on the profile with ip address+port 9922, not the default emulator profile with port 6622.

Just a suggestion to add some more documentation on these workarounds. Thanks a bunch for creating and sharing this!

@Informatic
Copy link
Contributor

Informatic commented Aug 18, 2021

Configuring @webosose/ares-cli with Developer Mode App

  • Enable developer mode, enable keyserver
  • Download TV's private key: http://TV_IP:9991/webos_rsa
  • Configure the device using ares-setup-device (-a may need to be replaced with -m if device named webos is already configured)
    • PASSPHRASE is the 6-character passphrase printed on screen in developer mode app
ares-setup-device -a webos -i "username=prisoner" -i "privatekey=/path/to/downloaded/webos_rsa" -i "passphrase=PASSPHRASE" -i "host=TV_IP" -i "port=9922"

Configuring @webosose/ares-cli with Homebrew Channel / root

  • Enable sshd in Homebrew Channel app
  • Generate ssh key on developer machine (ssh-keygen)
  • Copy the public key (id_rsa.pub) to /home/root/.ssh/authorized_keys on TV
  • Configure the device using ares-setup-device (-a may need to be replaced with -m if device named webos is already configured)
ares-setup-device -a webos -i "username=root" -i "privatekey=/path/to/id_rsa" -i "passphrase=SSH_KEY_PASSPHRASE" -i "host=TV_IP" -i "port=22"

Note: @webosose/ares-cli doesn't need to be installed globally - you can use a package installed locally after npm install in this repo by just prefixing above commands with local path, like so: node_modules/.bin/ares-setup-device ...

@emise
Copy link
Author

emise commented Aug 19, 2021

Thank you! One thing for me - somehow the private key path was already configured to the default ~/.ssh path, so I moved the file there and referenced only the filename rather than the entire path.

@delphir-com
Copy link

this explanation has to be added into the installation guide. was very helpful!

@nguyenhuutinh
Copy link

@emise
Copy link
Author

emise commented Mar 14, 2023

btw this is outdated; the official CLI from LG is required in order to not run into permission issues while installing. See this https://forum.webostv.developer.lge.com/t/an-error-appears-when-im-trying-to-install-ipk-file/2345

@emise emise reopened this Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants