취업/LG webOS

[webOS] LG webOS22 시뮬레이터 리눅스세팅 CLI방법

카슈밀 2022. 11. 30. 11:12
반응형
리눅스 세팅 방법
https://webostv.developer.lge.com/develop/tools/cli-installation

1. 웹페이지에서 tgz 파일 다운로드
2. echo $LG_WEBOS_TV_SDK_HOME 해당 값이 없다면
3. mkdir webOS_TV_SDK로 폴더 생성.
4. 다운로드 파일 rz로 업로드 진행.(vim의 경우)
5. tar -xvzf 다운로드파일.tgz -압축해제 진행.
6. 해당 폴더를 webOS_TV_SDK/CLI로 이동.
7. pwd로 해당 위치 파악.
8. cd /etc/
9. sudo vi profile
10. 아래 내용 추가
# Setting the LG_WEBOS_TV_SDK_HOME variable to the parent directory of CLI
export LG_WEBOS_TV_SDK_HOME="/YOUR_PATH/webOS_TV_SDK"
// export LG_WEBOS_TV_SDK_HOME="/home/ubuntu/webOS_TV_SDK"
 
if [ -d "$LG_WEBOS_TV_SDK_HOME/CLI/bin" ]; then
  # Setting the WEBOS_CLI_TV variable to the bin directory of CLI
  export WEBOS_CLI_TV="$LG_WEBOS_TV_SDK_HOME/CLI/bin"
  # Adding the bin directory of CLI to the PATH variable
  export PATH="$PATH:$WEBOS_CLI_TV"
fi

11. source /etc/profile 입력
12. ares -V
- 응답값으로 webOS TV CLI Version: 1.12.0-j41-k(다운로드한 파일 버전에 따라 달리 나옴)
13. echo $LG_WEBOS_TV_SDK_HOME
/home/user/tool/webOS_TV_SDK

시뮬레이터 설치
https://webostv.developer.lge.com/develop/tools/simulator-installation

1. linux 파일 다운로드
2. uzip 다운로드한 파일.zip
3. webOS_TV_SDK의 아래로 이동
4. unzip한 폴더명을 Simulator로 변경 후 webOS_TV_SDK/Simulator로 이동
5. 폴더 구조는 아래와 같음.
/home/ubuntu/webos_tv_sdk/Simulator/webOS_TV_22_Simulator_1.1.1(파일명은 상이할 수 있음)

https://webostv.developer.lge.com/develop/tools/cli-installation

 

CLI Installation

Check the library, API, and other reference information provided by the webOS TV platform.

webostv.developer.lge.com

https://webostv.developer.lge.com/develop/tools/simulator-installation

 

Simulator Installation

Check the library, API, and other reference information provided by the webOS TV platform.

webostv.developer.lge.com

리눅스 세팅 방법 끝.

728x90