给openvz虚拟的VPS安装上VNC服务

2014年12月17日08:52:56 6 1,955

54

这里介绍下在openvz虚拟的VPS上安装vnc服务,方便一些人折腾。简单说下步骤:用root登陆SS输入命令,程序自动化编译过程中会让你输入VNC密码,自动完成后VPS自动重启,然后你用你自己的VNC客户端使用你自己的IP(端口为1,类似于:192.168.20.20:1)登陆,大致这样!说明:这个脚本不是我写的,仅仅只是转载一下,版权归ginernet.com所有!

Ubuntu 12.04 - x86 and 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://www.zhujiceping.com/wp-content/uploads/2014/12/vnc-init-ubuntu-12.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://www.zhujiceping.com/wp-content/uploads/2014/12/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

Debian 7 - x86 and 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://www.zhujiceping.com/wp-content/uploads/2014/12/vnc-init-ubuntu-12.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://www.zhujiceping.com/wp-content/uploads/2014/12/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

CentOS 6 - x86_64 (not valid for 32 bit)
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;


本站不对信息的真伪做任何的保障,请自行甄别,自负责任。
联系站长:QQ-3374457177,TG和Skype账号:hostwyn
QQ群:151264437本站TG群:https://t.me/zhujicepingcom
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

评论:6   其中:访客  0   博主  0
    • 大软 大软 5

      技术文章最好亲测验证下,一般这种转载的基本都不能用!!!

        • admin admin

          @ 大软 不是KVM我基本上不用VNC,他们家卖VPS的,自己写的脚本我估计问题不大!

        • morgan morgan 6

          这命令的排版也太不讲究了吧 :razz:

          • 太软 太软 2

            技术文章最好亲测验证下,一般这种转载的基本都不能用!!!

              • admin admin

                @ 太软 卧槽! 大软、太软!

                  • akw28888 akw28888 6

                    @ admin wordpress可以加個代碼
                    好多了