最近配置linux debian12的实验环境配的好痛苦,所以想到写一个脚本来初始化
最近配置linux debian12的实验环境配的好痛苦,所以想到写一个脚本来初始化
This commit is contained in:
22
1.sh
Normal file
22
1.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user