nxagent command not found

In this troubleshooting guide we learn how to fix nxagent command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nxagent: command not found

or when using sudo you get the following error message

sudo: nxagent: command not found

Solutions to nxagent: command not found

How To Fix nxagent: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nxagent is provided by nxagent package.

nxagent is:

NX is a software suite which implements very efficient compression of the X11 protocol. This increases performance when using X applications over a network, especially a slow one.

nxagent is a nested Xserver providing NX transport of X sessions. The application is based on the well known Xnest “nested” server. nxagent, like Xnest, is an X server for its own clients, and at the same time, an X client for a system’s local X server.

The main scope of nxagent is to eliminate X round-trips or transform them into asynchronous replies. nxagent works together with nxproxy. nxproxy itself does not make any effort to minimize round-trips by itself, this is demanded of nxagent.

Being an X server, nxagent is able to resolve all the property/atoms related requests locally, ensuring that the most common source of round-trips are nearly reduced to zero.

To fix this problem, we can install more using the command below.

sudo apt-get -y install nxagent

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nxagent.

sudo apt -y install nxagent

Or if you have aptitude installed you can use the following command.

sudo aptitude install nxagent

Summary

In this tutorial we learn how to fix nxagent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.