Remote cursor not visible
SaeedSyedAli96 opened this issue · 5 comments
I want to see the cursor of the remote system I am accessing to. Currently I can see only my local cursor, if an automation script is run, I cannot see the cursor moving for the novnc.
Is it help if appending -curosr
after x11vnc
command in /etc/supervisor/conf.d/supervisor.conf
?
@fcwu it wont help, i have tried. We have 2 problems for the remote cursor visibility (on novnc).
- DockerFile installs x11vnc 0.9.13 with the distro. which does not have internal support for multi pointer and 0.9.13 is the latest version supported by the universe repository, so thats the max support by apt-get for the package.
- multipointer module was deleted after it was merged in 0.9.14, so we cannot install the addon either.
to work around this after all the installation, i am building and installing the latest version from the source. Following is my Dockerfile now.
FROM dorowu/ubuntu-desktop-lxde-vnc:xenial
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y nodejs \
&& apt-get install -y google-chrome-stable \
# need git to download source
&& apt-get install -y git
...
# update x11vnc to latest
RUN supervisorctl stop x:x11vnc \
&& mkdir x11vncLatest \
&& cd x11vncLatest \
&& git clone git://github.com/LibVNC/x11vnc
RUN apt-get build-dep -y x11vnc
RUN cd x11vncLatest/x11vnc \
&& autoreconf -fiv
RUN cd x11vncLatest/x11vnc \
&& ./configure \
&& ls \
&& make
RUN cd x11vncLatest/x11vnc \
&& sudo make install
RUN supervisorctl restart x:x11vnc
# updated x11vnc to latest
# copy supervisor.conf from local repository to the image
COPY image/etc/supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
...
You can plan this change in your Dockerfile as well if you want. You will also have to change your supervisord.conf
...
[program:x11vnc]
priority=20
command=x11vnc -display :1 -xkb -forever -shared -repeat -multiptr
...
Support X11VNC_ARGS now
docker pull dorowu/ubuntu-desktop-lxde-vnc:latest
docker run -e X11VNC_ARGS=-multiptr ...
Support X11VNC_ARGS now
docker pull dorowu/ubuntu-desktop-lxde-vnc:latest docker run -e X11VNC_ARGS=-multiptr ...
After using the -multiptr option, the local cursor disables, and there is a static cursor in the middle of the desktop,
I am using the latest version of the docker, can you tell me if I am missing something, maybe some other parameter that goes along with multiptr ?