![起動時にバックグラウンドで2番目のユーザーにログインする](https://rvso.com/image/1684400/%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AB%E3%83%90%E3%83%83%E3%82%AF%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%81%A72%E7%95%AA%E7%9B%AE%E3%81%AE%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AB%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%99%E3%82%8B.png)
2 番目のユーザー (管理者) をバックグラウンドでログインしたいです。最初のユーザーのuser
場合/etc/gdm3/custom.conf
:
[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
# Enabling automatic login
# AutomaticLoginEnable = true
# AutomaticLogin = user1
# Enabling timed login
TimedLoginEnable = true
TimedLogin = user
TimedLoginDelay = 10
バックグラウンドでのログインにはadmin
次のものがあります/etc/rc.local
:
#!/bin/sh -e
#su -l admin -c "export DISPLAY=:2 && xinit && gnome-session"
sudo su -l admin -c "xinit"
exit 0
しかし、これはうまくいきません。admin
起動時にバックグラウンドでユーザーにログインして、いつでもGUIから切り替えられるようにしたいのです。