Debian12.5簡單的優化操作

5,745次阅读
尚無留言

Debian12.5 簡單的優化操作
Debian12.5 簡單的優化操作

修改您的 Profile

nano /etc/profile
添加 export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

  • 保存退出并重啟 systemctl reboot,不會提示命令無法運行
  • 用 CAT 命令更新源

    163 源
    apt install apt-transport-https ca-certificates

    cat < /etc/apt/sources.list
    deb http://mirrors.163.com/debian/ bullseye main non-free contrib
    deb-src http://mirrors.163.com/debian/ bullseye main non-free contrib
    deb http://mirrors.163.com/debian-security/ bullseye-security main
    deb-src http://mirrors.163.com/debian-security/ bullseye-security main
    deb http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
    deb-src http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
    deb http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
    deb-src http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
    EOF

    清華大學源
    apt install apt-transport-https ca-certificates
    cat < /etc/apt/sources.list
    deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free-firmware
    deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free-firmware
    deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free-firmware
    deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free-firmware
    deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free-firmware
    deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free-firmware
    deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free-firmware
    deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free-firmware
    EOF

    騰訊國際
    cat < /etc/apt/sources.list
    deb https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
    deb-src https://mirrors.cloud.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
    deb https://mirrors.cloud.tencent.com/debian-security/ bookworm-security main
    deb-src https://mirrors.cloud.tencent.com/debian-security/ bookworm-security main
    deb https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
    deb-src https://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
    deb https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
    deb-src https://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
    EOF

    更新 apt update -y

    安裝常用軟件

    apt install -y curl
    apt-get install -y net-tools
    apt-get install -y ufw

    apt install netselect-apt
    測試幾個常用的鏡像站點 netselect ftp.cn.debian.org mirror.lzu.edu.cn mirror.nju.edu.cn mirror.nyist.edu.cn mirrors.163.com mirrors.bfsu.edu.cn mirrors.jlu.edu.cn mirror.sjtu.edu.cn mirrors.qvq.net.cn mirrors.tuna.tsinghua.edu.cn mirrors.ustc.edu.cn mirrors.zju.edu.cn ftp.jp.debian.org debian-mirror.sakura.ne.jp dennou-k.gfd-dennou.org dennou-q.gfd-dennou.org ftp.jaist.ac.jp ftp.kddilabs.jp ftp.nara.wide.ad.jp ftp.riken.jp ftp.yz.yamagata-u.ac.jp mirrors.xtom.jp repo.jing.rocks

    正文完
     0
    ianext
    版权声明:本站原创文章,由 ianext 于2024-10-08发表,共计2886字。
    转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
    评论(尚無留言)
    验证码