xmacroplay command not found

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

Introduction

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

xmacroplay: command not found

or when using sudo you get the following error message

sudo: xmacroplay: command not found

Solutions to xmacroplay: command not found

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

In Ubuntu xmacroplay is provided by xmacro package.

xmacro is:

xmacrorec can be used to record mouse and keyboard events on any X11 display.

xmacroplay can be used to playback recorded events or send any other mouse/keyboard events you choose. It is very handy for scripting an X display - for example controlling a presentation in mgp or ultrapoint from a script, network connection…

xmacroplay-keys is a script to help use the above.

Together these utils can be used to record and replay sessions for demonstrations etc.

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

sudo apt-get -y install xmacro

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

You can also use apt command to install xmacro.

sudo apt -y install xmacro

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

sudo aptitude install xmacro

Summary

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