x2vnc command not found

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

Introduction

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

x2vnc: command not found

or when using sudo you get the following error message

sudo: x2vnc: command not found

Solutions to x2vnc: command not found

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

In Ubuntu x2vnc is provided by x2vnc package.

x2vnc is:

This program merges the capabilities of x2x and vncviewer. It will allow a machine with an X display and a machine with a VNC server running on its main screen to act as if they were two displays connected to one machine. When you move your mouse pointer off the screen in a direction of your choosing, the pointer will appear on the other screen instead.

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

sudo apt-get -y install x2vnc

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

You can also use apt command to install x2vnc.

sudo apt -y install x2vnc

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

sudo aptitude install x2vnc

Summary

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