x2gopath: 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/x2gopath - from package: x2goserver

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