远程连接linux桌面的方法:
1、保证linux是有桌面界面的版本
2、安装xrdp,xrdp在 epel仓库可以使用,所以配置 epel仓库:sudo rpm -uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3、安装插件:sudo -y yum install xrdp,结果如下:
[hadoop@master ~]$ sudo yum -y install xrdploaded plugins: fastestmirror, langpacksloading mirror speeds from cached hostfileepel/x86_64/metalink | 8.5 kb 00:00:00 * base: mirrors.163.com * epel: ftp.cuhk.edu.hk * extras: mirrors.163.com * updates: ftp.sjtu.edu.cnepel | 4.7 kb 00:00:00 http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/7/x86_64/repodata/repomd.xml: [errno -1] repomd.xml does not match metalink for epeltrying other mirror.epel | 3.2 kb 00:00:00 (1/3): epel/x86_64/group_gz | 88 kb 00:00:00 (2/3): epel/x86_64/updateinfo | 943 kb 00:00:15 (3/3): epel/x86_64/primary | 3.6 mb 00:01:37 epel 12687/12687resolving dependencies--> running transaction check---> package xrdp.x86_64 1:0.9.7-1.el7 will be installed--> processing dependency: xorgxrdp for package: 1:xrdp-0.9.7-1.el7.x86_64--> running transaction check---> package xorgxrdp.x86_64 0:0.2.7-1.el7 will be installed--> finished dependency resolutiondependencies resolved============================================================================================================================================================================================== package arch version repository size==============================================================================================================================================================================================installing: xrdp x86_64 1:0.9.7-1.el7 epel 416 kinstalling for dependencies: xorgxrdp x86_64 0.2.7-1.el7 epel 62 ktransaction summary==============================================================================================================================================================================================install 1 package (+1 dependent package)total download size: 478 kinstalled size: 2.2 mdownloading packages:warning: /var/cache/yum/x86_64/7/epel/packages/xorgxrdp-0.2.7-1.el7.x86_64.rpm: header v3 rsa/sha256 signature, key id 352c64e5: nokey ] 0.0 b/s | 0 b --:--:-- eta public key for xorgxrdp-0.2.7-1.el7.x86_64.rpm is not installed(1/2): xorgxrdp-0.2.7-1.el7.x86_64.rpm | 62 kb 00:00:01 (2/2): xrdp-0.9.7-1.el7.x86_64.rpm | 416 kb 00:00:07 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------total 62 kb/s | 478 kb 00:00:07 retrieving key from file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-7importing gpg key 0x352c64e5: userid : "fedora epel (7) <epel@fedoraproject.org>" fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 package : epel-release-7-11.noarch (installed) from : /etc/pki/rpm-gpg/rpm-gpg-key-epel-7running transaction checkrunning transaction testtransaction test succeededrunning transactionwarning: rpmdb altered outside of yum.** found 11 pre-existing rpmdb problem(s), 'yum check' output follows:icedtea-web-1.7.1-1.el7.x86_64 has missing requires of java-1.8.0-openjdkicedtea-web-1.7.1-1.el7.x86_64 has missing requires of jpackage-utilsicedtea-web-1.7.1-1.el7.x86_64 has missing requires of jpackage-utilsjline-1.0-8.el7.noarch has missing requires of java >= ('0', '1.5', none)jline-1.0-8.el7.noarch has missing requires of jpackage-utils1:libreoffice-core-5.3.6.1-10.el7.x86_64 has missing requires of java-headless >= ('1', '1.6', none)1:libreoffice-ure-5.3.6.1-10.el7.x86_64 has missing requires of libjvm.so()(64bit)rhino-1.7r5-1.el7.noarch has missing requires of jpackage-utilsrhino-1.7r5-1.el7.noarch has missing requires of jpackage-utilstagsoup-1.2.1-8.el7.noarch has missing requires of jpackage-utilstagsoup-1.2.1-8.el7.noarch has missing requires of jpackage-utils >= ('0', '1.6', none) installing : xorgxrdp-0.2.7-1.el7.x86_64 1/2 installing : 1:xrdp-0.9.7-1.el7.x86_64 2/2 verifying : xorgxrdp-0.2.7-1.el7.x86_64 1/2 verifying : 1:xrdp-0.9.7-1.el7.x86_64 2/2 installed: xrdp.x86_64 1:0.9.7-1.el7 dependency installed: xorgxrdp.x86_64 0:0.2.7-1.el7 complete!
4、安装插件:sudo yum -y install tigervnc-server
5、启动服务:/bin/systemctl start xrdp.service
[hadoop@master ~]$ /bin/systemctl start xrdp.service==== authenticating for org.freedesktop.systemd1.manage-units ===authentication is required to manage system services or units.authenticating as: rootpassword: ==== authentication complete ===[hadoop@master ~]$
windows端远程连接linux图形桌面:
1、打开远程桌面工具:
2、输入linuxip地址,阅读警告后点“是”
3、输入linux用户名和密码
相关文章教程推荐:linux教程
以上就是如何远程连接linux桌面的详细内容。