Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
28.2.2. 将安装程序连接到 VNC 侦听程序
要让安装系统自动连接到 VNC 客户端,首先请使用侦听模式启动客户端。在 Red Hat Enterprise Linux 系统中,使用
-listen
选项将 vncviewer 作为侦听程序运行。在终端窗口输入命令:
vncviewer -listen
注意
By default, vncviewer uses TCP port 5500 when in listening mode. The firewall must be configured to permit connections to this port from other systems. Choose System → Administration → Firewall. Select Other ports, and Add. Enter
5500
in the Port(s) field, and specify tcp
as the Protocol.
激活侦听客户端后,启动安装系统系统并在
boot:
提示符后设定 VNC 选项。除 vnc
和 vncpassword
选项外,请使用 vncconnect
选项指定正在侦听客户端的系统名称或者 IP 地址。要为侦听程序指定 TCP 端口,请在该系统名称后添加冒号和端口号。
例如,要在端口 5500 连接到系统
desktop.mydomain.com
中的 VNC 客户端,请在 boot:
提示符后输入以下内容:
linux vnc vncpassword=qwerty vncconnect=desktop.mydomain.com:5500