一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

OpenVZ VPS主机一键安装VNC桌面环境(Ubuntu, Debian, CentOS)

时间:2016-02-27 编辑:简简单单 来源:一聚教程网

有不少的朋友在阅读上面文章也是可以安装使用的,但是还有一些用户提到比较复杂,毕竟对于初次接触Linux的用户来说,输入命令都是一键难事。于是老蒋整理到OpenVZ VPS主机基于Ubuntu, Debian, CentOS这3个发行版本安装VNC远程桌面的教程。

 

第一、安装VNC一键包

 

A、Ubuntu(12.04 32或者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 http://soft.itbulu.com/vnc/vnc-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 http://soft.itbulu.com/vnc/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

 

B、Debian(7 32或者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 http://soft.itbulu.com/vnc/vnc-debian-7.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 http://soft.itbulu.com/vnc/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

 

C、CentOS(6 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;

 

以上3个方法针对Ubuntu, Debian, CentOS发行版本。老蒋都测试过可以使用的,我们只需要将VPS安装成上面的发行版本之一,然后执行。在完成安装之前需要我们输入两次VNC密码,然后会自动重启服务器。

 

第二、登录VNC远程桌面
 代码如下 复制代码
下载地址:http://soft.itbulu.com/tools/vnc.zip
XFCE-8

 

这里通过VNC工具登陆,输入我们的IP:1,密码是我们设置的密码。

 

第三、VNC远程界面操作

 

VNC远程界面操作

 

我们登录后可以看到界面,老蒋是基于CENTOS6安装的。这里连带火狐浏览器都一并安装,对于我们操作项目的时候基本上都是基于浏览器执行的,是不是很方便的安装?

 

总结,这个一键安装VNC桌面的方法比之前步骤安装简单很多吧?我们需要注意的是基于对应的版本,因为对应的版本是成功测试过的。如果我们有朋友还是不会安装,那可以找老蒋帮助安装。

热门栏目