给你的LinuxVPS装个远程桌面

Modified on: Sat, 31 Oct 2015 09:59:00 +0800

有些人抱怨Linux的系统没有桌面,用着实在是不方便。今天整理一下网上的教程,给VPS装个桌面环境。Centos系统+X Window+GNOME Desktop。

此程序会安装无数乱七八糟的东西到你的VPS上,尤其是LNMP装完重启基本都会勃起不了。一定不要应用在使用中的VPS上面,另外,因未知原因可能会安装不上或连接不上等,请不要问我为什么,谢谢。

注意:最少需要512M或以上内存,256内存,就不要玩这个了。

一、在VPS上面安装环境:

wget http://down.vpsmm.com/shell/xwindow.sh;sh ./xwindow.sh;

安装过程很快,一般10分钟内都可以完成。完成后,会出现以下提示:

Complete!
===========================
======= Download FreeNX Windows software  : =======
http://down.vpsmm.com/shell/xwindows.sh
======= How to use FreeNX connect to your Linux X Window System: =======
https://wiki.vpsmm.com/
Install X Window System Successful,Press any key to end...

二、在本机登陆远程VPS桌面:

首选要下载一个软件:FreeNX Windows (猛击我进入下载

1.安装后第一次运行,会有一个向导,第一步需要输入IP和端口:

nx-1.png

2.选择unix GNOME

nx-2.png

3.输入root用户名密码,登陆就可以了。

nx-3.png

我在很多VPS上测试过,包括BURST,VPSYOU,DS,PN,YARD等,有的可以直接登陆成功,有的需要导入证书(方法见下面),有的就是不成功。我也不知道原因,行就行,不行就是不行。切记:不要问我为什么。

nx-5.png

三、下载VPS证书并导入:

存储在/backup/vpsmm.com/client.id_dsa.key,可以使用flashfxp或filezilla下载。

nx-4.png

已有 4 条评论

  1. macb macb

    cp: cannot stat `/etc/nxserver/client.id_dsa.key': No such file or directory
    chmod: cannot access `/backup/www.vpsmm.com/client.id_dsa.key': No such file or directory
    chmod: cannot access `\r': No such file or directory
    : command not found27:
    : command not found28:
    : command not found30:
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ptables v1.4.7: Invalid target name `ACCEPT
    Try `iptables -h' or 'iptables --help' for more information.
    : No such file or directoryx/config
    : command not found37:
    ===========================
    '/xwindow.sh: line 39: syntax error near unexpected token `
    '/xwindow.sh: line 39: ` get_char()

  2. abc abc

    我也是出现了这个

  3. anxuanzi anxuanzi

    这是啥毛病

  4. anxuanzi anxuanzi

    [root@RH-192 ~]# wget http://down.vpsmm.com/shell/xwindow.sh;sh ./xwindow.sh;
    --2017-04-15 02:27:52-- http://down.vpsmm.com/shell/xwindow.sh
    Resolving down.vpsmm.com... 118.190.82.42
    Connecting to down.vpsmm.com|118.190.82.42|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1651 (1.6K) [application/octet-stream]
    Saving to: “xwindow.sh.1”

    100%[======================================>] 1,651 --.-K/s in 0s

    2017-04-15 02:27:57 (319 MB/s) - “xwindow.sh.1” saved [1651/1651]

    : command not found2:
    : command not found4:
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    Package yum-plugin-fastestmirror-1.1.30-40.el6.noarch already installed and latest version
    available.
    Nothing to do
    : command not found7:
    : command not found9:
    : command not found10:
    : command not found11:
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Group Process
    Loading mirror speeds from cached hostfile
    Package xorg-x11-server-Xorg-1.17.4-16.el6.centos.x86_64 already installed and latest version
    Package xorg-x11-xinit-1.0.9-14.el6.x86_64 already installed and latest version
    Package 1:xorg-x11-xauth-1.0.9-1.el6.x86_64 already installed and latest version
    Package xorg-x11-drivers-7.3-13.4.el6.x86_64 already installed and latest version
    Package wdaemon-0.17-5.el6.x86_64 already installed and latest version
    Package xorg-x11-server-utils-7.7-14.el6.x86_64 already installed and latest version
    Package hal-0.5.14-14.el6.x86_64 already installed and latest version
    Package plymouth-system-theme-0.8.3-29.el6.centos.noarch already installed and latest version
    Package xorg-x11-utils-7.5-14.el6.x86_64 already installed and latest version
    Package wacomexpresskeys-0.4.2-3.el6.x86_64 already installed and latest version
    Package spice-vdagent-0.14.0-13.el6.x86_64 already installed and latest version
    Package firstboot-1.110.15-4.el6.x86_64 already installed and latest version
    Package glx-utils-11.0.7-4.el6.x86_64 already installed and latest version
    Package xvattr-1.3-18.el6.x86_64 already installed and latest version
    Warning: Group x11 does not have any packages.
    No packages in any requested group available to install or update
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Group Process
    Loading mirror speeds from cached hostfile
    does not exist.NOME Desktop Environment
    Error: No packages in any requested group available to install or update
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    Package nc-1.84-24.el6.x86_64 already installed and latest version
    Package expect-5.44.1.15-5.el6_4.x86_64 already installed and latest version
    available.freenx
    Nothing to do
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Group Process
    Loading mirror speeds from cached hostfile
    Package cjkuni-uming-fonts-0.2.20080216.1-36.el6.noarch already installed and latest version
    Package ibus-table-cangjie-1.2.0.20100210-1.el6.noarch already installed and latest version
    Package wqy-zenhei-fonts-0.9.45-3.el6.noarch already installed and latest version
    Package ibus-table-erbi-1.2.0.20090901-8.el6.noarch already installed and latest version
    Package ibus-table-wubi-1.2.0.20090715-8.el6.noarch already installed and latest version
    Package cjkuni-ukai-fonts-0.2.20080216.1-36.el6.noarch already installed and latest version
    Package ibus-chewing-1.3.5.20100714-4.el6.x86_64 already installed and latest version
    Package ibus-pinyin-1.3.8-1.el6.x86_64 already installed and latest version
    Warning: Group chinese-support does not have any packages.
    No packages in any requested group available to install or update
    : command not found17:
    : command not found18:
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    available.firefox
    Error: Nothing to do
    : command not found21:
    : command not found24:
    cp: cannot stat `/etc/nxserver/client.id_dsa.key': No such file or directory
    chmod: cannot access `/backup/www.vpsmm.com/client.id_dsa.key': No such file or directory
    chmod: cannot access `\r': No such file or directory
    : command not found27:
    : command not found28:
    : command not found30:
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ad argument `
    Try `iptables -h' or 'iptables --help' for more information.
    'ptables v1.4.7: Invalid target name `ACCEPT
    Try `iptables -h' or 'iptables --help' for more information.
    : No such file or directoryx/config
    : command not found37:
    ===========================
    '/xwindow.sh: line 39: syntax error near unexpected token `
    '/xwindow.sh: line 39: ` get_char()
    [root@RH-192 ~]#

添加新评论