This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update && apt upgrade -y | |
apt install neofetch -y | |
编辑文件 | |
vim /etc/profile.d/neofetch.sh | |
增加以下内容保存 | |
#/bin/sh | |
neofetch | |
配置文件复制到/root/.config/neofetch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
初始 | |
安装7zip用于加密压缩 | |
sudo apt install p7zip-full p7zip-rar | |
赋予权限 | |
cd /opt/backup | |
chmod +x backup.sh dropbox_uploader.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
初始 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#执行环境Ubuntu 20.04,只要是Ubuntu 18以上应该都没问题 | |
apt-get update | |
apt-get -y install tmux wget curl | |
#SWAP设定 | |
wget https://down.wget.at/earn/swap.sh && bash swap.sh | |
#输入1添加SWAP,输入2删除SWAP | |
#添加完SWAP后,下载批量脚本.(脚本会自动安装docker) |