Linux系统安装、重启Todesk服务命令
一、安装todesk
1.1 下载todesk安装包
wget https://dl.todesk.com/linux/todesk_4.0.0b_amd64.deb
1.2 安装todesk
sudo dpkg -i todesk_4.0.0b_amd64.deb
1.3 查看todesk运行状态
systemctl status todeskd
1.4 补充常见命令
#启动todesk
todesk
#或者创建桌面快捷键
/opt/todesk/bin/todesk
#查看服务日志
tail -f /var/log/todesk/todeskd.log
#查看客户端日志
tail -f ~/.local/share/todesk/log/todesk.log
#删除客户端配置
rm ~/.config/todesk/todesk.cfg
#删除服务设置配置
rm /opt/todesk/config/todeskd.conf
二、重启todesk
通过上述安装可知是通过systemctl,status
是查看状态,restart
是重启,所以重启todesk的命令为:
sudo systemctl restart todeskd
当然,你也可以通过停止、启动来达到效果:
1、停止
sudo systemctl stop todeskd
2、启动
sudo systemctl start todeskd
三、配置文件
配置文件路径:/opt/todesk/config/todeskd.conf
内容为:
[client]
version = 4.0.0
id = 666666
status = online
[center]
host = authds.todesk.com
port = 443
[auth]
mode = 2
unmaned = TRUE
lock = FALSE
update = 0
updatetime = 1685376000
temppassword = MzA3Mj01
security =
其中id就是里面的666666
,临时密码就是MzA3Mj01
,不过这个密码是通过base64编码的,我们解码一下可以得到明文
$ echo -n "MzA3Mj01" | base64 -d
423212
点点赞赏,手留余香