Linux系统安装、重启Todesk服务命令

一、安装todesk

1.1 下载todesk安装包

  1. wget https://dl.todesk.com/linux/todesk_4.0.0b_amd64.deb

1.2 安装todesk

  1. sudo dpkg -i todesk_4.0.0b_amd64.deb

1.3 查看todesk运行状态

  1. systemctl status todeskd

1.4 补充常见命令

  1. #启动todesk
  2. todesk
  3. #或者创建桌面快捷键
  4. /opt/todesk/bin/todesk
  5. #查看服务日志
  6. tail -f /var/log/todesk/todeskd.log
  7. #查看客户端日志
  8. tail -f ~/.local/share/todesk/log/todesk.log
  9. #删除客户端配置
  10. rm ~/.config/todesk/todesk.cfg
  11. #删除服务设置配置
  12. rm /opt/todesk/config/todeskd.conf

二、重启todesk

通过上述安装可知是通过systemctl,status是查看状态,restart是重启,所以重启todesk的命令为:

  1. sudo systemctl restart todeskd

当然,你也可以通过停止、启动来达到效果:

  1. 1、停止
  2. sudo systemctl stop todeskd
  3. 2、启动
  4. sudo systemctl start todeskd

三、配置文件

配置文件路径:/opt/todesk/config/todeskd.conf

内容为:

  1. [client]
  2. version = 4.0.0
  3. id = 666666
  4. status = online
  5. [center]
  6. host = authds.todesk.com
  7. port = 443
  8. [auth]
  9. mode = 2
  10. unmaned = TRUE
  11. lock = FALSE
  12. update = 0
  13. updatetime = 1685376000
  14. temppassword = MzA3Mj01
  15. security =

其中id就是里面的666666,临时密码就是MzA3Mj01,不过这个密码是通过base64编码的,我们解码一下可以得到明文

  1. $ echo -n "MzA3Mj01" | base64 -d
  2. 423212

点点赞赏,手留余香

posted @ 2023-11-16 01:39  小强找BUG  阅读(5407)  评论(2编辑  收藏  举报