Debian

出自Gea-Suan Lin's Wiki
於 2025年2月9日 (日) 16:45 由 Gslin留言 | 貢獻 所做的修訂 →‎安裝
跳至導覽 跳至搜尋

Debian是一種Linux作業系統。

安裝

先把系統換成testing:

sed -e "s/$(lsb_release -cs)/testing/g" /etc/apt/sources.list; apt update; dist-upgrade -y; apt autoremove --purge -y; apt clean

重開後:

fallocate -l 512M /swapfile; chmod 600 /swapfile; mkswap /swapfile; swapon /swapfile; echo '/swapfile none swap sw 0 0' >> /etc/fstab; echo "vm.swappiness=1" >> /etc/sysctl.d/99-vm.conf; echo -e "net.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" > /etc/sysctl.d/99-tcp.conf; sysctl -p /etc/sysctl.d/99-vm.conf; apt install -y apache2-utils apt-transport-https aptitude bash-completion bpfcc-tools bpfcc-tools bpftrace build-essential cpuid curl dnsutils ethtool gdb git iproute2 jc jq locales moreutils most msr-tools mtr-tiny net-tools netcat-openbsd nicstat numactl p7zip-full pigz procps prometheus-node-exporter rsync sharutils sysstat sysstat tcpdump telnet tig tiptop trace-cmd unzip util-linux vim-nox wget zstd; locale-gen en_US.UTF-8 zh_TW.UTF-8; apt clean

外部連結