2

I connect to my VPS using tigerVNC Viewer and run a command like:

 xdotool getmouselocation

but I always get the error:

 Segmentation fault (core dumped)

On my desktop it is working but not on my VPS

This is how I set up my VPS:

apt-get update
apt-get upgrade
apt install xfce4 xfce4-goodies tightvncserver
vncserver
vncserver -kill :1
nano ~/.vnc/xstartup
     #!/bin/bash
     xrdb $HOME/.Xresources
     startxfce4 &
chmod +x ~/.vnc/xstartup
vncserver
sudo apt update
sudo apt install xdotool

What can I do?

Byte Commander
  • 110,243
RapidGainz
  • 141
  • 1
  • 1
  • 4

1 Answers1

2

Looks like a bug/incompatibility between xdotool and some VNC implementations, especially tightvnc. See this ~3 years old open GitHub issue on xdotool.

In the thread the xdotool developer mentions a workaround, by building a specific older version of xdotool from source:

As a workaround, y'all can use edbbb7a (from December 2013) as a git commit and is successful on tightvnc:

% git checkout edbbb7a8f664ceacbb2cffbe8ee4f5a26b5addc8
% make install
% DISPLAY=:1 xdotool getmouselocation
x:320 y:240 screen:0 window:37

Alternatively, you can try replacing tightvnc with e.g. tigervnc, which doesn't seem to have this issue.

Byte Commander
  • 110,243