Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不能使用 mdt,因为我已经在开发板上禁用了 ssh。当通过串口连接到开发板时,我经常会因为登录提示而停止,这使得编写自动化任务变得困难。有什么建议么?
好问题!请打开此文件:
/lib/systemd/system/serial-getty@.service
并将 ExecStart=... 行更改为:
ExecStart=-/sbin/agetty --autologin mendel --keep-baud 115200,38400,9600 %I $TERM
然后重新启动,串行控制台将不再显示登录提示。