Skip to content

canwdev/guacamole-nodejs-vue-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guacamole Node.js + Vue 3 + TS Demo

VNC: vnc

RDP: rdp

Based on Libraries

img

How to Run Demo

Server

First of all, run guacd service via docker (reference):

docker run --name guacd -p 4822:4822 --network host -d guacamole/guacd

Config host ip address if needed:

const guacServer = new GuacamoleLite({
  // WebSocket server port
  port: 8080,
}, {
  // Config host ip address if needed, default is localhost.
  host: '10.0.0.12',
  // guacd server port
  port: 4822,
...

Start server

yarn install
node server.js

Client

Start client

cd client
yarn install
yarn dev

Edit connect settings in client/src/components/DemoFull.vue

  const token = await encryptToken({
  // connection: {
  //   type: "rdp",
  //   settings: {
  //     "hostname": "10.0.0.12",
  //     "username": "user",
  //     "password": "Test.Password",
  //     "enable-drive": true,
  //     "create-drive-path": true,
  //     "security": "any",
  //     "ignore-cert": true,
  //     "enable-wallpaper": true
  //   }
  // }

  connection: {
    type: "vnc",
    settings: {
      hostname: '10.0.0.12',
      port: '5901',
      password: 'Test.Password',
      "ignore-cert": true,
      "resize-method": "display-update"
    },
  }
}, 'MySuperSecretKeyForParamsToken12')

Tips: Token generation example code can be found in client/public/token.html

About

Guacamole Node.js + Vue 3 + TS Demo, Supports VNC/RDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published