NX and node-x11 #6

Closed
baaaaaaaaaaaaaam opened this Issue Feb 19, 2012 · 6 comments

Projects

None yet

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

Yeah, exactly

@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

Just to confirm, is this support demonstrated in the "node-x11 /
examples / vncviewer" directory?

On Mon, Jun 4, 2012 at 11:20 PM, Andrey Sidorov
reply@reply.github.com
wrote:

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


Reply to this email directly or view it on GitHub:
#6 (comment)

@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 Dec 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment