Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

NX and node-x11 #6

Closed
baaaaaaaaaaaaaam opened this Issue · 6 comments

2 participants

@baaaaaaaaaaaaaam

Hi,
I'm trying to run an NX server that communicates with node-x11 as the NX client. A remote machine would communicate via HTML Canvas with the NX server.

I'm interested in your thoughts before diving into this. I appreciate any advice.

Thank you

@sidorares
Owner

Not sure I understand what you are trying to achieve.

NX server implemented in node using node-x11 to get screen updates/input events similar to x11vnc?

@baaaaaaaaaaaaaam
@sidorares
Owner

I can see two approaches
1) implement everything in node:

  • add XDamage extension
  • watch for updates, encode to NX protocol 2) proxy vnc->nx see vnc client in examples/vncclient
    • receive vnc screen updates (prom external vnc server, possiby remote), store current screen buffer state, encode using NX protocol
@sidorares
Owner

I recently added basic support for damage and composite extensions so it's now possible to create vnc or nx server

@baaaaaaaaaaaaaam
@sidorares
Owner

no, vncviewer is just viewer (front end to vnc protocol client), but there is also a server side part for vnc protocol. There is very primitive example in /examples/smoketest/damagetest.js ( https://github.com/sidorares/node-x11/blob/master/examples/smoketest/damagetest.js ). It prints damage notification each time external window updates its surface ( try to launch xeyes, find it's id with xwininfo and start example as node damagetest winID replacing winID with xeyes win id.

@sidorares sidorares closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.