UltraVNC
How to install Repeater in CentOS
01.Download
Download source code from https://github.com/qian-jiahong/uvncrep017-ws
02.Decompress
tar -xvf uvncrep017-ws.tar
03.Compile and Install
cd uvncrep017-ws
make & make install
04.Add a user for UltraVNC Repeater Service
useradd uvncrep
05.Start the repeater service
# Please config according to your needs before start.
# Configuration file: /etc/uvnc/uvncrepeater.ini
/etc/init.d/uvncrepeater start
Problems when start service
The service need a tool named start-stop-daemon
, my centos is 8, and cannot install the tool from the default repo source.
Please install the tool from the source below.
start-stop-daemon
A package named dpkg_1.18.2.tar.xz
is needed during install start-stop-daemon
, please download it from the link.
How to use
Server connect to repeater
The approach below use a user(not system) to run the service, when the user's screen has been locked, which will lead to black screen, thus, it's better to use system account to run, in other words run as service.
// 命令行参数如下
// id number: 被控制端编号(只能是数字,唯一,且至少三位,即最小是 100,最大是 2147483647,源码中此为 int 类型)
// ip: repeater 中继器服务器 IP
// port: 中继器 UltraVNC Server 监听端口
winvnc.exe -autoreconnect ID:[id number]-connect [repeater ip]:[server listen port] -run
// Example
winvnc -autoreconnect ID:1001 -connect 101.43.21.21:5500 -run
- How to connect server via service
Step 1: Open config fileultravnc.ini
,
Step 2: Add content line toservice_commandline=-autoreconnect ID:1001 -connect 101.43.21.21:5500
Step 3: Restart the service.
Viewer connect to repeater
// 命令行参数如下
// id number: 被控制端编号(只能是数字,唯一,且至少三位,即最小是 100,最大是 2147483647,源码中此为 int 类型)
// ip: repeater 中继器服务器 IP
// port: 中继器 UltraVNC Viewer 监听端口
vncviewer.exe -proxy [repeater ip]:[viewer listen port] ID:[id number]
// 示例如下
vncviewer.exe -proxy 101.43.21.21:5901 ID:10001
How to use ultra repeater in windows
01. Run repeater.exe
02. Open config page
http://localhost
The default user and password: admin:adminadmi2
03. Use it as the same in linux
Other related project
https://github.com/rustdesk/rustdesk
https://guacamole.apache.org/
References
远程桌面中转,基于 UltraVNC Repeater(中继器)的远程桌面服务搭建,用于复杂网络环境
远程桌面中转,基于 UltraVNC Repeater(中继器)的远程桌面服务搭建
远程桌面中转,基于 UltraVNC Repeater(中继器)的远程桌面服务搭建