Uninstall TestStand from a Linux system and redeploy it for a user.

TestStand on Linux supports a single-user deployment. Use this procedure to uninstall and redeploy TestStand for the user who needs it on the machine.

By default, the uninstall removes most components related to the TestStand install. To avoid breaking other NI software, some components remain installed unless you remove them separately.

Table 47. Components Removed During Uninstallation
Component Removed by Default
The user TestStand environment, including TestStand and Wine components Yes
Security rules added for the environment Yes
Shared ni-wine system files set up during installation Yes
The TestStand BlazorUI package Yes
The TestStand installation directory Yes
ni-wine and ni-euladepot No
General system components added during installation, for example, Xvfb, Weston, or Xwayland No
  1. Close TestStand BlazorUI before you start. The uninstall script tries to stop it automatically, but closing it first can help the uninstall complete.
  2. Open a terminal and change to the directory that contains LINUX_UNINSTALL. Ensure that the Installer folder is in that same directory.
  3. Run the uninstall command for the user whose TestStand installation you want to remove.
    chmod +x ./LINUX_UNINSTALL
    sudo ./LINUX_UNINSTALL --user <username>

    Replace <username> with the Linux user name.

    Optional flags:
    • Add --yes to skip the confirmation prompt.
    • Add --remove-ni-wine if no other NI software on the machine needs ni-wine or ni-euladepot.
    • Add --keep-packages to remove the user environment and security rules but keep all packages installed.
    • Add --help to display command help.
  4. Review the uninstall log at the location indicated when the script finishes.
    Note Typically, you can find the log at /tmp/ni_teststand/uninstall.log.
    If the log reports that a process could not be stopped, close TestStand BlazorUI and run the uninstall again.
  5. To redeploy TestStand for the user, change to the directory that contains LINUX_INSTALL, and run the following command:
    sudo ./LINUX_INSTALL --user <username>
  6. Follow the instructions in Licensing TestStand on Linux, to reactivate your license.