动态 版块 发帖 消息 我的
小绿叶技术博客
小绿叶技术博客
小绿叶技术Lv154   
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 



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

回复:ubuntu 安装 todesk 远程桌面

guest
登录之后更精彩~
Powered by HadSky 7.12.10
© 2015-2024 PuYueTian
您的IP:44.200.86.95,2024-05-30 04:57:06,Processed in 0.02229 second(s).
Powered by HadSky
小绿叶技术博客