Running xdotool on VPS

I’m trying to run this command in my vps.

xdotool getmouseposition 

but it says:

Segmentation fault 

on my desktop its working but not on my vps

what can i do?