I have installed xdotool
on my raspbian stretch with desktop and on there, everything works fine.
But I also tried to install xdotool
on raspbian stretch lite and on lite I always encounter the following error:
Error: can't open display: (null)
Failed creating new xdo instance
What I have also tried: I flashed raspbian stretch lite on my SD card and installed xdotool
with sudo apt-get install xdotool
and tested it with the command xdotool key "1"
. I got the error shown above.
After that I have updated from lite to desktop with sudo apt install raspberrypi-ui-mods
. Then I ran xdotool key "1"
again and now it works fine.
Does someone know if my guess, that xdotool
only works with gui is correct.
Or does someone know how to get xdotool
on rasbian stretch lite without desktop to work?