Coder Social home page Coder Social logo

nodejs-novnc's Introduction

nodejs-novnc

Simplified comprehensive implementation to get VNC client to work in almost any machine. Made possible thanks to projects node-websockify & noVNC.

Tested to work with: MacOS Catalina (10.15.3), Windows 10 64 bit


With Docker Container

To set up app first download files or git clone https://github.com/sukkamehu/nodejs-novnc

Set up VNC_HOST address in docker-compose.yml file. Then install Docker Container if you don't have and inside project folder execute docker-compose up --build


Without Docker Container

Clone project, install node.js and inside project folder run npm install, edit /app/app.js row 13 process.env.VNC_HOST to match your host VNC server. Then copy noVNC (https://github.com/novnc/noVNC) -files into /app/novnc-ui/ -folder.

After installation success, you should be able to visit http://localhost:8001/ and see working VNC client instance. Remember to tick allow loopback connections in your VNC server.

nodejs-novnc's People

Contributors

dependabot[bot] avatar sukkamehu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

nodejs-novnc's Issues

Display is messed up

Just tried this on a Debian buster and it worked. Great! Thank you.

There are some issues though.
This is how it looks:
novnc_grizzly

This is how it should look:
novnc_ok

I tried to update the Dockerfile.

FROM node:18-bullseye

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x "/usr/local/bin/docker-entrypoint.sh"
ENTRYPOINT ["docker-entrypoint.sh"]

COPY /app/ /home/novnc/
COPY package.json package.json
RUN npm install
RUN mkdir -p /home/novnc/app
RUN ["apt", "install", "-y", "git"]
RUN git clone -b master https://github.com/novnc/noVNC /home/novnc/app/novnc-ui/
CMD node /home/novnc/app.js

But that did not do it. The display is still messed up.

After rebooting the HMI/PLC on which the vnc server is installed, it looked better:
novnc_littleBetter

Playing with Qualitiy and Compression settings are improving the display.

The vncserver lives on an embedded Yocto Linux device. Exor ex710.

x11vnc --version
x11vnc: 0.9.16 lastmod: 2019-01-05
UN65XXXXM01003694 admin@AAB-UV4:/bin$ uname -a
Linux AAB-UV4 4.14.78-rt47-1.0.0-ga #1 SMP PREEMPT RT Mon Jul 4 09:35:00 UTC 2022 armv7l GNU/Linux

I just wanted to give some feedback. Overall I am very happy that this exists. ๐Ÿ˜€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.