ksmserver: 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/ksmserver - from package: kdebase-workspace

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

On Debian possible default full paths are:

/usr/bin/ksmserver - from package: kde-workspace-bin

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