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

沒有留言:

Update ESXi to 8.0.3d using depot file

本例是從 8.0U3 升到 8.0U3d,若從更舊的版本升級,不確定是否適用 先把所有 VM 關機,進入維護模式 把 depot 升級檔 VMware-ESXi-8.0U3d-24585383-depot.zip 放到機器內 ssh ESXi 先查看 depot 有那些 Prof...