# VNC
yum -y groupinstall "X Window System" "Desktop" "Chinese Support" "Fonts"
yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
unlink /etc/systemd/system/default.target
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
reboot
yum -y install tigervnc-server
vncserver
# 启动服务
vncserver :1
# 停止服务
vncserver -kill :1
# 10.x.x.x:5901
# 修改vnc密码
echo xxxxxx | vncpasswd -f > ~/.vnc/passwd
# 开机启动
echo -e 'VNCSERVERS="1:root"\nVNCSERVERARGS[1]="-geometry 1280x960 -alwaysshared"' >> /etc/sysconfig/vncservers
chkconfig vncserver on
# 共享剪贴板
vncconfig &>/dev/null
参考文档:
https://blog.csdn.net/ccwwff/article/details/78830953
客户端下载地址:
https://www.realvnc.com/en/connect/download/viewer/
连接10.x.x.x:5091
网友评论