我想在後台登入第二個使用者(管理員)。對於第一個用戶,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 切換到他