31 lines
1.7 KiB
Markdown
31 lines
1.7 KiB
Markdown
# Overview
|
|
This fork of noVNC is designed to work with KasmVNC, which has an embedded web server. It will not work with other VNC servers and does not strictly follow the RFB protocol.
|
|
|
|
## Dev Environment Setup
|
|
Install KasmVNC or use a Kasm Workspaces container. Remove the installed www directory, clone the git repository, and finally modify the JS so that it runs directly without the webpack
|
|
|
|
```bash
|
|
cd /usr/share/kasmvnc
|
|
sudo rm -rf www
|
|
sudo git clone https://github.com/kasmtech/noVNC.git www
|
|
sudo chown -R user:user www
|
|
cd www
|
|
sed -i 's#<script type="module" crossorigin="use-credentials" src="app/ui.js"></script-->#<script type="module" crossorigin="use-credentials" src="app/ui.js"></script>#' vnc.html
|
|
sed -i 's#<!--link rel="stylesheet" href="app/styles/base.css">#<link rel="stylesheet" href="app/styles/base.css">#' vnc.html
|
|
sed -i 's#import "core-js/stable";#//import "core-js/stable";#' app/ui.js
|
|
sed -i 's#import "regenerator-runtime/runtime";#//import "regenerator-runtime/runtime";#' app/ui.js
|
|
```
|
|
|
|
Now connect to https://address/vnc.html, create a symlink if you need it to be index.html
|
|
|
|
## Before Commiting Changes
|
|
Undo the HTML/JS changes that allow you to run the code directly without the webpack.
|
|
|
|
```bash
|
|
cd /usr/share/kasmvnc/www
|
|
sed -i 's#<script type="module" crossorigin="use-credentials" src="app/ui.js"></script>#<script type="module" crossorigin="use-credentials" src="app/ui.js"></script-->#' vnc.html
|
|
sed -i 's#<link rel="stylesheet" href="app/styles/base.css">#<!--link rel="stylesheet" href="app/styles/base.css">#' vnc.html
|
|
sed -i 's#//import "core-js/stable";#import "core-js/stable";#' app/ui.js
|
|
sed -i 's#//import "regenerator-runtime/runtime";#import "regenerator-runtime/runtime";#' app/ui.js
|
|
```
|