OpenVZ VPS (Ubuntu、Debian、CentOS)安装VNC

分类 建站知识  最后修订: 2016年11月27日 21:50:00

root用户,ssh下,端口为:1。

CentOS 6 - x86_64

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 http://linuxdownload.adobe.com/adobe-release/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;

Debian 7 - x86 和 x86_64

apt-get update -y;apt-get upgrade -y;apt-get install nano -y;apt-get install gnome-core flashplugin-nonfree -y;apt-get install vnc4server -y; vncserver; vncserver -kill :1; cd ~; wget https://zhujiwiki.com/usr/uploads/2016/11/2674583793.txt -O .vnc/xstartup; mkdir -p /etc/vncserver; echo 'VNCSERVERS="1:root"' >> /etc/vncserver/vncservers.conf; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/vncserver/vncservers.conf; cd /etc/init.d/; wget https://zhujiwiki.com/usr/uploads/2016/11/3672035795.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

Ubuntu 12.04 - x86 和 x86_64

apt-get update -y;apt-get upgrade -y;apt-get install nano -y;apt-get install gnome-core firefox flashplugin-installer -y;apt-get install vnc4server -y; vncserver; vncserver -kill :1; cd ~; wget https://zhujiwiki.com/usr/uploads/2016/11/1886524663.txt -O .vnc/xstartup; mkdir -p /etc/vncserver; echo 'VNCSERVERS="1:root"' >> /etc/vncserver/vncservers.conf; echo 'VNCSERVERARGS[1]="-geometry 1000x700"' >> /etc/vncserver/vncservers.conf; cd /etc/init.d/; wget https://zhujiwiki.com/usr/uploads/2016/11/3672035795.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

vi:how-to-install-vnc-server-in-openvz-vps-container-ubuntu-debian-or-centos

温馨提示:文章内容系网络信息分享,不代表 主机百科 对观点赞同或支持。

版权声明:本文为原创文章,版权归 主机百科 所有,转载请注明出处!

讨论交流:VPS、独立服务器、虚拟主机等讨论,QQ交流群:332991659 // TG群:https://t.me/zhujiwiki

联系站长:主机代购、网站建设等联系QQ:202730019 // Email:admin@zhujiwiki.com

添加新评论