lwm: 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 Debian possible default full paths are:

/usr/bin/lwm - from package: lwm

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