Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote cursor not visible #101

Closed
SaeedSyedAli96 opened this issue Feb 11, 2019 · 5 comments
Closed

Remote cursor not visible #101

SaeedSyedAli96 opened this issue Feb 11, 2019 · 5 comments

Comments

@SaeedSyedAli96
Copy link

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.

@fcwu
Copy link
Owner

fcwu commented Feb 22, 2019

Is it help if appending -curosr after x11vnc command in /etc/supervisor/conf.d/supervisor.conf ?

@imixtron
Copy link

imixtron commented Feb 22, 2019

@fcwu it wont help, i have tried. We have 2 problems for the remote cursor visibility (on novnc).

  1. 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.
  2. 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
...

@fcwu
Copy link
Owner

fcwu commented Feb 23, 2019

Thanks @imixtron I will create a .deb for this, and make this as a Docker env

fcwu pushed a commit that referenced this issue Feb 23, 2019
@fcwu
Copy link
Owner

fcwu commented Feb 23, 2019

Support X11VNC_ARGS now

docker pull dorowu/ubuntu-desktop-lxde-vnc:latest
docker run -e X11VNC_ARGS=-multiptr ...

@fcwu fcwu closed this as completed Feb 23, 2019
@vipul4work
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants