antd-wvnc-plugin/README.md

47 lines
1.7 KiB
Markdown
Raw Normal View History

2018-09-20 00:04:32 +02:00
# antd-wvnc-plugin
2018-10-03 16:47:11 +02:00
Overview about wvnc: [https://blog.lxsang.me/post/id/23](https://blog.lxsang.me/post/id/23)
2018-09-29 13:55:18 +02:00
2018-09-22 19:06:51 +02:00
An [Antd HTTP/HTTPS server's](https://github.com/lxsang/ant-http) plugin that acts as a bridge between a VNC server and web applications. It allows web application to communicate with VNC server using web socket via a predefined protocol and message format. Web application can use my dedicate javascript library called [**wvnc.js**](https://github.com/lxsang/wvnc.js) to communicate with the VNC server using the plugin.
2018-09-22 15:45:08 +02:00
To speed up the data transmission, **WVNC** uses **libjpeg** and **zlib** for data compression.
2018-09-22 19:06:51 +02:00
## Build from source
2018-09-23 20:39:35 +02:00
As **WVNC** is an **Antd's** plugin, it need to be built along with the server. This requires the following application/libraries to be pre installed:
2018-09-22 19:06:51 +02:00
### build dep
* git
* make
* build-essential
### server dependencies
* libssl-dev
* libsqlite3-dev
### Plugin Dependencies
2018-09-20 00:04:32 +02:00
* Zlib
2018-09-22 15:45:08 +02:00
* libjpeg-turbo
2018-09-22 19:06:51 +02:00
* libvncserver-dev
### build
2018-09-22 19:44:17 +02:00
When all dependencies are installed, the build can be done with a few single command lines:
2018-09-22 19:06:51 +02:00
```bash
mkdir antd
cd antd
2019-03-01 10:35:59 +01:00
wget -O- https://get.bitdojo.dev/antd | bash -s "wvnc"
2018-09-22 19:06:51 +02:00
```
2018-09-22 22:07:14 +02:00
The script will ask for a place to put the binaries (should be an absolute path, otherwise the build will fail) and the default HTTP port for the server config.
2018-09-22 19:06:51 +02:00
## Run
To run the Antd server with the **wvnc** plugin:
```sh
/path/to/your/build/antd
```
2018-09-22 15:45:08 +02:00
2018-09-22 19:06:51 +02:00
Web applications can be put on **/path/to/your/build/htdocs**, the web socket to **wvnc** is available at:
```
ws://your_host:your_port/wvnc
```
2018-09-22 21:23:15 +02:00
This websocket address can be used with my client side javascript library [**wvnc.js**](https://github.com/lxsang/wvnc.js) to provide web based VNC client