「Debian」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
|||
(未顯示同一使用者於中間所作的 6 次修訂) | |||
第1行: | 第1行: | ||
'''Debian'''是一種[[Linux]]作業系統。 | '''Debian'''是一種[[Linux]]作業系統。 | ||
== | == 安裝 == | ||
先把系統換成testing: | |||
<syntaxhighlight lang="bash"> | |||
sed -e "s/$(lsb_release -cs)/testing/g" /etc/apt/sources.list; apt update; dist-upgrade -y; apt autoremove --purge -y; apt clean | |||
</syntaxhighlight> | |||
重開後: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
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 extrepo gdb git iproute2 jc jq locales man-db moreutils most msr-tools mtr-tiny net-tools netcat-openbsd nicstat numactl p7zip-full pigz procps prometheus-node-exporter rsync sharutils sysstat sysstat sudo tcpdump telnet tig tiptop trace-cmd unrar-free unzip util-linux vim-nox wget zstd; locale-gen en_US.UTF-8 zh_TW.UTF-8; apt clean | |||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2025年3月24日 (一) 14:03 的最新修訂
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 extrepo gdb git iproute2 jc jq locales man-db moreutils most msr-tools mtr-tiny net-tools netcat-openbsd nicstat numactl p7zip-full pigz procps prometheus-node-exporter rsync sharutils sysstat sysstat sudo tcpdump telnet tig tiptop trace-cmd unrar-free unzip util-linux vim-nox wget zstd; locale-gen en_US.UTF-8 zh_TW.UTF-8; apt clean
外部連結
- 官方網站 (英文)