Linux command
xvnc 命令
网络
需要网络或远程资源。
常用示例
Start VNC server on display :1
Xvnc :1
Start with specific geometry
Xvnc :1 -geometry [1280x1024]
Start with color depth
Xvnc :1 -depth [24]
Start with password file
Xvnc :1 -PasswordFile [~/.vnc/passwd]
Start on specific port
Xvnc :1 -rfbport [5901]
Use vncserver script (recommended)
vncserver :1
说明
Xvnc is both an X server and a VNC server. It creates a virtual X display with no physical screen, accessible only via VNC viewers. Applications run on Xvnc as on a normal X display. The server listens on TCP port 5900+display for VNC connections. Unlike x11vnc which shares an existing display, Xvnc creates new independent virtual displays. The vncserver script is the recommended way to start Xvnc, handling environment setup and running initial applications. Multiple Xvnc instances can run on different display numbers.
参数
- -geometry _WxH_
- Desktop size (default: 1024x768).
- -depth _n_
- Color depth: 16, 24, or 32 (default: 24).
- -rfbport _port_
- VNC listener port (default: 5900+display).
- -PasswordFile _file_
- Password file for authentication.
- -SecurityTypes _types_
- Comma-separated list of security types.
- -localhost
- Only accept connections from localhost.
- -AlwaysShared
- Allow multiple simultaneous connections.
- -NeverShared
- Disconnect existing clients on new connection.
FAQ
What is the xvnc command used for?
Xvnc is both an X server and a VNC server. It creates a virtual X display with no physical screen, accessible only via VNC viewers. Applications run on Xvnc as on a normal X display. The server listens on TCP port 5900+display for VNC connections. Unlike x11vnc which shares an existing display, Xvnc creates new independent virtual displays. The vncserver script is the recommended way to start Xvnc, handling environment setup and running initial applications. Multiple Xvnc instances can run on different display numbers.
How do I run a basic xvnc example?
Run `Xvnc :1` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -geometry _WxH_ do in xvnc?
Desktop size (default: 1024x768).