<main>
<article class="userContent">
<p><br></p><h2 data-id="quickstep">Quickstep</h2><h3 data-id="simply-install-the-teamviewer-iot-agent-with-the-following-command-line%3A"><strong>Simply install the TeamViewer IoT Agent with the following command line:</strong></h3><pre class="code codeBlock" spellcheck="false" tabindex="0">git clone https://github.com/teamviewer/FreeBSD_port_teamviewer-iot-agent.git /tmp/teamviewer-port/
cd /tmp/teamviewer-port
make install
</pre><p><br></p><h4 data-id="create-the-package%3A"><strong>Create the package:</strong></h4><p>1. Download the ports package from the TeamViewer public GitHub repository: <a href="https://github.com/teamviewer/FreeBSD_port_teamviewer-iot-agent" rel="nofollow noreferrer ugc">https://github.com/teamviewer/FreeBSD_port_teamviewer-iot-agent</a></p><p>2. Unpack or clone the ports package or files under path <x>, e.g. /tmp/teamviewer-port/:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">git clone
https://github.com/teamviewer/FreeBSD_port_teamviewer-iot-agent.git /tmp/teamviewer-port
</pre><p>3. Run make package inside the unpacked/checked out ports folder <x>. The resulted artifact is placed in the subdirectory work/pkg and uses the naming scheme teamviewer-iot-agent-<version>.txz</p><pre class="code codeBlock" spellcheck="false" tabindex="0">cd /tmp/teamviewer-port
make package
</pre><p>4. (end customer) Install the FreeBSD package with the following command:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">pkg add /tmp/teamviewer-port/work/pkg/teamviewer-iot-agent-.[txz/pkg]
</pre><p><br></p><h4 data-id="create-the-eula-acceptance-flow%3A"><strong>Create the EULA acceptance flow:</strong></h4><p>1. Customers who have their permanent residence in the Republic of Korea (ROK) require a separate EULA confirmation flow.</p><p>2. Include the <a href="https://www.teamviewer.com/en/eula/?_ga=2.98811294.1679802627.1679314948-1498331324.1676560266&_gac=1.142395014.1677856287.EAIaIQobChMI8MLb24XA_QIVTY1oCR1RMQOWEAAYASAAEgIoV_D_BwE" rel="nofollow noreferrer ugc">EULA</a> and <a href="https://www.teamviewer.com/en/eula/?&_ga=2.98811294.1679802627.1679314948-1498331324.1676560266&_gac=1.142395014.1677856287.EAIaIQobChMI8MLb24XA_QIVTY1oCR1RMQOWEAAYASAAEgIoV_D_BwE#dpa" rel="nofollow noreferrer ugc">DPA</a> to be accepted during the provision flow. </p><p>⚠<strong>Important note: The agent will not start without the confirmation of the EULA!</strong></p><p>📌<strong>Note:</strong> Once the EULA has been accepted - The IoT agent can and should be started with <strong>service teamviewer_iot_agent start. </strong>-<strong> </strong>The assignment does not work without the agent having been started!</p><p>3. Assignment</p><p><strong>Prerequisite:</strong></p><ul><li>You have created an assignment token (please see the topic <a href="https://community.teamviewer.com/English/kb/articles/109805-create-an-assignment-token" rel="nofollow noreferrer ugc">Create an assignment token</a>)</li><li>Please make sure that you have started the agent service beforehand</li></ul><p>Use the following command:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">/usr/local/libexec/teamviewer-iot-agent assign --api-token --group
--alias
</pre><p>As a result, it will print out the following message displaying the name of the new manager and the group where the device is in:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">Device is assigned to and located in the <group name> (default = IoT) group.
Device will be accessible and managed by this account.
Assignment can be removed using 'unmanage' command.
</pre><p>If the token assignment was not successful, an error message will be displayed and an exit code other than 0 is returned.</p><p><br></p><h3></h3>
</article>
</main>