To install the Liota v2 package on a Windows 10 IOT Enterprise operating system, perform the steps listed in this section.
Prerequisites
- Install Python 3:
- Download Python 3 from: https://www.python.org/ftp/python/3.8.0/python-3.8.0-amd64.exe
- To start the installation, double-click the .exe file.
- In the first screen, select the Add Python 3.8 to PATH check box.
- Click Customize Installation and in the next screen, click Next.
- In the Advanced Users screen, select the Install for all users check box and click Install.
- To work with the VMware Pulse IoTC Agent Default Client, perform the following steps:
- From VMware Pulse IoT Center, download the iotc-agent file and untar it.
- Go to <extracted-agent-folder>\iotc-agent\conf\iotc-agent.cfg and update the value of
agentIPCModeto 1. - Go to <extracted-agent-folder>\iotc-agent\conf\iotc-defclient.cfg and update the value of
defClientIPCModeto 1. - Open the Windows PowerShell ISE as administrator and run the Set-ExecutionPolicy RemoteSigned command. Click Yes to All.
- From the Windows PowerShell ISE, run the install.ps1 file.
Procedure
- Add the C:\Program Files\VMware\iotc-agent\bin\ path to the System Path variable.
- Open a command prompt as administrator.
- Navigate to the extracted Liota folder path and run the python setup.py install command.
- Copy the required packages from the <extracted-liota-folder-path>\examples\pulseV2\ folder to the C:\Program Files\VMware\liota\data\packages folder. Specifically, the reg.py and temperature_sensor.py packages. Replace some packages if needed.
- To access
liota-cli, CD to C:\Program Files\VMware\liota\data\packages\ and run python liotad\liotapkg.py --help.
Results
You have installed Liota on Windows successfully.
What to do next
- You can either copy the configuration files from /usr/lib/liota/config/ to /etc/liota manually and create a /var/log/liota directory, or use the helper script
post-install-setup.shto copy the configuration files.- If you require Liota to be installed as a non-root user that is different from the one that exists on the system, run:
```bash $ cd /usr/lib/liota $ LIOTA_USER="non-root user" ./post-install-setup.sh ```
- If you require Liota to be installed as a root user (not preferred), run:
```bash $ cd /usr/lib/liota $ LIOTA_USER="root" ./post-install-setup.sh ```
- If you require Liota to be installed as a non-root user that is different from the one that exists on the system, run:
- After enrolling a gateway, run the python reg.py <packagename> command. The package name must not contain the .py extension. For example, python reg.py temperature_sensor.
- You can view the logs from the C:\Program Files\VMware\liota\log\liota.log file.