如何在 Linux 上使用 x2go client使用设置远程桌面

如何在Linux VPS上使用x2g0安装远程桌面?
用X2Go客户端连接到远程桌面
现在可以连接到远程桌面了。在本地主机上,只要运行以下命令或者使用桌面启动器,即可启动 X2Go客户端。
$&x2goclient&
输入远程主机的IP地址和SSH用户名。另外,指定会话类型(也就是远程主机的桌面管理器)。
如果你想要的话,还可以定制其他方面(通过按其他标签),比如连接速度、压缩和屏幕分辨率等。
当你发起远程桌面连接时,会要求你登录。输入你的SSH登录名和密码。
成功登陆后,你会看到远程桌面屏幕。
如果你想要测试 X2Go的无缝窗口功能,选择&Single application&(单个应用程序)作为会话类型,然后指定远处主机上可执行文件的路径。在该例子中,我选择远程KDE主机上的Dolphin文件管理器。
一旦你成功连接,就会在本地桌面上看到远程应用程序窗口,而不是整个远程桌面屏幕。
我在这篇教程中演示了如何在Linux VPS实例上安装X2Go远程桌面。正如你所看到的那样,整个安装过程非常简单(如果你使用合适的桌面环境的话)。虽然有一些针对特定桌面的异常,但X2Go是一种强大的远程桌面解决方案,安全、功能丰富、快速,而且免费。
X2Go的什么功能最吸引你?欢迎留言交流。
标题:How to set up remote desktop on Linux VPS using x2go,作者:Dan Nanni&&&[2]&
【声明】:黑吧安全网()登载此文出于传递更多信息之目的,并不代表本站赞同其观点和对其真实性负责,仅适于网络安全技术爱好者学习研究使用,学习中请遵循国家相关法律法规。如有问题请联系我们,联系邮箱,我们会在最短的时间内进行处理。
上一篇:【】【】如何在 Linux 上使用 x2go 设置远程桌面_Linux中国_传送门
如何在 Linux 上使用 x2go 设置远程桌面
由于一切都迁移到了云上,作为提高职员生产力的一种方式,虚拟远程桌面在工业中越来越流行。尤其对于那些需要在多个地方和设备之间不停漫游的人,远程桌面可以让他们和工作环境保持无缝连接。远程桌面对于雇主同样有吸引力,可以在工作环境中提高敏捷性和灵活性,由于硬件整合、桌面安全加固等原因降低 IT 花费。在 Linux 世界中,理所当然设置远程桌面有很多选择,支持许多协议(例如 RDP、RFB、NX) 和服务器/客户端实现(例如、RealVNC、FreeNX、x2go、X11vnc、TeamViewer 等等)。这当中有个出色的产品叫做 ,它是一个基于 NX(译者注:通过计算机网络显示远程桌面环境的一种技术,可参考 )的远程桌面服务器和客户端的开源(GPLv2)实现。在这个教程中,我会介绍 如何为 Linux VPS 使用 X2Go 设置远程桌面环境。X2Go 是什么? X2Go 的历史要追溯到 NoMachine 的 NX 技术。NX 远程桌面协议的设计目的是通过利用主动压缩和缓存解决低带宽和高延迟的网络连接问题。后来,NX 转为闭源,但 NX 库还是采用 GPL 协议。这导致出现了多种基于 NX 的远程桌面解决方案开源实现,X2Go 就是其中之一。和其它解决方案例如 VNC 相比,X2Go 有哪些好处呢? X2Go 继承了 NX 技术的所有高级功能,很自然能在慢速网络连接上良好工作。另外,由于它内置的基于 SSH 的加密技术,X2Go 保持了确保安全的良好业绩记录。不再需要 。X2Go 默认支持音频,这意味着远程桌面的音乐播放可以通过网络传送,并进入本地扬声器。在易用性方面,远程桌面上运行的应用程序可以在你的本地桌面中以一个独立窗口无缝呈现,会给你造成一种应用程序实际上在你本地桌面运行的错觉。正如你看到的,这些都是一些基于 VNC 的解决方案所缺少的。X2GO 的桌面环境兼容性和其它远程桌面服务器一样,X2Go 服务器也有一些。像 KDE 3/4、Xfce、MATE 和 LXDE 是对 X2Go 服务器最友好的桌面环境。但是,用其它桌面管理器效果可能有所不同。例如,已知 GNOME 3 之后的版本、KDE 5、Unity 和 X2Go 并不兼容。如果你的远程主机的桌面管理器和 X2Go 兼容,你可以继续以下的教程。在 Linux 上安装 X2Go 服务器X2Go 由远程桌面服务器和客户端组件组成。让我们首先安装 X2Go 服务器。我假设你已经有一个和 X2Go 兼容的桌面管理器并且在远程主机上运行,我们会安装 X2Go 服务器到该远程主机。注意系统启动后 X2Go 服务器组件没有需要单独启动的服务。你只需要保证开启了 SSH 服务并在正常运行。Ubuntu 或 Linux Mint:配置 X2Go PPA 库。对于 Ubuntu 14.04 以及更高版本,有可用的 X2Go PPA。$ sudo add-apt-repository ppa:x2go/stable$ sudo apt-get update$ sudo apt-get install x2goserver x2goserver-xsessionDebian (Wheezy):$ sudo apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E$ sudo sh -c "echo deb http://packages.x2go.org/debian wheezy main > /etc/apt/sources.list.d/x2go.list"$ sudo sh -c "echo deb-src http://packages.x2go.org/debian wheezy main >> /etc/apt/sources.list.d/x2go.list"$ sudo apt-get update$ sudo apt-get install x2goserver x2goserver-xsessionFedora:$ sudo yum install x2goserver x2goserver-xsessionCentOS/RHEL:首先启用
然后运行:$ sudo yum install x2goserver x2goserver-xsession 在 Linux 上安装 X2Go 客户端在将会连接到远程桌面的本地主机上,安装以下命令安装 X2Go 客户端。Ubuntu 或 Linux Mint:配置 X2Go PPA 库。对于 Ubuntu 14.04 以及更高版本,有可用的 X2Go PPA。$ sudo add-apt-repository ppa:x2go/stable$ sudo apt-get update$ sudo apt-get install x2goclientDebian (Wheezy):$ sudo apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E$ sudo sh -c "echo deb http://packages.x2go.org/debian wheezy main > /etc/apt/sources.list.d/x2go.list"$ sudo sh -c "echo deb-src http://packages.x2go.org/debian wheezy main >> /etc/apt/sources.list.d/x2go.list"$ sudo apt-get update$ sudo apt-get install x2goclientFedora:$ sudo yum install x2goclientCentOS/RHEL:首先启用
,然后运行:$ sudo yum install x2goclient 用 X2Go 客户端连接到远程桌面现在可以连接到远程桌面了。在本地主机上,只需运行以下命令或者使用桌面启动器启动 X2Go 客户端。$ x2goclient输入远程主机的 IP 地址和 SSH 用户名称。同时,指定会话类型(例如,远程主机的桌面管理器)。如果需要的话,你可以自定义其它东西(通过点击其它的标签),例如连接速度、压缩、屏幕分辨率等等。当你初始化一个远程桌面连接的时候,会要求你登录。输入你的 SSH 登录名和密码。成功登陆后,你会看到远程桌面屏幕。如果你想测试 X2Go 的无缝窗口功能,选择 "Single application" 会话类型,然后指定远处主机上可执行文件的路径。在该例子中,我选择远程 KDE 主机上的 Dolphin 文件管理器。你成功连接后,你会在本地桌面上看到一个远程应用窗口,而不是完整的远程桌面屏幕。总结在这篇教程中,我介绍了如何在
实例上设置 X2Go 远程桌面。正如你所看到的,整个设置过程都非常简单(如果你使用一个合适的桌面环境的话)。尽管对于特定桌面仍有问题,X2Go 是一个安全、功能丰富、快速并且免费的远程桌面解决方案。X2Go 的什么功能最吸引你?欢迎分享你的观点。via: 作者: 译者: 校对:本文由
原创翻译, 荣誉推出
觉得不错,分享给更多人看到
Linux中国 微信二维码
分享这篇文章
6月30日 15:18
Linux中国 最新文章
Linux中国 热门文章linux(94)
About X2Go
X2Go is an Open Source remote desktop application for GNU/Linux that uses NX technology protocol.
The main difference between X2Go and other remote desktop applications is it provides secure standalone remote desktop sessions via SSH.
So, each session connected using X2Go is strongly encrypted and safe. X2Go allows you mainly to connect to Linux systems from Linux, Windows, or Mac OS systems.
Also, many clients can simultaneously connect and use single X2Go server. It comes with two components, namely X2Go server and X2Go client.
X2Go server is a system that is being accessed from a client system. And, the X2Go is a system which can be used to access the X2Go server.
This Client will be able to connect to X2Go server(s) and start, stop, resume and terminate (running) desktop sessions.
X2Go Client stores different server connections and may automatically request authentication data from LDAP directories.
Furthermore it can be used as fullscreen loginscreen (replacement for loginmanager like xdm).
X2Go server package can only be installed in Linux systems, whereas X2Go client package can be installed on many OS, including Linux, Windows, and Mac OS X.
Graphical Remote Desktop that works well over both low bandwidth and high b
The ability to disconnect and reconnect to a session, even
Support for as many simultaneous users as the computer’s re
Traffic is securely tunneled over SSH;
File and printer Sharing f
Easily select from multiple desktop environments (e.g., MATE, GNOME, KDE);
Remote support possible via Desktop S
The ability to access single applications by specifying the name of the desired executable in the client configuration or selecting one of the pre-defined
Server-side list of available applications is displayed on the client, and you can run any number of them from within the same session like Citrix MetaFrame/Presentation Server/XenA
The ability to access a Windows computer that supports RDP via X2Go-proxied RDP;
X2Go client can also serve as a graphical front-end to a client-side rdesktop/x
A Thin Client Envi
A Session Broker that supports centralized configuratio
Install X2Go Server
X2Go server and client installation is much easier compared to other remote desktop applications.
X2Go development team has made separate repositories for different operating systems.
The following instructions describes how to install X2Go server on various distributions. As I mentioned before, the X2Go can only be installed in Linux based systems.
1)On Ubuntu 14.04:
Run the following commands to add X2Go repository and install it in Ubuntu 14.04 or higher versions.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession
2)On Ubuntu 12.04:
For Ubuntu 12.04 and previous versions, you can add X2Go repository and install it as shown below.
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession
3)On Debian 7:
First add X2Go repository. To do that, edit,
sudo vi /etc/apt/sources.list.d/x2go.list
Add the following lines:
X2Go Repository (release builds)
wheezy main
X2Go Repository (sources of release builds)
wheezy main
X2Go Repository (nightly builds)
wheezy heuler
X2Go Repository (sources of nightly builds)
wheezy heuler
Add X2Go GPG key:
sudo apt-key adv –recv-keys –keyserver keys.gnupg.net E1F958385BFE2B6E
Then, update software repository list and install X2Go server using the following commands:
sudo apt-get install x2goserver x2goserver-xsession
4)On Fedora 19 and later:
X2Go server and client packages are available in the default repositories of Fedora 19 and later versions. So, install X2Go server using command:
sudo yum install x2goserver
5)On RHEL 7/Scientific Linux 7/CentOS 7 systems:
Add EPEL repository first.
yum install epel-release
Then, install X2Go server package using command:
yum install fuse-sshfs
yum install x2goserver x2goserver-xsession
6)On RHEL 6/Scientific Linux 6/CentOS 6 systems:
Similarly, add EPEL repository in CentOS/RHEL/Scientific Linux 6.x systems:
yum install epel-release
Then, install X2Go server package using command:
yum install fuse-sshfs
yum install x2goserver x2goserver-xsession
7)On openSUSE systems:
Add X2Go repository as shown below. Replace the version number with your own.
zypper ar /extras x2go-extras
zypper ar /main x2go-release
Then, install X2Go server using command:
zypper in x2goserver x2goserver-xsession
8)On SUSE systems:
Add X2Go repository as shown below. Replace the version number with your own.
zypper ar /extras x2go-extras
zypper ar /main x2go-release
Then, install X2Go server using command:
zypper in x2goserver x2goserver-xsession
OpenSUSE 11 and SLES/SLED 11 do not support /etc/sudoers.d as a place for custom sudoers config files.
If you are using any of these distributions and are having issues regarding running Qt applications with elevated privileges (e.g., via kdesu or sudo), please use this workaround.
Copy the contents of the “x2goserver” file residing in the documentation directory /usr/share/doc/packages/x2goserver.
Get elevated privileges. Either via:
Then, launch:
Paste the previously copied content at the end of the sudoers file. Save and exit your editor.
9)On Gentoo:
Currently X2Go cannot connect to an openssh server compiled with the HPN patch. To make sure x2goserver works on your Gentoo server, you must recompile net-misc/openssh with HPN support disabled. Add the following line to /etc/portage/packages. use:
net-misc/openssh -hpn
Then recompile net-misc/openssh, update the configuration file, and restart the sshd server, as follows:
emerge -1 net-misc/openssh
dispatch-conf
/etc/init.d/sshd restart
Note: A local X.Org installation is not required on the X2Go Server
Install X2Go Client
X2Go Client is available for Windows, Mac OS X, and many Linux distributions.
Add X2Go repository as shown above in the X2Go server installation section depending upon the distribution you use.
Then, install X2Go client using command:
1) On Debian and Ubuntu like systems:
sudo apt-get install x2goclient
2) On RHEL and CentOS like systems:
yum install x2goclient
3) On SUSE and openSUSE like systems:
zypper in x2goclient
From your client systems, launch X2Go client either from Menu or Unity Dash.
Enter the Session name, remote system’s IP address, remote system’s user name, and desktop environments (Ex.LXDE,
KDE etc.).
For example, here I select “Connect to local desktop” session.
Finally, click Ok to continue.
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:90359次
积分:2083
积分:2083
排名:第14691名
原创:84篇
转载:212篇
(6)(9)(5)(3)(6)(7)(16)(6)(6)(9)(9)(19)(14)(15)(15)(16)(43)(24)(36)(18)(7)(6)(1)(1)(3)(1)(2)(1)}

我要回帖

更多关于 mac远程桌面连接linux 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信