CentOS 6.x 安装vnc

时间:2023-03-10 01:49:30
CentOS 6.x 安装vnc
https://www.cnblogs.com/pipci/p/7833581.html
1.安装vnc server
[root@pxe ~]# yum install tigervnc-server -y
2.设置 vnc server 开机启动
[root@pxe ~]# chkconfig vncserver on
手工启动:
vncpassword
su - oracle
vncserver :1
3.修改vncserver 配置文件
[root@pxe ~]# vi /etc/sysconfig/vncservers
在配置文件后添加以下内容
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1366x768 -nolisten tcp"
设置vncserver 的密码
[root@pxe ~]# vncpasswd 
Password:
Verify:
4.启动sncserver 服务
[root@pxe ~]# /etc/init.d/vncserver start