由于在ubuntu里安装tim比较麻烦,我在找了一些资料后写了这个安装tim的脚本,在自己电脑上跑一下这个脚本就可以了。(如果两分钟以内就结束说明安装失败了,尝试下面更新的脚本)
#!/bin/bash
winepath='https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git'
timpath='https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.office/deepin.com.qq.office_2.0.0deepin4_i386.deb'
winefile='deepin-wine-for-ubuntu'
timfile='deepin.com.qq.office_2.0.0deepin4_i386.deb'
echo "**************************************"
echo " ubuntu TIM安装"
echo " 网络信号太差可能会导致安装失败"
echo "**************************************"
echo "默认安装路径:"
cd "/home"
sudo mkdir tim
adress="/home/tim"
echo $adress
cd ${adress}
echo "***************检查git****************"
which git || sudo apt-get install git
echo "*********克隆来自git的安装文件*********"
git clone ${winepath}
cd ${winefile}
#修改./install.sh的权限
sudo chmod a+rwx install.sh
./install.sh
cd ..
echo "**************开始下载TIM**************"
wget ${timpath}
echo "**************开始安装TIM**************"
sudo chmod a+rwx ${timfile}
sudo dpkg -i ${timfile}
echo "***************************************"
echo " 安装完成,在搜索中输入tim打开"
echo " 稍等一会就好了"
echo "***************************************"
安装效果
我只测试了3台电脑,可能会有问题
2019.11.19更新
如果上面的脚本安装失败,尝试下面的这个:
#!/bin/bash
winepath='https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git'
timpath='https://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.qq.office/deepin.com.qq.office_2.0.0deepin4_i386.deb'
winefile='deepin-wine-for-ubuntu'
timfile='deepin.com.qq.office_2.0.0deepin4_i386.deb'
echo "**************************************"
echo " ubuntu TIM安装"
echo " @jorwnpay"
echo "**************************************"
echo "***************检查git****************"
which git || sudo apt-get install git
echo "*********克隆来自git的安装文件*********"
git clone ${winepath}
cd ${winefile}
#修改./install.sh的权限
sudo chmod a+rwx install.sh
./install.sh
cd ..
echo "**************开始下载TIM**************"
wget ${timpath}
echo "**************开始安装TIM**************"
sudo chmod a+rwx ${timfile}
sudo dpkg -i ${timfile}
echo "***************************************"
echo " 安装完成,在搜索中输入tim打开"
echo "***************************************"