NX and node-x11
Closed this issue · 6 comments
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
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?
Yeah, exactly
I can see two approaches
- 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
I recently added basic support for damage and composite extensions so it's now possible to create vnc or nx server
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)
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.