Install spacenavd by entering the following commands in the terminal:
sudo apt update sudo apt install spacenavd
daemon for using 3D input devices from 3Dconnexion
Spacenavd, is a free software replacement user-space driver (daemon), for 3Dconnexion's six-degree-of-freedom input devices. It is compatible with the original 3dxsrv proprietary daemon provided by 3Dconnexion, and works perfectly with any program that was written for the 3Dconnexion driver. It also offers another method of accessing the device via a new non-X11-dependent protocol.