• debian 12 配置


    1. 修改apt源

    修改apt源为http版本

    1. # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
    2. deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    3. # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    4. deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    5. # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    6. deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
    7. # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
    8. deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
    9. # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

    并且安装

    apt -y install apt-transport-https ca-certificates

    修改为https源

    1. # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
    2. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    3. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
    4. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    5. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
    6. deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
    7. # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
    8. deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
    9. # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

    2.修改时区

    设置中国时间

    timedatectl set-timezone Asia/Shanghai

    3.The system will suspend now! 禁止掉debian默认休眠

    systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

    4.增加中文支持

    1. apt -y install locales
    2. sudo dpkg-reconfigure locales

    5.增加sudo权限

    1. sudo usermod -aG sudo xingpeng
    2. systemctl reboot

    输入后重启即可

    6.去掉关闭盖子的影响

    1. sudo vim /etc/systemd/logind.conf

    7.安装docker

  • 相关阅读:
    Python练习题:根据一段单词,找出其中的最长单词
    大厂日常模型测试要求
    C#使用 WebView2 替代 Electron/Tauri 之 Web 核心
    Intel oneAPI笔记(4)--jupyter官方文档(Unified Shared Memory)学习笔记
    CentOS7安装MySQL(完整版)
    Java项目:SSH在线水果商城平台含管理系统
    Sa-Token v.1.31.0 新增拦截器 SaInterceptor 功能说明,以及旧代码迁移示例
    Linux_进程控制
    伦敦银最新走势不利怎么办
    【SQL server】数据库入门基本操作教学
  • 原文地址:https://blog.csdn.net/siemens_xp/article/details/134537829