mac连接ubuntu22.04远程桌面

2023-07-10  本文已影响0人  xun2019

ubuntu系统配置

1.安装rdp,命令如下

sudo apt update 
sudo apt install xrdp -y 
sudo usermod -a -G ssl-cert xrdp
sudo systemctl restart xrdp

2.添加配置文件

vi ~/.xsessionrc
##配置信息
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg

mac需要安装Microsoft Remote Desktop Beta

3.使用mac客户端软件(Microsoft Remote Desktop Beta)远程连接

注意事项:一定要先修改下面配置文件,再远程连接,否则会黑屏,这个时候需要重启。
远程连接之前确保本机桌面已经注销(logout),否则连接会黑屏。

上一篇 下一篇

猜你喜欢

热点阅读