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

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