0

I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?

Olimjon
  • 7,522

2 Answers2

0

You might be using not real display. To correct this, do:

export DISPLAY=:0  
xdotool getmouselocation

If it did not work, this link might be useful.

Olimjon
  • 7,522
0

I had to install X Window System using the commands as follows:

# apt-get install xserver-xorg 
# apt-get install x-window-system-core 
# dpkg-reconfigure xserver-xorg 
# apt-get install gnome-core 
# apt-get install gdm xscreensaver 
# apt-get install ttf-arphic*
# startx

And input command export DISPLAY=:0. xdotool works now.

wjandrea
  • 14,504