因PVE7.0更换了Debian11作为内核,软件源管理方式也发生了变更,故原软件源配置方法已失效。

默认是企业订阅版,如果不做修改,在使用 pveceph init 进行 ceph 初始化安装的时候会将整个环境破坏,切记!

登陆各节点Shell控制台
【重要】将/etc/apt/sources.list.d/pve-enterprise.list 文件内的唯一一条记录注释掉:

echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list

Proxmox软件源更换
中科大源(二选一):

wget https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list     #中科大源
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific bullseye main" > /etc/apt/sources.list.d/ceph.list     #中科大源
sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm     #中科大源
apt update && apt dist-upgrade     #更新软件,可不执行

Proxmox中文社区源(二选一):

wget http://download.proxmox.wiki/debian/proxmox-release-bullseye.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
echo "deb http://download.proxmox.wiki/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list     #Proxmox中文社区源
echo "deb https://download.proxmox.wiki/debian/ceph-pacific bullseye main" > /etc/apt/sources.list.d/ceph.list     #Proxmox中文社区源
sed -i.bak "s#http://download.proxmox.com/debian#https://download.proxmox.wiki/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm     #Proxmox中文社区源
apt update && apt dist-upgrade     #更新软件,可不执行

Debian系统源更换
阿里Debian源(二选一):

sed -i.bak "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list     #阿里Debian源
sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list     #阿里Debian源
apt update && apt dist-upgrade     #更新软件,可不执行

163-Debian源(二选一):

sed -i.bak "s#ftp.debian.org/debian#mirrors.163.com/debian#g" /etc/apt/sources.list     #163Debian源
sed -i "s#security.debian.org#mirrors.163.com/debian-security#g" /etc/apt/sources.list     #163Debian源
apt update && apt dist-upgrade     #更新软件,可不执行

删除订阅弹窗

sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
# 执行完成后,浏览器Ctrl+F5强制刷新缓存

安装KDE桌面
转载自:https://www.vediotalk.com/archives/49068
KDE Plasma桌面环境,是新一代 Linux 桌面环境,有着轻量化兼容性广的特点,对应PVE虚拟机来说可以扩展一个图形界面的linux操作系统,非常有可玩性

一、更新PVE软件源

apt-get update
apt-get upgrade

二、一条命令进行安装
默认情况下,KDE Plasma 在 Debian 11 基础存储库中可用。现在运行以下命令在 Debian 系统上安装 KDE Plasma 桌面环境:

apt-get install task-kde-desktop

三、设置用户名和密码

useradd -m admin     #创建admin用户
passwd admin       #设置admin用户密码
最后修改:2023 年 03 月 19 日
如果觉得我的文章对你有用,请随意赞赏