Linux command
x11vnc 命令
网络
需要网络或远程资源。
常用示例
Share current display
x11vnc -shared
Run in view-only
x11vnc -forever -viewonly
Launch
x11vnc -display :[display].[screen]
Launch
x11vnc -display :2
Launch
x11vnc -display :0.1
Start with password
x11vnc -passwd [mypassword] -forever
Start with SSL
x11vnc -ssl -forever
说明
x11vnc allows VNC access to an existing X11 display. Unlike other VNC servers that create virtual displays, x11vnc shares the actual running desktop, allowing remote control of the physical display. The server captures the display content and transmits it to VNC clients. By default, it terminates when all clients disconnect, unless -forever is specified.
参数
- -display _display_
- X display to share (e.g., :0, :1.0)
- -shared
- Allow multiple simultaneous clients
- -forever
- Don't exit when last client disconnects
- -viewonly
- Clients can only view, not interact
- -passwd _password_
- Set VNC password
- -rfbauth _file_
- Use password file
- -rfbport _port_
- Set VNC port (default: 5900)
- -noxdamage
- Disable X DAMAGE extension
- -clip _WxH+X+Y_
- Share only a portion of the screen
- -scale _fraction_
- Scale the framebuffer
- -ssl
- Enable SSL/TLS encryption
FAQ
What is the x11vnc command used for?
x11vnc allows VNC access to an existing X11 display. Unlike other VNC servers that create virtual displays, x11vnc shares the actual running desktop, allowing remote control of the physical display. The server captures the display content and transmits it to VNC clients. By default, it terminates when all clients disconnect, unless -forever is specified.
How do I run a basic x11vnc example?
Run `x11vnc -shared` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -display _display_ do in x11vnc?
X display to share (e.g., :0, :1.0)