Installing UAC Software
UAC Setup Guide
This document contains instructions on how to install and setup RIWA2-RT provided all of the OS and hardware requirements are met according to the specifications provided.
Operating System Requirements
- OS: Ubuntu 22.04.5 LTS (64-bit).
- Kernel: Must be running Linux kernel version between
6.5.0-15-genericand6.8.0-52-generic. - Architecture: x86_64 (Intel/AMD systems only).
If your current kernel version is outside the supported range, refer to the Kernel Rollback Guide for detailed instructions.
Installing the RIWA UAC
- v1.14.0 and Newer
- v1.0.0 to v1.14.0
- v0.257.0 and Earlier (Deprecated)
Locating Your RIWA UAC Download
Before starting with the installation, you should have received an executable named
riwa-installer_obara_v{version_number}_linux_amd64
{version_number} is a placeholder and thus the file you received will not actually appear as riwa-installer_obara_v{version_number}_linux_amd64 but something similar to riwa-installer_obara_v1.0.0_linux_amd64
After confirming this file has been downloaded, on your Ubuntu desktop to access your Downloads folder, you will need to start by pressing the file button on your task bar.

Once inside your Home directory folder, you can click on the Downloads button on the vertical tab bar to direct yourself to the Downloads folder.

Now inside of your Downloads directory, you should see your downloaded copy of the RIWA UAC Software

To start the installation of your RIWA UAC Software, right-click anywhere inside of the folder and press Open in Terminal

Setting Up UAC Install
From here, you may be required to turn the file into a proper executable to install the RIWA UAC Software. To ensure the RIWA UAC file you downloaded is a proper executable, run the following command in your terminal:
sudo chmod +x ./riwa-installer_obara_v{version_number}_linux_amd64

After ensuring your RIWA UAC Software is a proper executable, you can install your UAC by running the following command in the terminal:
./riwa-installer_obara_v{version_number}_linux_amd64
or
./riwa-installer_obara_v{version_number}_linux_amd64 install

After starting the installation for your RIWA UAC, you will be asked to enter some information regarding the installation of the software. You will be asked to enter the following information:
- UAC Serial Port
- USBoard MAC Address
- Start services after installation [defaulted to
yes] - Start services automatically on boot [defaulted to
yes]
both the UAC Serial Port and USBoard MAC Address can be configured after the installation by running the command configuration_manager in a terminal and locating either obara_config.json or usboard_config.json.

Once you have finished configuring your RIWA UAC installation, you should see a message similar to the one shown in the image below. This message confirms that the RIWA UAC installation completed successfully.

Locating Your RIWA UAC Download
Before starting with the installation, you should have received an executable named
riwa-installer_obara_v{version_number}_linux_amd64
{version_number} is a placeholder and thus the file you received will not actually appear as riwa-installer_obara_v{version_number}_linux_amd64 but something similar to riwa-installer_obara_v1.0.0_linux_amd64
After confirming this file has been downloaded, on your Ubuntu desktop to access your Downloads folder, you will need to start by pressing the file button on your task bar.

Once inside your Home directory folder, you can click on the Downloads button on the vertical tab bar to direct yourself to the Downloads folder.

Now inside of your Downloads directory, you should see your downloaded copy of the RIWA UAC Software

To start the installation of your RIWA UAC Software, right-click anywhere inside of the folder and press Open in Terminal

Setting Up UAC Install
From here, you may be required to turn the file into a proper executable to install the RIWA UAC Software. To ensure the RIWA UAC file you downloaded is a proper executable, run the following command in your terminal:
sudo chmod +x ./riwa-installer_obara_v{version_number}_linux_amd64

After ensuring your RIWA UAC Software is a proper executable, you can install your UAC by running the following command in the terminal:
sudo ./riwa-installer_obara_v{version_number}_linux_amd64 install

After starting the installation for your RIWA UAC, you will be asked to enter some information regarding the installation of the software. You will be asked to enter the following information:
- UAC Serial Port
- USBoard MAC Address
- Start services after installation [defaulted to
yes]
both the UAC Serial Port and USBoard MAC Address can be configured after the installation by running the command configuration_manager in a terminal and locating either obara_config.json or usboard_config.json.

Once you have finished configuring your RIWA UAC installation, you should see a message similar to the one shown in the image below. This message confirms that the RIWA UAC installation completed successfully.

Running Commands from the Correct Folder
For the remainder of the instructions, you will be executing commands in the Linux terminal.
To ensure the commands function correctly, you must open the terminal from the folder that contains all required software packages. Follow these steps:
- Open your file browser and navigate to the folder where the software packages are located.
- Right-click anywhere within the folder (not on a specific file).
- Select Open in Terminal from the context menu.
This will open a terminal window with the current working directory set appropriately.
One-Time Setup
Before proceeding, the following components must be set up once on your system:
- Upgrade the system compiler to GCC/G++ 13.
- To check the system compiler version, use the command
gcc --versionandg++ --version.
- To check the system compiler version, use the command
- Install the necessary Advantech drivers.
These steps will be performed by the scripts provided in the next steps, and require elevated (root) privileges and Internet access.
Installing RIWA2-RT Software (One-Time Setup + Main Packages)
You will receive a ZIP archive named:
RIWA2-Obara-v{version_number}.zip
Where {version_number} refers to the version of the software.
This archive contains the following installation scripts:
setup.sh- Installs one-time system dependencies (GCC 13, Advantech drivers).update.sh- Updates the main RIWA2 software packages.uninstall.sh- Uninstalls the RIWA2 software packages.
Shown in the image below:
One-Time Dependency Installation
Before installing the main software, one-time system dependencies must be installed.
-
Extract the contents of the ZIP archive.

-
Open your file browser and navigate to the extracted folder.

-
Right-click anywhere inside the folder and select Open in Terminal.

-
Run the following command:
sudo ./setup.sh. This script will:- Upgrade your GCC/G++ compiler to version 13.
- Install the required Advantech PCIE drivers.
- Ensure you have an active Internet connection and appropriate permissions. You will be prompted for your password during the installation.

Please make sure the terminal is opened from the extracted folder.