Youtube视频
服务端部署
新建一个
rustdesk
目录,用于存放配置文件和数据mkdir /usr/local/rustdesk && cd /usr/local/rustdesk
创建
docker-compose.yaml
配置文件vim docker-compose.yaml
version: '3' networks: rustdesk-net: external: false services: hbbs: container_name: hbbs ports: - 21115:21115 - 21116:21116 - 21116:21116/udp image: rustdesk/rustdesk-server:latest command: hbbs -r rustdesk.example.com:21116 -k _ volumes: - ./data:/root networks: - rustdesk-net depends_on: - hbbr restart: unless-stopped hbbr: container_name: hbbr ports: - 21117:21117 image: rustdesk/rustdesk-server:latest command: hbbr -k _ volumes: - ./data:/root networks: - rustdesk-net restart: unless-stopped
运行
docker compose up -d
停止
docker compose down
客户端配置使用请看视频
Linux客户端必须使用x11桌面环境
# 编辑配置文件,关闭wayland
sudo sed -i 's/#WaylandEnable=false/WaylandEnable=false/' /etc/gdm3/custom.conf
# 重启gdm3
sudo systemctl restart gdm3
#
自定义远程ID相关
macOS
# 切换root用户
su -
# 进入到配置目录
cd /var/root/Library/Preferences/com.carriez.RustDesk/
# 编辑配置文件,并修改ID
vi RustDesk.toml
# 找到rustdesk服务进程ID
ps -ef |grep rustdesk
# 杀死进程
kill -9 $PID
Windows
- 打开目录
C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config
- 编辑
RustDesk.txt
,修改ID - 打开任务管理器 --> 服务,找到RustDesk,右击重新启动
Linux
# 切换root用户
su -
# 进入到配置目录
cd /root/.config/rustdesk
# 编辑配置文件,并修改ID
vi RustDesk.toml
# 重启rustdesk服务
systemctl restart rustdesk.service