服务端 / CentOS 6.9
-
安装桌面
# yum groupinstall Desktop
-
安装中文支持
# yum groupinstall chinese-support
-
安装vncserver
# yum install tigervnc-server
-
配置vncserver
# vim /etc/sysconfig/vncservers VNCSERVERS="1:root 2:user"
-
设置vnc密码
-
设置root用户密码
# vncpasswd
-
设置user用户密码
# su - user $ vncpasswd
-
-
启动vncserverm
# chkconfig vncserver on # /etc/init.d/vncserver restart
服务端 / CentOS 7.4
-
安装桌面
# yum groupinstall "X Window System" # yum install control-center gnome-classic-session gnome-terminal nautilus-open-terminal liberation-mono-fonts
-
安装vncserver
# yum install tigervnc-server
-
配置vncserver
-
配置root用户
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service # vim /etc/systemd/system/vncserver@:1.service 替换<USER>为root
-
配置user用户
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service # vim /etc/systemd/system/vncserver@:2.service 替换<USER>为user
-
-
设置vnc密码
-
设置root用户密码
# vncpasswd
-
设置user用户密码
# su - user $ vncpasswd
-
-
启动vncserver
# systemctl daemon-reload # systemctl enable vncserver@:1.service # systemctl enable vncserver@:2.service # systemctl start vncserver@:1.service # systemctl start vncserver@:2.service
客户端
-
下载VNC Viewer
地址:https://www.realvnc.com/en/connect/download/viewer/ -
登陆地址
root用户:ip:5901
user用户:ip:5902
网友评论