xrdp-sesrun command not found

In this troubleshooting guide we learn how to fix xrdp-sesrun command not found error message

Introduction

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

xrdp-sesrun: command not found

or when using sudo you get the following error message

sudo: xrdp-sesrun: command not found

Solutions to xrdp-sesrun: command not found

How To Fix xrdp-sesrun: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xrdp-sesrun is provided by xrdp package.

xrdp is:

xrdp offers a graphical login to a remote client using RDP (the Remote Desktop Protocol). xrdp can connect to a locally created X.org session with the xorgxrdp drivers, to a VNC X11 server, and forward to another RDP server.

xrdp accepts connections from freerdp, rdesktop, and the built-in terminal server / remote desktop clients of Microsoft Windows operating systems. In the xorgxrdp (which replaces X11RDP) and VNC modes, it provides a fully functional Linux terminal server, offering an X-Window desktop to the user. In the RDP or VNC forwarding mode, any sort of desktop can be used.

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

sudo apt-get -y install xrdp

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

You can also use apt command to install xrdp.

sudo apt -y install xrdp

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

sudo aptitude install xrdp

Summary

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