当前位置:   article > 正文

debian 12 配置_the system will suspend now!

the system will suspend now!

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

for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
  1. # Add Docker's official GPG key:
  2. sudo apt-get update
  3. sudo apt-get install ca-certificates curl gnupg
  4. sudo install -m 0755 -d /etc/apt/keyrings
  5. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  6. sudo chmod a+r /etc/apt/keyrings/docker.gpg
  7. # Add the repository to Apt sources:
  8. echo \
  9. "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  10. "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  11. sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  12. sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

更换docker到国内源

sudo vim /etc/docker/daemon.json
  1. {
  2. "registry-mirrors":[
  3. "https://mirror.ccs.tencentyun.com",
  4. "https://registry.docker-cn.com",
  5. "https://hub-mirror.c.163.com",
  6. "https://docker.mirrors.ustc.edu.cn"
  7. ]
  8. }
  1. sudo systemctl daemon-reload
  2. sudo systemctl restart docker
  3. sudo docker info

8.拼音输入法安装,可以参考官网

  1. sudo apt -y install --install-recommends fcitx5 fcitx5-chinese-addons
  2. sudo apt -y install gnome-shell-extension-kimpanel
  3. sudo im-config

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/817943
推荐阅读
相关标签
  

闽ICP备14008679号