notice:以下内容仅适用于jetson nano A02 -- Linux R32.7.1
jetson的默认镜像在启动时经常需要进行登录操作,除了常见的系统设置中设置自动登录外,还可通过设置/etc/gdm3/custom.conf的文件来进行脚本配置
查看当前的登录配置
cat /etc/gdm3/custom.conf |grep Automatic
AutomaticLoginEnable = false 表示关闭登录使能
AutomaticLogin = nvidia 表示自动登录用户为nvidia
设置自动登录
sudo sed -i 's/.*AutomaticLoginEnable =.*/AutomaticLoginEnable = true/' /etc/gdm3/custom.conf
sudo sed -i 's/.*AutomaticLogin =.*/AutomaticLogin = nvidia/' /etc/gdm3/custom.conf
关闭自动登录
#关闭自动登录
sudo sed -i 's/.*AutomaticLoginEnable =.*/AutomaticLoginEnable = false/' /etc/gdm3/custom.conf