This commit is contained in:
zj
2025-12-10 03:38:11 +08:00
parent e48f83ab44
commit 1fbfd2129e
239 changed files with 931 additions and 154 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# 等待桌面环境完全加载 (可选,但有时有帮助)
sleep 5
mkdir -p $HOME/.vnc/
touch $HOME/.vnc/x11vnc.log
# 启动 x11vnc 服务器
# 注意:-display :0 假设您登录的是第一个X显示器
# -rfbport 5900 是默认端口,可以省略,但明确指定更好
#x11vnc -wait 50 -noxdamage -passwd PASSWORD -display :0 -forever -o /var/log/x11vnc.log -bg
exec x11vnc -wait 50 -noxdamage -passwd "123456" -display :0 -forever -o "$HOME/.vnc/x11vnc.log" -bg -rfbport 5900