the docker guacamole test, you can get web VNC by WebSocket,and also other proxy in your browser.
- build or pull form hub.docker.com
- start docker client
- get token of you vnc or other proxy(e.g. rdp telnet ssh) by setting
- include script jQuery and guac.js
- at last, you will take it on you screen :)
docker build -t "docker.io/dongshufeng/guacamole-connect:latest" .
the env of SecretKey is 32 bytes
sh boot.sh <SecretKey>
modiyf $secretKey take from step forward
var display = $("#you-displayElement-id");
var guac = new Guacamole.Client(
new Guacamole.WebSocketTunnel("ws://ip:port");
);
display.appendChild(dis);
// Error handler
guac.onerror = function(error) {
console.log(error);
};
// Connect
guac.connect('token='+token);
## Doument and API of guacamole
## Inspired and Thx