echo "HISTFILESIZE=99999" >> ~/.bashrc
echo "HISTSIZE=99999" >> ~/.bashrc
echo 'HISTTIMEFORMAT="%F %T "'>> ~/.bashrc
echo 'PROMPT_COMMAND="history -a"' >> ~/.bashrc
exit
cp /etc/apt/sources.list{,.backup} && echo '
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse multiverse
' > sources.list && cp ./sources.list /etc/apt/sources.list && apt update && apt upgrade -y
apt update
apt upgrade
apt install -y fuse
apt install -y git
snap install curl
curl -fsSL https://get.docker.com | bash -s docker --mirror aliyun
mkdir /etc/docker
cat >/etc/docker/daemon.json << EOF
{
"registry-mirrors" : ["https://mj9kvemk.mirror.aliyuncs.com"],
"exec-opts": [ "native.cgroupdriver=systemd" ]
}
EOF
curl -fsSL https://get.docker.com | bash -s docker --Aliyun
systemctl daemon-reload && systemctl enable --now docker
# 安装docker-compose
curl -SL https://get.daocloud.io/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
apt install -y openjdk-17-jdk
rm -rf ~/.sdkman
curl -s "https://get.sdkman.io" | bash
sdk install gradle
Shell init Ubuntu
于 2023-05-11 16:09:46 首次发布