wiki:Debian

Debian

Initialization

## For 11 Bullseye

cd /etc && ln -sf /usr/share/zoneinfo/Asia/Shanghai localtime
echo "deb http://ftp.cn.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.cn.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.cn.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.cn.debian.org/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
echo "deb http://ftp.cn.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.cn.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list
echo "" >> /etc/apt/sources.list
apt update
apt install -y vim dnsutils iperf nmap tcpdump
echo "set paste" >> /etc/vim/vimrc.local

################################################################################

apt install -y openssh-server
rm -f /etc/network/interfaces.d/setup
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service

################################################################################

Part II

## Comment
Command

Last modified 7 weeks ago Last modified on 12/13/22 20:11:06