Download and Install NI Driver Software on Linux Desktop

Überblick

Beginning in 2018, NI offers a new catalog of Linux Desktop support for a variety of test and measurement hardware on the PXI Express platform. With this release, there has been a change to the way that NI’s driver software is acquired and installed onto a Linux Desktop system. Instead of providing an executable INSTALL script as in the past, NI now provides a repository registration package that can be downloaded and used to instruct your Linux distribution’s native package manager to install NI driver software packages such as NI-DAQmx, NI-VISA, NI-488.2, and NI-Sync. 

  1. Download the Linux Device Driver repository registration packages from NI Linux Device Drivers. Refer to the readme for more information on which NI drivers and versions are included in each NI Linux Device Drivers download.
  2. Identify the .rpm/.deb file for your Linux distribution. Refer to the following table to see which type of repository registration package best fits your needs.
     

 NI Linux Device Drivers repository registration package options

Static repository registration packages are labelled with a date-based suffix, such as ni-rhel9-drivers-2022Q3. Software from this repository is not intended to change, and it is updated only for critical patches. Use this kind of repository when you need to reproduce a specific software stack.
Stream repository registration packages are labeled with a -stream suffix, for example: ni-rhel9-drivers-stream. Software in this repository is updated regularly with the latest versions of each driver package as it is released. Running an update/upgrade command with a package manager will update installed NI packages to their latest released version for systems that have registered a stream repository. This kind of repository is the simplest way to keep NI driver software up to date.

Firstlook is present in some repository registration package names, for example ni-ubuntu2204firstlook-drivers-2022Q4.deb, to identify a newer repository that is in an introductory roll-out period while NI gradually adds and validates individual drivers over the duration of several releases. Support on these repositories is progressing to the same level as other distributions but is not complete yet.

If you plan to upgrade to a new distribution and you see "firstlook" in its NI repository registration package name, refer to the Supported Drivers table to ensure that the NI products you need support the new distribution.

  1. Expand the section below for your distribution to continue.

 

Red Hat Enterprise Linux/CentOS

  1. (Recommended) Apply latest system updates to avoid installation issues (learn more):
    Note: this may update your system’s kernel to the latest version
    sudo yum update

  2. Reboot the system.

  3. (RHEL 9 only) Install chkconfig (see bug number 1984221 in the NI Linux Device Drivers Release Notes’ Known Issues)
    sudo yum install chkconfig

  4. (RHEL 9 only) Apply the workaround from bug #(1860393) nikal fails to install with Linux kernel 5.13 or later with "modversions.h: no such file or directory".
    sudo touch /usr/src/kernels/$(uname -r)/include/config/modversions.h

  5. Install the repository registration package (see table above to help decide between stream and static repositories).
    sudo yum install <.rpm file name>
    Example:
    sudo yum install ni-rhel8-drivers-2022Q4.rpm

  6. Use your distribution’s package manager to download and install the desired driver packages. Package names can be found in the NI Linux Device Drivers readme. Some drivers require multiple packages so be sure to look in the readme for each driver you want to install.
    sudo yum install <package name>
    Example (NI-SCOPE requires two packages):
    sudo yum install ni-scope
    sudo yum install ni-scope-daqmx

    (Recommended) sudo yum install ni-hwcfg-utility

  7. Build NI kernel drivers:
    sudo dkms autoinstall

  8. Reboot the system.

  9. (Optional) Install driver support for LabVIEW. Package names can be found in the readme of each driver.
    sudo yum install <package name to provide driver support for LabVIEW>
    Example:
    sudo yum install ni-scope-labview-support

  10. (Optional) Increase the iNotify limit (see bug number 1448861 in the NI Linux Device Drivers Release Notes’ Known Issues). 

openSUSE

  1. (Recommended) Apply latest system updates to avoid installation issues (learn more):
    Note: this may update your system’s kernel to the latest version
    sudo zypper update

  2. Reboot

  3. Install insserv (see bug number 1976540 in the NI Linux Device Drivers Release Notes’ Known Issues)
    sudo zypper install insserv

  4. (openSUSE 15.4 only) Apply the workaround from bug #(1860393) nikal fails to install with Linux kernel 5.13 or later with "modversions.h: no such file or directory".
    sudo touch /usr/src/linux-$(uname -r | sed -r 's/-default//')-obj/x86_64/default/include/config/modversions.h

  5. Install the repository registration package (see table above to help decide between stream and static repositories):
    sudo zypper --no-gpg-checks install ./<.rpm file name>
    Example:
    sudo zypper --no-gpg-checks install ./ni-opensuse154firstlook-drivers-2022Q4.rpm

  6. Refresh the package list:
    sudo zypper refresh

  7. Use your distribution’s package manager to download and install the desired driver packages. Package names can be found in the NI Linux Device Drivers readme. Some drivers require multiple packages so be sure to look in the readme for each driver you want to install.
    sudo zypper install <package name>
    Example (NI-SCOPE requires two packages):
    sudo zypper install ni-scope
    sudo zypper install ni-scope-daqmx

    (Recommended) sudo zypper install ni-hwcfg-utility

  8. Build NI kernel drivers:
    sudo dkms autoinstall

  9. Reboot the system.

  10. (Optional) Install driver support for LabVIEW. Package names can be found in the readme of each driver.
    sudo zypper install <package name to provide driver support for LabVIEW>
    Example:
    sudo zypper install ni-scope-labview-support

  11. (Optional) Increase the iNotify limit (see bug number 1448861 in the NI Linux Device Drivers Release Notes’ Known Issues).

Ubuntu

  1. (Recommended)  Apply latest system updates to avoid installation issues (learn more)
    Note: this may update your system’s kernel to the latest version
    sudo apt update
    sudo apt dist-upgrade

  2. Reboot

  3. (Required only for kernel versions 5.13 and later).
    Apply the workaround from bug #(1860393) nikal fails to install with Linux kernel 5.13 or later with "modversions.h: no such file or directory".
    sudo touch /usr/src/linux-headers-$(uname -r)/include/config/modversions.h

  4. Install the repository definition file:
    sudo apt install ./<.deb file name>
    Example:
    sudo apt install ./ni-ubuntu2004-drivers-2022Q4.deb

  5. Refresh the package list:
    sudo apt update

  6. Use your distribution’s package manager to download and install the desired driver packages. Package names can be found in the NI Linux Device Drivers readme. Some drivers require multiple packages so be sure to look in the readme for each driver you want to install.
    sudo apt install <package name>
    Example (NI-SCOPE requires two packages):
    sudo apt install ni-scope
    sudo apt install ni-scope-daqmx

    (Recommended) sudo apt install ni-hwcfg-utility


  7. Build NI kernel drivers:
    sudo dkms autoinstall

  8. Reboot the system.

  9. (Optional) Increase the iNotify limit (see bug number 1448861 in the NI Linux Device Drivers Release Notes’ Known Issues).

Was this information helpful?

Yes

No