Ubuntu 20.04 以某种方式启动了 2 个用户?

Ubuntu 20.04 以某种方式启动了 2 个用户?

我有 Ubuntu 20.04。我试图设置 chrome 远程桌面,然后在我设置并尝试连接后,我必须选择会话,但它是黑屏,当我重新启动计算机时,我一次又一次地提示输入密码。

我怎样才能禁用 gdm-x-session gnome-session 每次重新启动时登录?

这是输出$ w

 23:12:48 up 47 min,  2 users,  load average: 1.14, 0.82, 0.65
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
ahmetkca :1       :1               22:26   ?xdm?   9:32   0.00s /usr/lib/gdm3/gdm-x-session --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/g
ahmetkca pts/0    :1               23:12    0.00s  0.40s  0.00s w

我安装了,lxde因为我无法在默认的 ubuntu 会话上连接 chrome 远程桌面

我其实不知道用户通过 gdm-x-session 和 gnome-session 登录的根本原因

以下是输出systemctl status display-manager.service

● gdm.service - GNOME Display Manager
     Loaded: loaded (/lib/systemd/system/gdm.service; static; vendor preset: enabled)
     Active: active (running) since Tue 2022-03-08 23:32:46 EST; 3min 52s ago
    Process: 914 ExecStartPre=/usr/share/gdm/generate-config (code=exited, status=0/SUCCESS)
    Process: 941 ExecStartPre=/usr/lib/gdm3/gdm-wait-for-drm (code=exited, status=0/SUCCESS)
   Main PID: 944 (gdm3)
      Tasks: 3 (limit: 18744)
     Memory: 7.1M
     CGroup: /system.slice/gdm.service
             └─944 /usr/sbin/gdm3

Mar 08 23:32:46 thinkpad-p52 systemd[1]: Started GNOME Display Manager.
Mar 08 23:32:46 thinkpad-p52 gdm-launch-environment][1023]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Mar 08 23:32:57 thinkpad-p52 gdm-password][1959]: gkr-pam: unable to locate daemon control file
Mar 08 23:32:57 thinkpad-p52 gdm-password][1959]: gkr-pam: stashed password to try later in open session
Mar 08 23:32:57 thinkpad-p52 gdm-password][1959]: pam_unix(gdm-password:session): session opened for user ahmetkca by (uid=0)
Mar 08 23:32:57 thinkpad-p52 gdm-password][1959]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Mar 08 23:34:30 thinkpad-p52 gdm-password][6849]: gkr-pam: unable to locate daemon control file
Mar 08 23:34:30 thinkpad-p52 gdm-password][6849]: gkr-pam: stashed password to try later in open session
Mar 08 23:34:30 thinkpad-p52 gdm-password][6849]: pam_unix(gdm-password:session): session opened for user ahmetkca by (uid=0)
Mar 08 23:34:30 thinkpad-p52 gdm-password][6849]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring

相关内容