將 .dmg 檔掛載為區塊裝置 (block device)
hdid -nomount filename.img
結論
在 .screenrc 補上設定 cjkwidth off 就好
原因
在 screen.c 有兩段
int main(int argc, char **argv)
{
# ...
char *s;...
設定檔位於 /etc/apt/preferences.d/
以下示範
Package: *
Pin: release a=stable,n=bionic
Pin-Priority: -1
表示:
Package: * 表示所有套件,也可以指定套件名稱或 glob 表示法Pin: release a=stable,n=bionic 表示僅限釋出在 stable...
於記錄 /var/log/auth.log 裡找到類似以下記錄的場合:
Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
是因為 systemd-logind 無法啟動所致,可以將該服務從驗證流程中移除來解決
systemctl mask systemd-logind
pam-auth-update...
原因分析
場景
外部 <-https-> Nginx <-http-> Harbornginx 設定將 http 導向 httpsHarbor v2
分析
執行時 docker login 向 Harbor...
解法
cd /etc
sed 's/#DNSStubListener=yes/DNSStubListener=no/' ./systemd/resolved.conf
systemctl restart systemd-resolved
rm resolv.conf
ln -s ../run/systemd/resolve/resolv.conf resolv.conf
原因分析
systemd-resolved 將 /etc/resolv.conf 改為本機地址 127.0.0.53,通過本機...
Leave a Comment