-
Notifications
You must be signed in to change notification settings - Fork 8
Installation Guide
Important
The following method works for everyone, but is most recommended for users with newer Samsung TVs running Tizen OS 8.0 or higher.
Samsung TV SDK is a set of tools for developing applications for Samsung TVs using Tizen. To start working and developing with the Samsung TV SDK, you need to install the Tizen Studio IDE along with the Samsung TV Extensions and the Samsung Certificate Extension on your system.
Note
If you have already installed the Samsung TV SDK on your system, then you can skip the following steps.
- Download and run the Tizen Studio installer.
- In the Installer window:
- Accept the software license statement by clicking the
Acceptbutton. - Set the SDK and data location (leave as default) and click the
Installbutton to start installing the required packages and tools in the specified directory. - After the installation is complete, open the Package Manager by selecting the
Launch the Package Managercheckbox before clicking theFinishbutton.
- Accept the software license statement by clicking the
- In the Package Manager window:
- Select the Extension SDK tab and find
TV Extensions-X.XandSamsung Certificate Extensionwhich are the required extensions. - Click the
Installbutton for both extensions and accept the software license statement by clicking theAcceptbutton. - After the extensions have been successfully installed, close the Package Manager by clicking the
Xat the top of the window.
- Select the Extension SDK tab and find
- If you want to continue with other steps, then launch the Tizen Studio by selecting the
Launch the Tizen Studiocheckbox before clicking theOKbutton. - You may be prompted to select a directory as the workspace (leave as default) and launch the Tizen Studio by selecting the
Use this as the default and do not ask againcheckbox before clicking theLaunchbutton.
If you need more details, check the Installing TV SDK guide from Samsung's official documentation.
If you have already installed Tizen Studio and the required extensions, you can continue to import the existing Tizen project into Tizen Studio by selecting the root directory or uploading an archive file.
- In the Tizen Studio menu:
- Go to the File tab and select Import to open the import wizard.
- In the Import window:
- Open Tizen and select Tizen Project as import source and click the
Nextbutton.
- Open Tizen and select Tizen Project as import source and click the
- Under Select Directory / File section:
- Select the Archive file option to import the project from the archive file and click the
Browsebutton. - Locate the downloaded
Moonlight.wgtfile and click theNextbutton.
- Select the Archive file option to import the project from the archive file and click the
- Under Select Project section:
- Select the Tizen version
X.Xfrom the Version drop-down menu for the Moonlight project. - Finally, select the checkbox for the Moonlight project to prepare it for import and click the
Finishbutton.
- Select the Tizen version
- Now the selected Moonlight project has been imported into your workspace.
If you need more details, check the Importing Web Applications guide from Samsung's official documentation.
After you have imported the Moonlight project, then you need to enable the Developer mode and connect your Samsung TV to your computer using Device Manager which is a tool within Tizen Studio. So, this allows you to run and install the application on a TV device for development.
- Enable the Developer mode on your Samsung TV:
- Go to the Apps panel and press
1 2 3 4 5on the remote, then a dialog should popup. - Set Developer mode to
On, then enter your computer's IP address in theHost PC IPfield. - Restart the TV by holding the power button, then go to the Apps panel.
- Depending on your model, a
DEVELOP MODEwill appear in the Apps panel at the top of the screen.
- Go to the Apps panel and press
- Find the TV IP Address on your Samsung TV:
- Go to the Settings panel, then go to the General section.
- Select the Network menu, then select Network Status and click the IP Settings button.
- Under the
IP Addressfield, you can get the IPv4 address of your TV (store it somewhere because you'll need it later).
- In the Tizen Studio menu:
- Go to the Tools tab and select Device Manager to open the device manager.
- In the Device Manager window:
- Select Remote Device Manager and click
+to add a TV device. - Under the Add Device window, enter
Samsung TVin the Name field and enter theTV IP addressof your Samsung TV in the IP field. - Then it is recommended to leave the Port field untouched and click the
Addbutton. - Under the Remote Device Manager window, select the TV from the list and switch the connection to
Onand click theClosebutton.
- Select Remote Device Manager and click
- Once you have successfully connected the TV to Device Manager, close it by clicking the
Xat the top of the window.
If you need more details, check the TV Device guide from Samsung's official documentation.
After completing the previous steps, you need to create and sign the certificate profile in order to run the application on your Samsung TV. This step is essential for signing the application for development and distribution.
Note
Before proceeding further with creating and signing the certificate profile, you must have already imported the Moonlight app, enabled developer mode, and connected your target TV device.
- In the Tizen Studio menu:
- Go to the Tools tab and select Certificate Manager to open the certificate wizard.
- You may be prompted to select a profile file for import, so you should click the
Cancelbutton in the Migration for Certificate Profile dialog.
- In the Certificate Manager window:
- Click
+in the Certificate Profile and selectSamsungas certificate profile type.
- Click
- Under Device Type section:
- Select
TVas the device type and click theNextbutton.
- Select
- Under Certificate Profile section:
- Enter
Moonlightin the Create a new certificate profile field and click theNextbutton.
- Enter
- Under Author Certificate section:
- Select Create a new author certificate option and click the
Nextbutton. - Enter
Moonlightin the Author name field andMgs12345in both Password fields. - Ensure the
Apply the same password for the distributor certificatecheckbox is selected before clicking theNextbutton. - You will be asked to sign in with your Samsung Account, so you need to click the
OKbutton. - After successful login, you can close the browser window and continue to the Certificate Manager window.
- Then, specify a backup directory for your certificate backup file in the Backup path field and click the
Nextbutton.
- Select Create a new author certificate option and click the
- Under Distributor Certificate section:
- Select Create a new distributor certificate option and click the
Nextbutton. - Set the privilege level to
Publicand leave the Password fields untouched. - Select the Add individual DUIDs option, then the Device ID (DUID) for the target device will be added automatically, because you have already connected the TV with Device Manager, so you need to continue by clicking the
Nextbutton. - After completing the distributor certificate, you can close the certificate profile creation wizard by clicking the
Finishbutton. - A new dialog will appear with the message telling you that your new certificate profile has been successfully created and set as active, so you need to click the
OKbutton.
- Select Create a new distributor certificate option and click the
- After you have successfully added and signed the Moonlight certificate profile, close the Certificate Manager by clicking the
Closebutton.
If you need more details, check the Creating Certificates guide from Samsung's official documentation.
If you have completed all the previous steps, then you can install the Moonlight app on the target device. This step is important to install and launch the application on the connected device.
Note
Before proceeding further with the installation of the Moonlight app, you must have already completed the previous steps, as well as created and signed your certificate profile.
- Ensure you have enabled Developer mode and the TV is already connected using Device Manager before proceeding further.
- In the Project Explorer view:
- Right-click on the Moonlight project, then go to Run As and select
Tizen Web Applicationas the launch mode. - The installation process will start in a few seconds, then you need to wait until it is complete.
- Right-click on the Moonlight project, then go to Run As and select
- After that, close Tizen Studio by going to File tab and select Exit option.
- Now the Moonlight app will automatically open on the target device and can be found under Recent Apps on your Samsung TV.
If you need more details, check the Launching Applications on the TV guide from Samsung's official documentation.
Important
The following method is recommended for users with older Samsung TVs running Tizen OS 5.5 to 7.0.
WSL 2 is the default distro type when installing a Linux distribution and uses virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). This step is essential for running Docker Desktop because it enables executing Linux containers on Windows PC through the native WSL 2 Linux kernel.
Note
If you have already installed WSL 2 on your Windows PC system, then you can skip the below steps.
- Open the Start menu, type Windows Features in the search bar, and click Turn Windows features on or off from the search results, and the Windows Features window will open:
- Find the
Windows Subsystem for LinuxandVirtual Machine Platformfeatures and enable both by selecting the checkboxes. - After enabling the required features, click the
OKbutton and restart your system.
- Find the
- Open the Start menu again, type Windows PowerShell in the search bar, and right-click Windows PowerShell from the search results and select Run as administrator.
- You may be prompted by User Account Control (UAC), so you need to click
Yesto allow it to run with administrative privileges.
- You may be prompted by User Account Control (UAC), so you need to click
- In the Windows PowerShell window:
- Enter command
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartto enable Windows Subsystem for Linux feature, then restart your system. - After that, enter command
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartto enable Virtual Machine Platform feature, then restart your system again.
- Enter command
- Now you need to download the latest WSL 2 Linux kernel update package here:
- Double-click on
wsl_update_x64.msito run the installer, then you will be prompted for elevated permissions, where you must selectYesto approve this installation. - Once the installation is complete, proceed to the next step by running Windows PowerShell with administrative privileges.
- After that, enter the command
wsl --set-default-version 2to set WSL 2 as the default version when installing a new Linux distribution.
- Double-click on
- Alternatively, you can download WSL 2 from the Microsoft Store which has more frequent updates using the command
wsl.exe --install, then you can update the WSL 2 package using the following commandwsl.exe --updateunder the Windows PowerShell window, but still the above method is more recommended. - You have successfully installed WSL 2 and now you can install your favorite Linux distribution.
If you need more details, check the Manual installation steps of WSL guide from Microsoft's official documentation.
Docker Desktop is an easy-to-install application for your Mac, Windows or Linux environment that enables you to build and share containerized applications and microservices. This step is important to build or use the pre-built Docker image to install the application on the connected device.
Note
Before proceeding further with installing Docker Desktop as your preferred Linux distribution, you should already have WSL 2 installed on your Windows PC.
- Download and run the Docker Desktop installer.
- In the Installer window:
- Under Configuration section, select the
Use WSL 2 instead of Hyper-VandAdd shortcut to desktopoptions. - Click the
OKbutton and follow the instructions in the installation wizard to authorize the installer and continue. - When the installation is complete, click the
Close and restartbutton to complete the installation process by closing the installer and restarting the system.
- Under Configuration section, select the
- Open Docker Desktop:
- The first time, a new window will appear as Docker Subscription Service Agreement, where you need to click the
Acceptbutton to continue. - After that you will be asked to create a Docker account, but since it is optional and not necessary, you can simply click the
Skipbutton.
- The first time, a new window will appear as Docker Subscription Service Agreement, where you need to click the
- Now the Docker Desktop is successfully installed and configured.
If you need more details, check the Install Docker Desktop on Windows guide from Docker's official documentation.
If you have completed all the previous steps, then you can install the Moonlight app on the target device. This step is important to install the application using the pre-built Docker image and launch it on the connected device.
Note
Before proceeding further with the installation of the Moonlight app, you must already have WSL 2 and Docker Desktop installed on your Windows PC.
- Enable the Developer mode on your Samsung TV:
- Go to the Apps panel and press
1 2 3 4 5on the remote, then a dialog should popup. - Set Developer mode to
On, then enter your computer's IP address in theHost PC IPfield. - Restart the TV by holding the power button, then go to the Apps panel.
- Depending on your model, a
DEVELOP MODEwill appear in the Apps panel at the top of the screen.
- Go to the Apps panel and press
- Find the TV IP Address on your Samsung TV:
- Go to the Settings panel, then go to the General section.
- Select the Network menu, then select Network Status and click the IP Settings button.
- Under the
IP Addressfield, you can get the IPv4 address of your TV (store it somewhere because you'll need it later).
- Now, you need to run Docker Desktop and make sure to close any resource intensive applications.
- Open Windows PowerShell or a similar terminal depending on your OS, then enter the following command to pull the pre-built Docker image:
docker pull ghcr.io/brightcraft/moonlight-tizen:master- This operation may take a while, please be patient.
- After that, enter the following command to run and enter the container:
docker run -it --rm ghcr.io/brightcraft/moonlight-tizen:master - To proceed further, follow the steps below to install the application on your TV:
- Enter the following command to connect to your Samsung TV over SDB (Smart Development Bridge):
sdb connect YOUR_TV_IPNote: Replace
YOUR_TV_IPwithIP Addressof your TV.- Next, enter the following command to confirm that you are connected, then take note of the Device ID:
sdb devicesNote: Just to clarify Device ID will be the last column, something like
UE55AU7172UXXH.- Next, enter the following command to install the package:
tizen install -n Moonlight.wgt -t YOUR_DEVICE_IDNote: Replace
YOUR_DEVICE_IDwithDevice IDof your TV.- Next, enter the following command to exit the container:
exitNote: Moonlight should now be available under Recent Apps on your Samsung TV.
- Finally, enter the following command to remove the Docker image, as it is no longer needed:
docker image rm ghcr.io/brightcraft/moonlight-tizen:masterNote: At the end you can enter the
exitcommand to close the Windows PowerShell window. - (Optional) Disable the Developer mode on your Samsung TV:
- Go to the Apps panel and press
1 2 3 4 5on the remote, then a dialog should popup. - Set Developer mode to
Offand then click theOKbutton to close the dialog. - Restart the TV by holding the power button, then go to the Apps panel.
- Depending on your model, a
DEVELOP MODEwill disappear from the Apps panel at the top of the screen.
- Go to the Apps panel and press
Important
The following method is the fastest way to install the application. However, it is considered a temporary solution because the installed application expires after 30 days due to Samsung certificate restrictions, which means you will have to reinstall it using a new USB package generated from the latest version.
This section guides you through installing the Moonlight app on your Samsung TV using the generated USB package and launch it on the device.
Note
Before proceeding, ensure your USB drive is formatted as FAT32 or exFAT, as these are the formats supported by Samsung TVs for app installation.
- Locate the downloaded
MoonlightUSB.zipfile from the latest USB package. - Extract the contents of the ZIP file to the root directory of your USB drive.
- Verify the folder structure on the USB drive is as follows:
root/ └── userwidget/ └── app.tmg └── widget.license - Insert the USB drive into a USB port on your Samsung TV.
- Wait for the app to install automatically (this may take a moment).
- Once installed, the Moonlight app should appear under Recent Apps on your Samsung TV.