centos6 64位一键桌面环境+VNC

yum install nano -y; yum update -y; yum upgrade -y; yum install tigervnc-server -y; yum groupinstall "Desktop" -y; yum install firefox -y; rpm -ivh https://soft.laozuo.org/vnc/adobe-release-x86_64-1.0-1.noarch.rpm; rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux; yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl -y; echo 'echo "nameserver 8.8.8.8" >> /etc/resolv.conf; ' >> /etc/rc.local; echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/sysconfig/vncservers; vncpasswd; chkconfig vncserver on --level 345; reboot;

只需要在我们的CENTOS 6 64位环境中丢入上面的脚本回车,就会自动安装,在安装最后,会要求我们输入两次VNC密码。

安装成功之后会自动REBOOT重启VPS,然后稍等启动之后,我们在用VNC链接软件登陆远程桌面

远程端口:5901

使用 root用户登录即可

最终效果

或者参照这个连接:https://www.cnblogs.com/paul8339/p/5584449.html

猜你喜欢

转载自blog.csdn.net/liuguiqian1/article/details/83745817