RustDesk 遠(yuǎn)程桌面

RustDesk 是一款開源遠(yuǎn)程桌面軟件。有云服務(wù)器的話,可以幾分鐘就搭一個(gè),本文是搭建的記錄。

自建服務(wù)器

下載服務(wù)器程序

# 上傳進(jìn)服務(wù)器,假設(shè)其 IP 為 `x.x.x.x`
scp rustdesk-server-linux-amd64.zip ubuntu@x.x.x.x:

登錄進(jìn)服務(wù)器:

# 解壓
unzip rustdesk-server-linux-amd64.zip
# 重命名
mv amd64 rustdesk

rustdesk/ 下有:

  • hbbs - RustDesk ID注冊(cè)服務(wù)器
  • hbbr - RustDesk 中繼服務(wù)器

安裝 supervisor 進(jìn)行部署,以常駐后臺(tái):

# 安裝
sudo apt install supervisor -y

# 配置
#  ./hbbs -r <hbbr運(yùn)行所在主機(jī)的地址[:port]>
#  ./hbbr
sudo -i
cat <<-EOF >> /etc/supervisor/supervisord.conf

[program:hbbs]
directory=/home/ubuntu/rustdesk
command=/home/ubuntu/rustdesk/hbbs -r x.x.x.x
priority=999
autostart=true
autorestart=true
startsecs=10
startretries=3
stdout_logfile=/var/log/hbbs_out.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/hbbs_err.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment=
nocleanup=false

[program:hbbr]
directory=/home/ubuntu/rustdesk
command=/home/ubuntu/rustdesk/hbbr
priority=999
autostart=true
autorestart=true
startsecs=10
startretries=3
stdout_logfile=/var/log/hbbr_out.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/var/log/hbbr_err.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
environment=
nocleanup=false
EOF
exit

# 更新
sudo supervisorctl update all
# 查看
sudo supervisorctl status all

查看公鑰:

cat ~/rustdesk/id_ed25519.pub

安裝客戶端

下載客戶端程序,

# 安裝,例如 Linux 客戶端
sudo apt install ./rustdesk-1.1.9.deb

配置“ID/中繼服務(wù)器”,

第一個(gè)“ID服務(wù)器”,填 IP 或綁好的域名。其他“服務(wù)器”不填,會(huì)自動(dòng)推導(dǎo)。最后一個(gè)“Key”,填公鑰,以加密連接。

這樣以后,一個(gè)客戶端就能遠(yuǎn)程另外一個(gè)客戶端了。

GoCoding 個(gè)人實(shí)踐的經(jīng)驗(yàn)分享,可關(guān)注公眾號(hào)!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容