Changes between Version 3 and Version 4 of Debian


Ignore:
Timestamp:
12/31/25 09:45:57 (7 days ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Debian

    v3 v4  
    44== Initialization ==
    55
     6https://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually
     7
     8https://wiki.debian.org/SourcesList#debian.sources
     9
    610{{{
    7 ## For 11 Bullseye
    811
    9 cd /etc && ln -sf /usr/share/zoneinfo/Asia/Shanghai localtime
    10 echo "deb http://ftp.cn.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list
    11 echo "deb-src http://ftp.cn.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list
    12 echo "" >> /etc/apt/sources.list
    13 echo "deb http://ftp.cn.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list
    14 echo "deb-src http://ftp.cn.debian.org/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list
    15 echo "" >> /etc/apt/sources.list
    16 echo "deb http://ftp.cn.debian.org/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list
    17 echo "deb-src http://ftp.cn.debian.org/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list
    18 echo "" >> /etc/apt/sources.list
    19 echo "deb http://ftp.cn.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list
    20 echo "deb-src http://ftp.cn.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list
    21 echo "" >> /etc/apt/sources.list
    22 apt update
    23 apt install -y vim dnsutils iperf nmap tcpdump
    24 echo "set paste" >> /etc/vim/vimrc.local
     12## reset hostname
     13 /etc/network/interfaces
     14 /etc/hosts
     15
     16hostnamectl hostname debian02
     17
     18rm -f /etc/ssh/ssh_host_*
     19sleep 1
     20ssh-keygen -A
    2521
    2622################################################################################