动态 版块 发帖 消息 我的
小绿叶技术博客
小绿叶技术博客
小绿叶技术Lv150   
ubuntu 安装 todesk 远程桌面     


#!/bin/bash
# todesk 远程桌面安装

cd $HOME ; echo "当前路径:`pwd`  ; 请输入当前用户的密码: " ; sudo date

a=`sudo dpkg -l | grep todesk`
if [ "${#a}" -lt "123" ]
then
        if [ ! -e todesk_4.0.0b_amd64.deb ]
        then
            wget https://dl.todesk.com/linux/todesk_4.0.0b_amd64.deb        
        fi
         
        sudo dpkg -i todesk_4.0.0b_amd64.deb 
else
        echo "已经安装 todesk"
fi


id=`cat /opt/todesk/config/todeskd.conf | grep -E "id" | awk -F"=" '{print $2}' ` ; 
passwd=`cat /opt/todesk/config/todeskd.conf | grep -E "temppassword" | awk -F"=" '{print $2}' ` ; 

echo "windows 控制端下载地址:https://www.todesk.com/download.html?dt=4"

echo "id 为:     $id"
echo "passwd 为: $passwd" 

echo "转明文密码为:"
echo -n $passwd | base64 -d  
echo ""
       




nano todesk.sh


sudo todesk ; sudo chmod +x todesk.sh ; ./todesk.sh





#------------------  dns 检查 --------------------#


ifconfig enp1s0


sudo netplan apply 




sudo shutdown -r now 



 0  已被阅读了381次  楼主 2022-11-21 23:34:17
回复列表

回复:ubuntu 安装 todesk 远程桌面

guest
登录之后更精彩~
Powered by HadSky 7.7.16
© 2015-2023 PuYueTian
您的IP:8.219.134.200,2023-02-01 15:55:30,Processed in 0.00811 second(s).
Powered by HadSky
小绿叶技术博客