Debian12.5簡單的優化操作

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

修改您的 Profile

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

  • 保存退出并重啟,不會提示命令無法運行
  • 用 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

    更新 apt update -y

    安裝常用軟件

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

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