From 40041659f744ab15366341ee89b28358e8a0a5b1 Mon Sep 17 00:00:00 2001 From: xzx3344521 Date: Sat, 18 Oct 2025 18:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E8=BF=91=E9=85=8D=E7=BD=AElinux=20deb?= =?UTF-8?q?ian12=E7=9A=84=E5=AE=9E=E9=AA=8C=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=9A=84=E5=A5=BD=E7=97=9B=E8=8B=A6=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E6=83=B3=E5=88=B0=E5=86=99=E4=B8=80=E4=B8=AA=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=9D=A5=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 最近配置linux debian12的实验环境配的好痛苦,所以想到写一个脚本来初始化 --- 1.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 1.sh diff --git a/1.sh b/1.sh new file mode 100644 index 0000000..bd2b390 --- /dev/null +++ b/1.sh @@ -0,0 +1,22 @@ +#update soft sources +echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list +echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" >> /etc/apt/sources.list + +echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list +echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list + +echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list +echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list + +echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list +echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list + +sudo apt update + +#install vim +sudo apt install vim -y + +#install gcc g++ +sudo apt install build-essential -y +sudo apt install g++ -y +sudo apt install gfortran -y