Ubuntu下的远程桌面登陆工具remmina

Step by step: https://linuxconfig.org/remote-desktop-sharing-on-ubuntu-20-04-focal-fossa

The following tutorial will explain how to setup client/server remote desktop sharing on Ubuntu 20.04 Focal Fossa.

In this tutorial you will learn:

  • How to enable desktop screen sharing
  • How to how to install remote desktop client
  • How to configure your firewall to allow desktop sharing access
  • How to connect to a remote desktop

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
CategoryRequirements, Conventions or Software Version Used
SystemInstalled or upgraded Ubuntu 20.04 Focal Fossa
SoftwareGNOME desktop, remmina
OtherPrivileged access to your Linux system as root or via the sudo command.
Conventions# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Remote desktop sharing on Ubuntu 20.04 step by step instructions


  1. navigate to settings

     Navigate to Settings and click on the Sharing menu

  2. From here click on the Screen Sharing.

    From here click on the Screen Sharing. Turn on the Network switch of the network interface you wish to share your screen on. This will effectively enable the screen sharing of your Ubuntu 20.04 Desktop.
    Access Options: Recommand to  choose Require password.

  3. Create a new firewall rules to allow port 5900 for an incoming connections:
    $ sudo ufw allow from any to any port 5900 proto tcp
    Rule added
    Rule added (v6)
    
  4. Head over to your client desktop from which you wish to access the remove desktop you enabled in the previous steps. Install remote desktop client remmina:
    $ sudo apt install remmina
    
  5. Start the Remmina client. Create a new connection

    Start the Remmina client. Create a new connection, insert any arbitrary name for your remote desktop connection. Select the VNC protocol, insert Server information such as the Remote Desktop’s IP address or hostname and set Quality or Color depth and hit Save button.

  6. Connect to the remote desktop share.

    Connect to the remote desktop share.

  7. accept remote desktop connection

    Once you make an attempt to connect to your remote desktop the pop-up message will appear to Accept the connection.

  8. All done. You should now be able to access the remote desktop clien

    All done. You should now be able to access the remote desktop client.

### Ubuntu 系统远程桌面的设置与使用 #### 安装并配置 Remmina 实现远程连接 Windows 为了实现从 Ubuntu 到 Windows 的远程桌面连接,可以利用 Ubuntu 自带的工具 Remmina。如果尚未安装该工具,在终端中运行以下命令完成安装: ```bash sudo apt update && sudo apt install remmina remmina-plugin-rdp -y ``` 上述命令会更新软件包列表并安装 Remmina 及其 RDP 插件[^1]。 安装完成后启动 Remmina 应用程序,并创建一个新的连接文件。在新建窗口中选择协议为 **RDP – Remote Desktop Protocol** 并填写目标主机 IP 地址以及端口号(默认为 3389)。保存后即可尝试通过此方式访问远端 Windows 设备。 #### 配置 Ubuntu 上的 VNC 或 XRDP 提供远程桌面服务 对于希望让其他设备能够反向控制自己的 Ubuntu 计算机,则需启用本地系统的远程桌面功能。以下是两种常见方法介绍: ##### 方法一 使用 GNOME 内建的“屏幕共享” 进入系统设置界面找到 `Sharing` 菜单项下的子选项卡——即提到过的“Desktop Sharing”,勾选允许他人查看/操作我的桌面之后按照提示设定密码等参数即可生效[^2]。不过需要注意的是这种方式下显示效果可能受限于原始分辨率比例等因素影响用户体验质量较差一些。 ##### 方法二 启动 XRDP 支持完整的图形化体验 相比前者,“Remote Login”模式推荐采用安装额外组件XRDP的方法达成目的因为它能更好地适配不同尺寸屏幕上呈现的内容从而获得更佳视觉感受。执行如下指令获取必要依赖并激活相应服务: ```bash sudo apt-get install xrdp sudo systemctl enable --now xrdp ``` 这样无论是在另一台PC还是移动装置上只要具备对应类型的客户端就能轻松接入这台作为服务器角色存在的Linux机器了。 ```python import os os.system('echo "Please ensure firewall allows traffic on port 3389."') ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

First Snowflakes

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值