xrdp-genkeymap: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/xrdp-genkeymap - from package: xrdp

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/xrdp-genkeymap - from package: xrdp

You may install the required package with command apt-get install {package}
Error in other languages:
xrdp-genkeymap: bevel nie gevind nie
xrdp-genkeymap: comandă negăsită
xrdp-genkeymap: comando não encontrado
xrdp-genkeymap: commande introuvable
xrdp-genkeymap: command not found
xrdp-genkeymap: käsku ei ole
xrdp-genkeymap: không tìm thấy lệnh
xrdp-genkeymap: komanda nerasta
xrdp-genkeymap: Kommando nicht gefunden.
xrdp-genkeymap: kommandot finns inte
xrdp-genkeymap: komut yok
xrdp-genkeymap: nie znaleziono polecenia
xrdp-genkeymap: níor aimsíodh an t-ordú
xrdp-genkeymap: no se encontró la orden
xrdp-genkeymap: no s'ha trobat l'ordre
xrdp-genkeymap: opdracht niet gevonden
xrdp-genkeymap: parancs nem található
xrdp-genkeymap: perintah tidak ditemukan
xrdp-genkeymap: príkaz nenájdený
xrdp-genkeymap: příkaz nenalezen
xrdp-genkeymap: команда не найдена
xrdp-genkeymap: командата не е открита
xrdp-genkeymap: 命令找不到
xrdp-genkeymap: コマンドが見つかりません