#远程桌面版# 一键安装支持VNC的桌面版Linux

vnc-ubuntu之前微魔给大家介绍了手动安装VNC和可视化桌面的教程(任意门),但是,一些新人朋友似乎并不满足~而微魔有时候也会感慨,要是不用自己一步一步输入命令多好…于是乎,微魔在网络上就搜到了一段Linux指令,可以快速的完成VNC和可视化桌面的安装,文中命令适用于ubuntu 12.04,Debian7和CentOS 6,大家针对版本使用吧。

注:本文代码来源于VPS服务商GinerNet(查看促销),代码所有权归属原作者所有。

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 https://ginernet.com/downloads/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 https://ginernet.com/downloads/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

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 https://ginernet.com/downloads/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 https://ginernet.com/downloads/vnc-init-ubuntu-12.txt -O vncserver; chmod 755 vncserver; update-rc.d vncserver defaults 99; reboot;

CentOS 6 64位系统(不支持32位)

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;

安装完成后,请使用VNC链接软件(如VNC Viewer)连接远程,默认用户为root,端口为:1

单纯的复制-粘贴、采集本文而不加转载链接的“高手”,注定会因为不尊重知识产权的无知行为在独立博客界受到鄙视和耻笑!

猜你 喜欢

关于作者: 微魔

小微魔,大智慧!

多条评论

  1. 现在很少用桌面了-感觉现在个人站长做网站已经没有发现了.个人博客和地方站除外.希望可以得到你的见解.

    1. 现在的采集都“智能”的很,不仅匿名转载,而且会删掉微魔这两个字。。。不过还好啦,其实我心态还没到那种境地~

      1. 不知道怎么了,可能还有google字体在里面吧,刚刚建好= =
        刚刚把没写几篇的数据库搞丢了= =
        你按停止就行了233

  2. 大哥,你安装测试了没,我用Ubuntu12。04,安装2次都英文版,进系统发现,,,,Language Support这个选项都没有,怎么切换中文啊

    1. 同样安装的是Ubuntu,这个是老外的脚本(文章里有写),当然就是英文的,我本身笔记本上安装的也是英文版的Linux,所以压根没切换中文。你说的Language Support是Unity桌面的选项,这个是xfce桌面(因为更省资源),位置肯定不同。一般汉化的做法是把locale的LANG、LC_CTYPE和LC_ALL设置成zhCN_GB2312

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注