Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wangmengyang
/
vnc-controlScreen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b9114a5
authored
Jun 05, 2024
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7dd90d95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
vnc.js/server/index.js
+1
-1
vnc.js/server/node_modules/vnc-server/noVNC/index.html
+1
-1
vnc.js/vncServer/AF1988C8-6683-46c2-B337-A4CDFE8157FF.png
+0
-0
安装说明.txt
+10
-2
No files found.
vnc.js/server/index.js
View file @
7b9114a5
...
@@ -2,7 +2,7 @@ const vncServer = require('vnc-server')
...
@@ -2,7 +2,7 @@ const vncServer = require('vnc-server')
const
WebSocketServer
=
require
(
'ws'
).
Server
;
const
WebSocketServer
=
require
(
'ws'
).
Server
;
let
vncConfig
=
{
let
vncConfig
=
{
port
:
9000
,
// 当前服务监听的ws端口
port
:
9000
,
// 当前服务监听的ws端口
vncAddress
:
'192.168.
1.7
1:5900'
,
// vnc服务端口
vncAddress
:
'192.168.
0.11
1:5900'
,
// vnc服务端口
// vncAddress: '192.168.1.71:5900',// vnc服务端口
// vncAddress: '192.168.1.71:5900',// vnc服务端口
}
}
let
vnc_server
=
new
vncServer
(
vncConfig
.
port
,
vncConfig
.
vncAddress
);
let
vnc_server
=
new
vncServer
(
vncConfig
.
port
,
vncConfig
.
vncAddress
);
...
...
vnc.js/server/node_modules/vnc-server/noVNC/index.html
View file @
7b9114a5
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
Connect parameters are provided in query string:
Connect parameters are provided in query string:
http://example.com/?host=HOST&port=PORT&scale=true
http://example.com/?host=HOST&port=PORT&scale=true
-->
-->
<title>
远程控制
</title>
<title>
远程控制
123
</title>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
...
...
vnc.js/vncServer/AF1988C8-6683-46c2-B337-A4CDFE8157FF.png
0 → 100644
View file @
7b9114a5
30.9 KB
安装说明.txt
View file @
7b9114a5
1. 安
装 vnc 服务端 exe
1. 安
装 vnc 服务端 exe
...
@@ -4,7 +4,14 @@
...
@@ -4,7 +4,14 @@
4. 测试是否开机自动启动
4. 测试是否开机自动启动
5. 安装node16.14.0
5. 安装node16.14.0
6. cd server node .\index.js
6. cd server 修改vnc服务ip和端口 node .\index.js
访问 http://127.0.0.1:9000/index.html?password=111111
前端ui修改地址 (加几个按钮 发送指令给后端 后端发给ventuz ventuz响应指令并渲染)
node_modules\vnc-server\noVNC\index.html
7. 开机的计划任务
7. 开机的计划任务
8. 用户登录后 5分钟 启动 node .\index.js 需要去写一个bat脚本
8. 用户登录后 5分钟 启动 node .\index.js 需要去写一个bat脚本
9. 计划任务 没30分钟 去判断 这个进程是否存在 如果没有 就启动
9. 计划任务 没30分钟 去判断 这个进程是否存在 如果没有 就启动
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment