溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

怎么遠(yuǎn)程連接linux桌面

發(fā)布時(shí)間:2021-03-05 10:39:14 來(lái)源:億速云 閱讀:377 作者:小新 欄目:編程語(yǔ)言

這篇文章主要介紹了怎么遠(yuǎn)程連接linux桌面,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

遠(yuǎn)程連接linux桌面的方法:

1、保證Linux是有桌面界面的版本

2、安裝xrdp,xrdp在 EPEL倉(cāng)庫(kù)可以使用,所以配置 EPEL倉(cāng)庫(kù):sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

3、安裝插件:sudo -y yum install xrdp,結(jié)果如下:

[hadoop@master ~]$ sudo yum -y install xrdp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/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.cn
epel                                                                                                                                                                   | 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 epel
Trying 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/12687
Resolving 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 Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                       Arch                                        Version                                            Repository                                 Size
==============================================================================================================================================================================================
Installing:
 xrdp                                          x86_64                                      1:0.9.7-1.el7                                      epel                                      416 k
Installing for dependencies:
 xorgxrdp                                      x86_64                                      0.2.7-1.el7                                        epel                                       62 k

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 478 k
Installed size: 2.2 M
Downloading 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-7
Importing 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-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: 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-openjdk
icedtea-web-1.7.1-1.el7.x86_64 has missing requires of jpackage-utils
icedtea-web-1.7.1-1.el7.x86_64 has missing requires of jpackage-utils
jline-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-utils
1: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-utils
rhino-1.7R5-1.el7.noarch has missing requires of jpackage-utils
tagsoup-1.2.1-8.el7.noarch has missing requires of jpackage-utils
tagsoup-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、啟動(dòng)服務(wù):/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: root
Password: 
==== AUTHENTICATION COMPLETE ===
[hadoop@master ~]$

Windows端遠(yuǎn)程連接linux圖形桌面:

1、打開(kāi)遠(yuǎn)程桌面工具:

2、輸入LinuxIP地址,閱讀警告后點(diǎn)“是”

3、輸入Linux用戶名和密碼

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“怎么遠(yuǎn)程連接linux桌面”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來(lái)學(xué)習(xí)!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI