在ubuntu上一键安装TIM的脚本
生活随笔
收集整理的這篇文章主要介紹了
在ubuntu上一键安装TIM的脚本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
由于在ubuntu里安裝tim比較麻煩,我在找了一些資料后寫了這個安裝tim的腳本,在自己電腦上跑一下這個腳本就可以了。(如果兩分鐘以內就結束說明安裝失敗了,嘗試下面更新的腳本)
#!/bin/bashwinepath='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 timadress="/home/tim" echo $adresscd ${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.shcd .. 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/bashwinepath='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.shcd .. echo "**************開始下載TIM**************" wget ${timpath}echo "**************開始安裝TIM**************" sudo chmod a+rwx ${timfile} sudo dpkg -i ${timfile}echo "***************************************" echo " ? ? 安裝完成,在搜索中輸入tim打開" echo "***************************************"?
總結
以上是生活随笔為你收集整理的在ubuntu上一键安装TIM的脚本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CSS3 pointer-events的
- 下一篇: ubuntu安装tim