Administrator
发布于 2026-05-17 / 2 阅读
0

VNC 配置与链接

\`\`\`shell # 安装:不支持中文,中文需要在安装字体 yum install epel-release yum -y install tigervnc-server yum install epel-release yum install wqy\* 中文字体 # !/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER #exec /etc/X11/xinit/xinitrc \[ -x /etc/vnc/xstartup \] \&\& exec /etc/vnc/xstartup \[ -r $HOME/.Xresources \] \&\& xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic \& startxfce4 \& vncpasswd 设置连接密码 vncserver :2 5902 端口 开启服务 vncserver -kill :2 \`\`\`