如何遠端連接linux桌面
遠端連接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 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、啟動服務:/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端遠端連接linux圖形桌面:
1、開啟遠端桌面工具:
2、輸入LinuxIP位址,閱讀警告後點「是」
3、輸入Linux使用者名稱和密碼
相關文章教學推薦:linux教學
以上是如何遠端連接linux桌面的詳細內容。更多資訊請關注PHP中文網其他相關文章!

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

VS Code 系統要求:操作系統:Windows 10 及以上、macOS 10.12 及以上、Linux 發行版處理器:最低 1.6 GHz,推薦 2.0 GHz 及以上內存:最低 512 MB,推薦 4 GB 及以上存儲空間:最低 250 MB,推薦 1 GB 及以上其他要求:穩定網絡連接,Xorg/Wayland(Linux)

VS Code擴展安裝失敗的原因可能包括:網絡不穩定、權限不足、系統兼容性問題、VS Code版本過舊、殺毒軟件或防火牆干擾。通過檢查網絡連接、權限、日誌文件、更新VS Code、禁用安全軟件以及重啟VS Code或計算機,可以逐步排查和解決問題。

雖然 Notepad 無法直接運行 Java 代碼,但可以通過借助其他工具實現:使用命令行編譯器 (javac) 編譯代碼,生成字節碼文件 (filename.class)。使用 Java 解釋器 (java) 解釋字節碼,執行代碼並輸出結果。

Linux系統的五個基本組件是:1.內核,2.系統庫,3.系統實用程序,4.圖形用戶界面,5.應用程序。內核管理硬件資源,系統庫提供預編譯函數,系統實用程序用於系統管理,GUI提供可視化交互,應用程序利用這些組件實現功能。

Visual Studio Code (VSCode) 是一款跨平台、開源且免費的代碼編輯器,由微軟開發。它以輕量、可擴展性和對眾多編程語言的支持而著稱。要安裝 VSCode,請訪問官方網站下載並運行安裝程序。使用 VSCode 時,可以創建新項目、編輯代碼、調試代碼、導航項目、擴展 VSCode 和管理設置。 VSCode 適用於 Windows、macOS 和 Linux,支持多種編程語言,並通過 Marketplace 提供各種擴展。它的優勢包括輕量、可擴展性、廣泛的語言支持、豐富的功能和版

VS Code 可以在 Mac 上使用。它具有強大的擴展功能、Git 集成、終端和調試器,同時還提供了豐富的設置選項。但是,對於特別大型項目或專業性較強的開發,VS Code 可能會有性能或功能限制。

要查看 Git 倉庫地址,請執行以下步驟:1. 打開命令行並導航到倉庫目錄;2. 運行 "git remote -v" 命令;3. 查看輸出中的倉庫名稱及其相應的地址。

VS Code 全稱 Visual Studio Code,是一個由微軟開發的免費開源跨平台代碼編輯器和開發環境。它支持廣泛的編程語言,提供語法高亮、代碼自動補全、代碼片段和智能提示等功能以提高開發效率。通過豐富的擴展生態系統,用戶可以針對特定需求和語言添加擴展程序,例如調試器、代碼格式化工具和 Git 集成。 VS Code 還包含直觀的調試器,有助於快速查找和解決代碼中的 bug。
