2024年7月16日 星期二

Debian 12 安裝 polkitd異常

錯誤訊息
Failed to check if group polkitd already exists: Connection refused
id: 'polkitd': no such user
chown: invalid user: 'polkitd:root'

解決方式
addgroup polkitd
apt install polkitd

Proxmox VE SDN錯誤 WARN: missing 'source /etc/network/interfaces.d/sdn' directive for SDN support!

編輯 /etc/network/interfaces  加入
source /etc/network/interfaces.d/*

Debian 12 安裝 ZFS

編輯 /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main non-free non-free-firmware contrib
deb http://deb.debian.org/debian bookworm-updates main non-free non-free-firmware contrib
deb http://deb.debian.org/debian-security/ bookworm-security main non-free non-free-firmware contrib

執行
apt update
apt install linux-headers-amd64 zfsutils-linux zfs-dkms zfs-zed

Debian 12 Apache2 automatically redirect HTTP to HTTPS on Apache servers

 sudo a2enmod rewrite

修改 /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

列出 sss 所有帳號

編輯 /etc/sssd/sssd.conf 加入
enumerate = true

指令
getent -s files passwd
getent -s sss   passwd
getent          passwd

X Window 錯誤訊息 Failed to execute child process dbus-launch

apt install dbus-x11