yum groupinstall "development tools"
yum groupinstall "gnome desktop"
yum install tigervnc tigervnc-server -y
vncserver :n
#这里的n是 sessionnumber,不指定默认为1,也能够是二、3等等。第一次会提示输入密码,之后能够使用 vncpasswd 命令修改密码。
具体以下:html
[root@oracle ~]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
xauth: file /root/.Xauthority does not exist
New 'oracle.sysit.cn:1 (root)' desktop is oracle.sysit.cn:1
Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oracle.sysit.cn:1.log
[root@oracle ~]# netstat -antlp | grep vnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 31009/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 31009/Xvnc
tcp6 0 0 :::5901 :::* LISTEN 31009/Xvnc
tcp6 0 0 :::6001 :::* LISTEN 31009/Xvnc
[root@oracle ~]# vncserver -kill :1
Killing Xvnc process ID 31009
默认参数,vncserver 显示会图标分辨率会比较小,咱们能够指定参数。服务器
vncserver :1 -geometry 1366x768 -alwaysshared -depth 24
vnc-viewer下载地址:http://www.canadiancontent.net/tech/download/VNC_Viewer.htmlsession
至此能够远程操做。oracle
若是以为个人文章对您有app