Running OPC UA .Net Standard PubSub reference server on Ubuntu 20.04 using dotnet-sdk-3.1
High Level Info:
OPC UA .Net Standard under test: 1.4.371.96 OS: Ubuntu 20.04 (>20.04 not working due to dotnet-sdk-3.1 is not supported)
Install dotnet-sdk-3.1
$: wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb $: sudo dpkg -i packages-microsoft-prod.deb $: rm packages-microsoft-prod.deb $: sudo apt update $: sudo apt install dotnet-sdk-3.1
Clone OPC UA .Net Standard git repo
$: mkdir -p ~/prj $: git clone -b 1.4.371.96 https://github.com/OPCFoundation/UA-.NETStandard.git
Install MQTT broker Mosquitto and supporting tools
$: sudo apt install mosquitto $: sudo apt install mosquitto-clients
Run mqtt sub client to see traffic
$: mosquitto_sub -h localhost -v -t '#'
Run reference PubSub publisher
$: cd ~/prj/UA-.NETStandard/Applications/ConsoleReferencePublisher $: dotnet run --project ConsoleReferencePublisher.csproj --framework netcoreapp3.1
Run reference PubSub subscriber
$: cd ~/prj/UA-.NETStandard/Applications/ConsoleReferenceSubscriber $: dotnet run --project ConsoleReferenceSubscriber.csproj --framework netcoreapp3.1
Install the .NET SDK or the .NET Runtime on Ubuntu
Comments