• 周五. 4月 19th, 2024

树莓派/RaspberryPi Ubuntu Remmina Remote Desktop Client 远程连接

城主

12月 26, 2019 , ,

最近使用的ubuntu系统,需要远程连接树梅派桌面。下面是树莓派/Raspberry Pi使用Ubuntu Remmina Remote Desktop Client 远程连接的一个教程。

网络设置

设置Ubuntu主机跟树莓派在同一网段,树莓派设置静态IP地址:

查看/etc/network/interfaces的内容,其中有#For static IP, consult /etc/dhcpcd.conf或man dhcpcd.conf
修改/etc/dhcpcd.conf,在文件结尾加入以下内容:

interface eth0
static ip_address=192.168.1.2/24
static router=192.168.1.1

 重启即可。

连接方式,可以将两个终端接入同一路由,方便起见可以用网线直连,普通网线交叉网线均可,亲测可用。

设置完成后测试是否能ping通:

1ping 192.168.1.2

服务安装

树莓派安装xrdp服务

1sudo apt-get install xrdp

客户端程序

Ubuntu连接树莓派最合适的是Remmina Remote Desktop Client,Ubuntu默认已经安装,Remmina Remote Desktop Client中三种协议可以连接树莓派:

SSH(Secure Shell):终端操作,没有图形界面,类似于串口,默认已经开启,无需其他操作;

RDP(Remote Desktop Protocol):图形界面,类似与VNC,需要安装xrdp服务;

颜色深度选择15bpp,有Share folder选项,还没研究出怎么用;

SFTP(Secure File Transfer):用于传送文件,默认已经开启,无需其他操作;

以上为ubuntu系统远程连接树梅派桌面使用 Remmina Remote Desktop Client 远程连接的教程。

阅读  Ubuntu 中screen 或 minicom,Linux 串口工具使用详解