概述
X2Go使您可以通过低带宽(或高带宽)连接访问计算机的图形桌面。
X2Go是一个远程桌面解决方案,有些供应商将其模糊地称为“远程控制”。请勿将其与Microsoft远程桌面连接相混淆,后者是竞争性的远程桌面解决方案和协议。
使用X2Go,您主要访问Linux计算机。您正在访问的Linux计算机是X2Go服务器。(也有连接到Windows计算机的方法;其中某些方法仅适用于Linux X2Go Client。)
您可以从运行Linux,Windows或Mac OS X的计算机进行连接。该计算机是X2Go客户端。
多个用户/客户端可以同时访问单个X2Go服务器,默认情况下,每个用户/客户端都具有一个单独的Desktop会话-但是,也可以进行桌面共享(远程协助)。
对于远程桌面会话的图形部分,X2Go在后台使用了No Machine NX3技术。
官网:https://wiki.x2go.org/doku.php/start
安装服务端:以CentOS7.9桌面版实例
1、安装EPEL源:yum install -y epel-release
[root@localhost ~]# yum install -y epel-release Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-13 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: epel-release noarch 7-13 epel 15 k Transaction Summary ================================================================================ Install 1 Package Total download size: 15 k Installed size: 25 k Downloading packages: epel-release-7-13.noarch.rpm | 15 kB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-13.noarch 1/1 warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew Verifying : epel-release-7-13.noarch 1/1 Installed: epel-release.noarch 0:7-13 Complete!
2、安装桌面环境:yum groups install MATE Xfce #客户端的Session Type按需选择MATE或Xfce即可
[root@localhost ~]# yum groups install -y MATE Xfce Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Package pinentry-gtk-0.8.1-17.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package NetworkManager-l2tp.x86_64 0:1.2.18-1.el7 will be installed --> Processing Dependency: xl2tpd for package: NetworkManager-l2tp-1.2.18-1.el7.x86_64 ---> Package NetworkManager-openconnect.x86_64 0:1.2.4-4.el7 will be installed --> Processing Dependency: openconnect >= 7.00 for package: NetworkManager-openconnect-1.2.4-4.el7.x86_64 --> Processing Dependency: libopenconnect.so.5()(64bit) for package: NetworkManager-openconnect-1.2.4-4.el7.x86_64 ---> Package NetworkManager-openvpn.x86_64 1:1.8.10-1.el7 will be installed --> Processing Dependency: openvpn for package: 1:NetworkManager-openvpn-1.8.10-1.el7.x86_64 ---> Package NetworkManager-pptp.x86_64 1:1.2.8-1.el7 will be installed ......此处省略...... ---> Package vpnc-script.noarch 0:0.5.3-22.svn457.el7 will be installed ---> Package web-assets-filesystem.noarch 0:5-1.el7 will be installed --> Running transaction check ---> Package python3-libs.x86_64 0:3.6.8-18.el7 will be installed ---> Package python3-pip.noarch 0:9.0.3-8.el7 will be installed ---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed ---> Package rarian.x86_64 0:0.8.1-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing for group install "MATE": NetworkManager-l2tp x86_64 1.2.18-1.el7 epel 144 k NetworkManager-openconnect x86_64 1.2.4-4.el7 epel 400 k NetworkManager-openvpn x86_64 1:1.8.10-1.el7 epel 256 k NetworkManager-pptp x86_64 1:1.2.8-1.el7 epel 151 k NetworkManager-vpnc x86_64 1:1.2.6-1.el7 epel 164 k NetworkManager-vpnc-gnome x86_64 1:1.2.6-1.el7 epel 55 k ......此处省略...... pluma x86_64 1.16.2-1.el7 epel 608 k rhythmbox x86_64 3.4.2-2.el7 base 5.4 M simple-scan x86_64 3.28.1-1.el7 epel 641 k system-config-date noarch 1.10.6-3.el7.centos base 591 k system-config-language noarch 1.4.0-9.el7 base 133 k system-config-users noarch 1.3.5-5.el7_9 updates 337 k transmission-gtk x86_64 2.94-9.el7 epel 830 k xchat x86_64 1:2.8.8-25.el7 base 953 k yumex noarch 3.0.17-1.el7 epel 444 k Installing for group install "Xfce": Thunar x86_64 1.6.16-1.el7 epel 1.4 M openssh-askpass x86_64 7.4p1-21.el7 base 77 k orage x86_64 4.12.1-3.el7 epel 1.8 M polkit-gnome x86_64 0.106-0.1.20170423gita0763a2.el7 epel 81 k thunar-archive-plugin x86_64 0.3.1-6.el7 epel 69 k thunar-volman x86_64 0.8.1-2.el7 epel 175 k tumbler x86_64 0.1.31-2.el7 epel 195 k xfce4-appfinder x86_64 4.12.0-4.el7 epel 194 k xfce4-panel x86_64 4.12.1-4.el7 epel 828 k xfce4-power-manager x86_64 1.6.0-2.el7 epel 769 k xfce4-pulseaudio-plugin x86_64 0.2.5-2.el7 epel 71 k xfce4-session x86_64 4.12.1-8.el7 epel 484 k xfce4-session-engines x86_64 4.12.1-8.el7 epel 315 k xfce4-settings x86_64 4.12.1-1.el7 epel 667 k xfce4-terminal x86_64 0.8.7.4-2.el7 epel 579 k xfconf x86_64 4.12.0-3.el7 epel 199 k xfdesktop x86_64 4.12.4-3.el7 epel 1.0 M xfwm4 x86_64 4.12.3-2.el7 epel 627 k Installing for dependencies: ImageMagick x86_64 6.9.10.68-5.el7_9 updates 2.3 M OpenEXR-libs x86_64 1.7.1-8.el7 base 217 k SDL x86_64 1.2.15-17.el7 base 206 k atril-libs x86_64 1.16.1-2.el7 epel 310 k caja-extensions x86_64 1.16.6-1.el7 epel 29 k caja-extensions-common noarch 1.16.0-1.el7 epel 116 k caja-schemas x86_64 1.16.6-1.el7 epel 2.0 M compat-libical1 x86_64 1.0.1-2.el7 base 172 k ......此处省略...... system-config-users-docs noarch 1.0.9-6.el7 base 308 k texlive-kpathsea-lib x86_64 2:2012-45.20130427_r30134.el7 base 79 k transmission-common x86_64 2.94-9.el7 epel 777 k unique x86_64 1.1.6-10.el7 epel 55 k usermode-gtk x86_64 1.111-6.el7 base 110 k vpnc x86_64 0.5.3-22.svn457.el7 epel 85 k vpnc-script noarch 0.5.3-22.svn457.el7 epel 14 k web-assets-filesystem noarch 5-1.el7 epel 4.6 k wxBase x86_64 2.8.12-20.el7 epel 588 k wxGTK x86_64 2.8.12-20.el7 epel 2.9 M xfce-polkit x86_64 0.2-8.el7 epel 20 k xl2tpd x86_64 1.3.15-1.el7 epel 101 k Transaction Summary ================================================================================ Install 80 Packages (+95 Dependent packages) Total download size: 189 M Installed size: 666 M Downloading packages: (1/175): NetworkManager-l2tp-1.2.18-1.el7.x86_64.rpm | 144 kB 00:00 (2/175): NetworkManager-openvpn-1.8.10-1.el7.x86_64.rpm | 256 kB 00:00 (3/175): NetworkManager-pptp-1.2.8-1.el7.x86_64.rpm | 151 kB 00:00 (4/175): NetworkManager-openconnect-1.2.4-4.el7.x86_64.rpm | 400 kB 00:00 (5/175): NetworkManager-vpnc-1.2.6-1.el7.x86_64.rpm | 164 kB 00:00 (6/175): NetworkManager-vpnc-gnome-1.2.6-1.el7.x86_64.rpm | 55 kB 00:00 ......此处省略...... (171/175): xfdesktop-4.12.4-3.el7.x86_64.rpm | 1.0 MB 00:00 (172/175): xchat-2.8.8-25.el7.x86_64.rpm | 953 kB 00:01 (173/175): xfwm4-4.12.3-2.el7.x86_64.rpm | 627 kB 00:00 (174/175): xl2tpd-1.3.15-1.el7.x86_64.rpm | 101 kB 00:00 (175/175): yumex-3.0.17-1.el7.noarch.rpm | 444 kB 00:00 -------------------------------------------------------------------------------- Total 4.6 MB/s | 189 MB 00:41 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libxfce4util-4.12.1-2.el7.x86_64 1/175 Installing : mate-desktop-libs-1.16.2-1.el7.x86_64 2/175 Installing : xfconf-4.12.0-3.el7.x86_64 3/175 Installing : libxfce4ui-4.12.1-3.el7.x86_64 4/175 Installing : exo-0.10.7-1.el7.x86_64 5/175 Installing : libwnck-2.31.0-1.el7.x86_64 6/175 ......此处省略...... Installing : p7zip-16.02-10.el7.x86_64 169/175 Installing : abrt-java-connector-1.0.6-12.el7.x86_64 170/175 Installing : polkit-gnome-0.106-0.1.20170423gita0763a2.el7.x86_64 171/175 Installing : network-manager-applet-1.8.6-2.el7.x86_64 172/175 Installing : simple-scan-3.28.1-1.el7.x86_64 173/175 Installing : mate-calc-1.8.0-1.el7.x86_64 174/175 Installing : tumbler-0.1.31-2.el7.x86_64 175/175 Verifying : mate-desktop-1.16.2-1.el7.x86_64 1/175 Verifying : marco-1.16.1-4.el7.x86_64 2/175 Verifying : filezilla-3.7.4.1-1.el7.x86_64 3/175 Verifying : mate-screensaver-1.16.1-1.el7.x86_64 4/175 Verifying : libgnomecanvas-2.30.3-8.el7.x86_64 5/175 Verifying : rarian-compat-0.8.1-11.el7.x86_64 6/175 Verifying : 1:NetworkManager-vpnc-gnome-1.2.6-1.el7.x86_64 7/175 ......此处省略...... Verifying : mate-icon-theme-1.16.2-1.el7.noarch 170/175 Verifying : rarian-0.8.1-11.el7.x86_64 171/175 Verifying : system-config-users-1.3.5-5.el7_9.noarch 172/175 Verifying : atril-libs-1.16.1-2.el7.x86_64 173/175 Verifying : openconnect-8.10-1.el7.x86_64 174/175 Verifying : xfce4-session-4.12.1-8.el7.x86_64 175/175 Installed: NetworkManager-l2tp.x86_64 0:1.2.18-1.el7 NetworkManager-openconnect.x86_64 0:1.2.4-4.el7 NetworkManager-openvpn.x86_64 1:1.8.10-1.el7 NetworkManager-pptp.x86_64 1:1.2.8-1.el7 NetworkManager-vpnc.x86_64 1:1.2.6-1.el7 NetworkManager-vpnc-gnome.x86_64 1:1.2.6-1.el7 Thunar.x86_64 0:1.6.16-1.el7 ......此处省略...... xfce4-settings.x86_64 0:4.12.1-1.el7 xfce4-terminal.x86_64 0:0.8.7.4-2.el7 xfconf.x86_64 0:4.12.0-3.el7 xfdesktop.x86_64 0:4.12.4-3.el7 xfwm4.x86_64 0:4.12.3-2.el7 yumex.noarch 0:3.0.17-1.el7 Dependency Installed: ImageMagick.x86_64 0:6.9.10.68-5.el7_9 OpenEXR-libs.x86_64 0:1.7.1-8.el7 SDL.x86_64 0:1.2.15-17.el7 atril-libs.x86_64 0:1.16.1-2.el7 caja-extensions.x86_64 0:1.16.6-1.el7 caja-extensions-common.noarch 0:1.16.0-1.el7 ......此处省略...... vpnc-script.noarch 0:0.5.3-22.svn457.el7 web-assets-filesystem.noarch 0:5-1.el7 wxBase.x86_64 0:2.8.12-20.el7 wxGTK.x86_64 0:2.8.12-20.el7 xfce-polkit.x86_64 0:0.2-8.el7 xl2tpd.x86_64 0:1.3.15-1.el7 Complete!
3、安装x2goserver:yum install -y x2goserver x2goserver-xsession
[root@localhost ~]# yum install -y x2goserver x2goserver-xsession Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package x2goserver.x86_64 0:4.1.0.3-9.el7 will be installed --> Processing Dependency: x2goagent = 4.1.0.3-9.el7 for package: x2goserver-4.1.0.3-9.el7.x86_64 --> Processing Dependency: x2goserver-common = 4.1.0.3-9.el7 for package: x2goserver-4.1.0.3-9.el7.x86_64 --> Processing Dependency: perl(File::BaseDir) for package: x2goserver-4.1.0.3-9.el7.x86_64 --> Processing Dependency: perl(File::Which) for package: x2goserver-4.1.0.3-9.el7.x86_64 --> Processing Dependency: perl(Sys::Syslog) for package: x2goserver-4.1.0.3-9.el7.x86_64 --> Processing Dependency: perl(Try::Tiny) for package: x2goserver-4.1.0.3-9.el7.x86_64 ......此处省略...... --> Processing Dependency: nx-libs(x86-64) = 3.5.99.26-1.el7 for package: libNX_X11-3.5.99.26-1.el7.x86_64 ---> Package libXcomp.x86_64 0:3.5.99.26-1.el7 will be installed ---> Package libXcompshad.x86_64 0:3.5.99.26-1.el7 will be installed ---> Package libXfont.x86_64 0:1.5.4-1.el7 will be installed --> Running transaction check ---> Package nx-libs.x86_64 0:3.5.99.26-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: x2goserver x86_64 4.1.0.3-9.el7 epel 125 k x2goserver-xsession noarch 4.1.0.3-9.el7 epel 17 k Installing for dependencies: fuse-sshfs x86_64 2.10-1.el7 epel 50 k libNX_X11 x86_64 3.5.99.26-1.el7 epel 609 k libXcomp x86_64 3.5.99.26-1.el7 epel 526 k libXcompshad x86_64 3.5.99.26-1.el7 epel 179 k libXfont x86_64 1.5.4-1.el7 base 153 k nx-libs x86_64 3.5.99.26-1.el7 epel 170 k nxagent x86_64 3.5.99.26-1.el7 epel 1.6 M perl-Capture-Tiny noarch 0.24-1.el7 base 31 k perl-Config-Simple noarch 4.59-15.el7 base 35 k perl-File-BaseDir noarch 0.03-14.el7 epel 13 k perl-File-Which noarch 1.09-12.el7 base 19 k perl-Switch noarch 2.16-7.el7 base 22 k perl-Sys-Syslog x86_64 0.33-3.el7 base 42 k perl-Try-Tiny noarch 0.12-2.el7 base 23 k perl-X2Go-Log noarch 4.1.0.3-9.el7 epel 57 k perl-X2Go-Server noarch 4.1.0.3-9.el7 epel 70 k perl-X2Go-Server-DB x86_64 4.1.0.3-9.el7 epel 71 k pwgen x86_64 2.08-1.el7 epel 26 k x2goagent x86_64 4.1.0.3-9.el7 epel 59 k x2goserver-common noarch 4.1.0.3-9.el7 epel 58 k xorg-x11-fonts-misc noarch 7.5-9.el7 base 5.8 M Transaction Summary ================================================================================ Install 2 Packages (+21 Dependent packages) Total download size: 9.7 M Installed size: 18 M Downloading packages: (1/23): fuse-sshfs-2.10-1.el7.x86_64.rpm | 50 kB 00:00 (2/23): libNX_X11-3.5.99.26-1.el7.x86_64.rpm | 609 kB 00:00 (3/23): libXcompshad-3.5.99.26-1.el7.x86_64.rpm | 179 kB 00:00 (4/23): libXcomp-3.5.99.26-1.el7.x86_64.rpm | 526 kB 00:00 (5/23): nx-libs-3.5.99.26-1.el7.x86_64.rpm | 170 kB 00:00 (6/23): libXfont-1.5.4-1.el7.x86_64.rpm | 153 kB 00:00 (7/23): nxagent-3.5.99.26-1.el7.x86_64.rpm | 1.6 MB 00:00 (8/23): perl-Capture-Tiny-0.24-1.el7.noarch.rpm | 31 kB 00:00 (9/23): perl-Config-Simple-4.59-15.el7.noarch.rpm | 35 kB 00:00 (10/23): perl-File-Which-1.09-12.el7.noarch.rpm | 19 kB 00:00 (11/23): perl-Sys-Syslog-0.33-3.el7.x86_64.rpm | 42 kB 00:00 (12/23): perl-File-BaseDir-0.03-14.el7.noarch.rpm | 13 kB 00:00 (13/23): perl-Try-Tiny-0.12-2.el7.noarch.rpm | 23 kB 00:00 (14/23): perl-Switch-2.16-7.el7.noarch.rpm | 22 kB 00:00 (15/23): perl-X2Go-Server-4.1.0.3-9.el7.noarch.rpm | 70 kB 00:00 (16/23): perl-X2Go-Log-4.1.0.3-9.el7.noarch.rpm | 57 kB 00:00 (17/23): perl-X2Go-Server-DB-4.1.0.3-9.el7.x86_64.rpm | 71 kB 00:00 (18/23): pwgen-2.08-1.el7.x86_64.rpm | 26 kB 00:00 (19/23): x2goagent-4.1.0.3-9.el7.x86_64.rpm | 59 kB 00:00 (20/23): x2goserver-4.1.0.3-9.el7.x86_64.rpm | 125 kB 00:00 (21/23): x2goserver-common-4.1.0.3-9.el7.noarch.rpm | 58 kB 00:00 (22/23): x2goserver-xsession-4.1.0.3-9.el7.noarch.rpm | 17 kB 00:00 (23/23): xorg-x11-fonts-misc-7.5-9.el7.noarch.rpm | 5.8 MB 00:01 -------------------------------------------------------------------------------- Total 3.7 MB/s | 9.7 MB 00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : x2goserver-common-4.1.0.3-9.el7.noarch 1/23 Installing : perl-Sys-Syslog-0.33-3.el7.x86_64 2/23 Installing : nx-libs-3.5.99.26-1.el7.x86_64 3/23 Installing : libXcomp-3.5.99.26-1.el7.x86_64 4/23 Installing : libNX_X11-3.5.99.26-1.el7.x86_64 5/23 Installing : libXcompshad-3.5.99.26-1.el7.x86_64 6/23 ......此处省略...... Verifying : libNX_X11-3.5.99.26-1.el7.x86_64 17/23 Verifying : libXfont-1.5.4-1.el7.x86_64 18/23 Verifying : perl-X2Go-Server-4.1.0.3-9.el7.noarch 19/23 Verifying : x2goagent-4.1.0.3-9.el7.x86_64 20/23 Verifying : perl-Switch-2.16-7.el7.noarch 21/23 Verifying : libXcompshad-3.5.99.26-1.el7.x86_64 22/23 Verifying : x2goserver-common-4.1.0.3-9.el7.noarch 23/23 Installed: x2goserver.x86_64 0:4.1.0.3-9.el7 x2goserver-xsession.noarch 0:4.1.0.3-9.el7 Dependency Installed: fuse-sshfs.x86_64 0:2.10-1.el7 libNX_X11.x86_64 0:3.5.99.26-1.el7 libXcomp.x86_64 0:3.5.99.26-1.el7 libXcompshad.x86_64 0:3.5.99.26-1.el7 libXfont.x86_64 0:1.5.4-1.el7 nx-libs.x86_64 0:3.5.99.26-1.el7 nxagent.x86_64 0:3.5.99.26-1.el7 perl-Capture-Tiny.noarch 0:0.24-1.el7 perl-Config-Simple.noarch 0:4.59-15.el7 perl-File-BaseDir.noarch 0:0.03-14.el7 perl-File-Which.noarch 0:1.09-12.el7 perl-Switch.noarch 0:2.16-7.el7 perl-Sys-Syslog.x86_64 0:0.33-3.el7 perl-Try-Tiny.noarch 0:0.12-2.el7 perl-X2Go-Log.noarch 0:4.1.0.3-9.el7 perl-X2Go-Server.noarch 0:4.1.0.3-9.el7 perl-X2Go-Server-DB.x86_64 0:4.1.0.3-9.el7 pwgen.x86_64 0:2.08-1.el7 x2goagent.x86_64 0:4.1.0.3-9.el7 x2goserver-common.noarch 0:4.1.0.3-9.el7 xorg-x11-fonts-misc.noarch 0:7.5-9.el7 Complete!
客户端连接