赞
踩
# 备份软件源
mv /etc/apt/sources.list /etc/apt/sources.list.backup.$(date "+%Y-%m-%d_%H:%M")
cat > /etc/apt/sources.list << 'EOF'
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
EOF
# 备份软件源
mv /etc/apt/sources.list /etc/apt/sources.list.backup.$(date "+%Y-%m-%d_%H:%M")
cat > /etc/apt/sources.list << 'EOF'
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
EOF
# 备份软件源
mv /etc/apt/sources.list /etc/apt/sources.list.backup.$(date "+%Y-%m-%d_%H:%M")
cat > /etc/apt/sources.list << 'EOF'
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
EOF
# 备份软件源 mv /etc/apt/sources.list /etc/apt/sources.list.backup.$(date "+%Y-%m-%d_%H:%M") cat > /etc/apt/sources.list << 'EOF' # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware # # deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware # deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware EOF
# 备份配置文件 sudo mv /etc/network/interfaces /etc/network/interfaces.backup.$(date "+%Y-%m-%d_%H:%M") sudo cat > /etc/network/interfaces << 'EOF' # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 eth1 iface eth0 inet dhcp iface eth1 inet static address 10.10.10.10/24 broadcast 10.10.10.255 network 10.10.10.0 EOF
dpkg-reconfigure locales
#设置成zh_CN.UTF-8后,重启
sudo apt -y install fcitx5-rime
# 下载五笔输入法 wget https://github.com/rime/rime-wubi/archive/refs/heads/master.zip -O rime-wubi.zip # 五笔拼音反查依赖pinyin-simp wget https://github.com/rime/rime-pinyin-simp/archive/refs/heads/master.zip -O rime-pinyin-simp.zip unzip rime-wubi.zip unzip rime-pinyin-simp.zip 在GUI界面注销,再登录用户 在输入法中调出中州韵输入法 cp rime-wubi-master/wubi* ~/.local/share/fcitx5/rime/ cp rime-pinyin-simp-master/pinyin_simp* ~/.local/share/fcitx5/rime/ vi ~/.local/share/fcitx5/rime/build/default.yaml # 编辑文件,在schema_list:下增加五笔输入法 - schema: wubi_pinyin 保存退出,重新启动中州韵输入法,按F4切换输入法 在五笔拼音输入法下,可直接输入拼音,反查五笔编码
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
containerd.io_<version>_<arch>.deb
docker-ce_<version>_<arch>.deb
docker-ce-cli_<version>_<arch>.deb
docker-buildx-plugin_<version>_<arch>.deb
docker-compose-plugin_<version>_<arch>.deb
# 如果没有iptables,需要先安装iptables:apt install -y iptables
sudo dpkg -i ./containerd.io_1.6.28-2_amd64.deb \
./docker-ce_26.0.0-1~debian.12~bookworm_amd64.deb \
./docker-ce-cli_26.0.0-1~debian.12~bookworm_amd64.deb \
./docker-buildx-plugin_0.13.1-1~debian.12~bookworm_amd64.deb \
./docker-compose-plugin_2.25.0-1~debian.12~bookworm_amd64.deb
docker ps
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。