Files
Linux/Docs/Linux开启远程桌面连接.md
offends cee91802b3
Some checks failed
continuous-integration/drone Build is failing
synchronization
2025-08-25 15:57:40 +08:00

135 lines
3.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> 本文作者:丁辉
# Linux开启远程桌面连接
## 安装 xrdp
**xrdp (X Remote Desktop Protocol)介绍**
xrdp 是一个远程桌面服务器,允许远程用户通过 Microsoft 的 RDPRemote Desktop Protocol协议连接到 Linux 系统的图形桌面环境。xrdp 提供了一种方式,使 Windows 和其他支持 RDP 的操作系统用户能够通过 RDP 客户端连接到 Linux 桌面。安装和配置 xrdp 通常涉及安装 xrdp 软件包,并确保 xrdp 服务在后台运行。用户连接时xrdp 将会启动用户指定的桌面环境。
1. 安装依赖
```bash
yum install epel-release -y
```
2. 安装 xrdp
```bash
yum install xrdp -y
```
3. 启动
```bash
systemctl enable xrdp && systemctl start xrdp
```
4. Windows 按住键盘上的 win + R 输入 `mstsc` 输入IP 地址 + 3389 连接
## 安装 tigervnc
```bash
yum install tigervnc-server -y
```
> **TigerVNC (Tiger Virtual Network Computing)介绍**
>
> TigerVNC 是一个实现 VNCVirtual Network Computing协议的远程桌面工具允许用户通过网络连接到远程计算机的图形界面。与 xrdp 不同TigerVNC 并不是为特定的远程桌面协议设计的。它可以与各种 VNC 客户端一起使用,无论是基于 Windows、Linux 还是其他操作系统的。安装和配置 TigerVNC 通常涉及安装 TigerVNC 软件包,然后配置 VNC 服务器以便用户能够连接。
- 启动 vncserver
```bash
vncserver
```
- 查看
```bash
vncserver -list
```
- 删除
```bash
vncserver -kill :1
```
### 下载 VNC 连接工具
[RealVNC下载地址](https://www.realvnc.com/en/connect/download/vnc/)
连接地址为: IP + 端口 启动时配置的密码
```bash
192.168.1.100:1
```
# Ubuntu开启远程桌面连接
## 安装 xrdp
**xrdp (X Remote Desktop Protocol)介绍**
xrdp 是一个远程桌面服务器,允许远程用户通过 Microsoft 的 RDPRemote Desktop Protocol协议连接到 Linux 系统的图形桌面环境。xrdp 提供了一种方式,使 Windows 和其他支持 RDP 的操作系统用户能够通过 RDP 客户端连接到 Linux 桌面。安装和配置 xrdp 通常涉及安装 xrdp 软件包,并确保 xrdp 服务在后台运行。用户连接时xrdp 将会启动用户指定的桌面环境。
1. 安装 xrdp
```bash
apt install xrdp -y
```
2. 启动
```bash
systemctl enable xrdp && systemctl start xrdp
```
3. Windows 按住键盘上的 win + R 输入 `mstsc` 输入IP 地址 + 3389 连接
## 安装 tigervnc
```bash
apt-get install tigervnc-standalone-server tigervnc-xorg-extension
```
> **TigerVNC (Tiger Virtual Network Computing)介绍**
>
> TigerVNC 是一个实现 VNCVirtual Network Computing协议的远程桌面工具允许用户通过网络连接到远程计算机的图形界面。与 xrdp 不同TigerVNC 并不是为特定的远程桌面协议设计的。它可以与各种 VNC 客户端一起使用,无论是基于 Windows、Linux 还是其他操作系统的。安装和配置 TigerVNC 通常涉及安装 TigerVNC 软件包,然后配置 VNC 服务器以便用户能够连接。
- 启动 vncserver
```bash
vncserver
```
- 查看
```bash
vncserver -list
```
- 删除
```bash
vncserver -kill :1
```
### 下载 VNC 连接工具
[RealVNC下载地址](https://www.realvnc.com/en/connect/download/vnc/)
连接地址为: IP + 端口 启动时配置的密码
```bash
192.168.1.100:1
```