sh Yandex.Disk

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Yandex.Disk相关的知识,希望对你有一定的参考价值。

#!/bin/bash
echo 'Instalando os pacotes necessários...'
wget http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG -O- | sudo apt-key add -
echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" | sudo tee /etc/apt/sources.list.d/yandex-disk.list
sudo add-apt-repository -y ppa:slytomcat/ppa
sudo apt-get install -yqq yandex-disk yd-tools > /dev/null &&
sudo sed -i 's/Icon=\/usr\/share\/yd-tools\/icons\/yd-128.png/Icon=yandex-disk/g' /usr/share/applications/Yandex.Disk-indicator.desktop
mkdir -p ~/.config/yd-tools/icons/dark
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-busy1.png -O ~/.config/yd-tools/icons/dark/yd-busy1.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-busy2.png -O ~/.config/yd-tools/icons/dark/yd-busy2.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-busy3.png -O ~/.config/yd-tools/icons/dark/yd-busy3.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-busy4.png -O ~/.config/yd-tools/icons/dark/yd-busy4.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-busy5.png -O ~/.config/yd-tools/icons/dark/yd-busy5.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-ind-error.png -O ~/.config/yd-tools/icons/dark/yd-ind-error.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-ind-idle.png -O ~/.config/yd-tools/icons/dark/yd-ind-idle.png
wget https://radix.ws/resources/yandex.disk/icons/dark/yd-ind-pause.png -O ~/.config/yd-tools/icons/dark/yd-ind-pause.png
sudo wget https://radix.ws/resources/yandex.disk/icons/yd-128.png -O /usr/share/yd-tools/icons/yd-128.png
sudo wget https://radix.ws/resources/yandex.disk/icons/yd-128_g.png -O /usr/share/yd-tools/icons/yd-128_g.png
echo 'Instalação concluída com sucesso!'
#!/bin/bash
echo 'Removendo arquivos de configuração...'
rm -rf ~/.config/yd-tools ~/.config/yandex-disk
echo 'Desinstalando pacotes...'
sudo apt autoremove --purge -yqq yandex-disk yd-tools >> /dev/null &&
echo 'Desinstalação concluída com sucesso!'
echo 'Reinicie a sessão!'

以上是关于sh Yandex.Disk的主要内容,如果未能解决你的问题,请参考以下文章

Linux下执行.sh文件

如何使我的命令行在具有扩展名(.sh)和名称如“weird.sh.sh.sh”的文件上工作

sh sh_template.sh

sh sh.sh

Linux下面如何运行 SH文件

配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh