随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

x11vnc:利用远程机器上的X-Server来进行VNC连接(x11vnc 和 x-server 在不同的机器上)

为了性能,vnc-server通常和x-server在同一台机器上。

但,如果你非得分开部署,理论上是可行的。

tigervnc 还没有测试,x11vnc搞定了。

-noshm
      Do  not  use the MIT-SHM extension for the polling.  Remote displays can be polled this way: 
      be careful this can use large amounts of network bandwidth.  This is also  of  use
      if  the  local  machine has a limited number of shm segments and -onetile is not sufficient.

 

step 0:找一台机器,运行X-Server,记住权限控制需适当设置or干脆关闭。假设DISPLAY为:192.168.43.136:0.0

step 2:在x11vnc的机器上,假设为:192.168.43.134,运行命令:

        x11vnc -shared -forever -noshm -viewonly  -display 192.168.43.136:0

step 3:ok了。此时你可以在可以访问的其他客户端机器上通过vncviewer访问192.168.43.134了。

 

posted on   jinzhenshui  阅读(2585)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)

点击右上角即可分享
微信分享提示