2021年6月12日 星期六

Linux systemd console autologin

編輯 /usr/lib/systemd/system/getty@.service
把原來的 ExecStart 改成
ExecStart=-/sbin/agetty -a root %I $TERM
-a 表示 autologin
若不想要用 root ,可改用其他 user

單行設定指令
sed -i 's/ExecStart.*/ExecStart=-\/sbin\/agetty -a root %I \$TERM/' /usr/lib/systemd/system/getty@.service

沒有留言:

RouterOS Adlist

RouterOS 7.15 版開始,DNS 支援 Adlist,可用 URL 直接載入 hosts,實現類似 Pi-Hole 的功能 預設的 cache-size 2048K 不夠大, 載入時超出限制 Log 中會出現 [adlist] adlist read: max cach...