barrier command not found

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

Introduction

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

barrier: command not found

or when using sudo you get the following error message

sudo: barrier: command not found

Solutions to barrier: command not found

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

In Ubuntu barrier is provided by barrier package.

barrier is:

Barrier lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own display.

Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Barrier also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all.

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

sudo apt-get -y install barrier

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

You can also use apt command to install barrier.

sudo apt -y install barrier

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

sudo aptitude install barrier

Summary

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