Created
September 14, 2024 17:11
-
-
Save LrWm3/3a745a1999b8af66b340ea022c0cae61 to your computer and use it in GitHub Desktop.
WebOS Homebrew Channel Installation script (unofficial)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# set-up a webOS device with homebrew channel | |
## | |
# Created because I found the steps were somewhat fragmented, probably out of date. | |
## | |
# requires ares-cli | |
# install via: npm install -g @webos-tools/cli | |
# ref: https://webostv.developer.lge.com/develop/tools/cli-installation | |
## | |
# Below do not change | |
DEVICE_PORT=9922 | |
DEVICE_USER=prisoner | |
# Below are shown in the developer mode application window on the TV and must be modified to match | |
DEVICE_IP="192.168.2.123" | |
DEVICE_PASS="2093CC" | |
wget -q "$DEVICE_IP:$DEVICE_PORT/webos_rsa" | |
ares-setup-device -a webos -i "username=$DEVICE_USER" -i "privatekey=$(pwd)/webos_rsa" -i "passphrase=$DEVICE_PASS" -i "host=$DEVICE_IP" -i "port=$DEVICE_PORT" | |
# Get the latest webosbrew release | |
curl -s https://api.github.com/repos/webosbrew/webos-homebrew-channel/releases/latest | grep "http.*ipk" | cut -d : -f 2,3 | tr -d \" | wget -qi - | |
# Install the latest release | |
ares-install org.webosbrew.hbchannel*.ipk -d webos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment