![调试显示管理器未启动](https://linux22.com/image/144514/%E8%B0%83%E8%AF%95%E6%98%BE%E7%A4%BA%E7%AE%A1%E7%90%86%E5%99%A8%E6%9C%AA%E5%90%AF%E5%8A%A8.png)
我很自豪拥有 MacbookPro10,1(视网膜)。我已经在上面安装了 Debian stable,到目前为止,直到今天,它都运行良好。
如果我保持 grub 不变并以默认模式启动,我会看到显示文本,但登录屏幕永远不会出现。最后几行:
...
Started WPA Supplicant
Started User Manager for UID 103
我可以在恢复模式下重新启动,启动网络管理器,没有任何问题。我已经重新安装了 nvidia 软件包以防万一(apt-get install -tstretch-backports nvidia-driver)。
所以我的目标是诊断 gdm3 未启动的原因。在我的机器上,我无法使用Ctrl+ Alt+Backspace或Alt gr+ Print Screen+ K,因为键盘上不存在这些键。
我无法使用虚拟 tty(Ctrl+F1不给我提示)。
所以我现在设法设置 ssh + PermitRootLogin yes 。
从我的远程 ssh 中,如果我尝试以下命令,我看不到任何事情发生:
# service gdm3 restart
不过(也是从我的远程 ssh),我可以启动startx
,并且我会看到 X 会话在远程 MacbookPro 上显示得很好。
找出 gdm3 未启动的步骤是什么?
作为参考,我的旧习惯只是 grep /var/log/debug,但这次没有出现任何明显的情况:
# grep gdm3 /var/log/debug
Dec 13 12:35:33 macbookpro gdm3: Enabling debugging
Dec 13 12:35:33 macbookpro gdm3: Changing user:group to Debian-gdm:Debian-gdm
Dec 13 12:35:33 macbookpro gdm3: Successfully connected to D-Bus
Dec 13 12:35:33 macbookpro gdm3: GdmManager: GDM starting to manage displays
Dec 13 12:35:33 macbookpro gdm3: GdmLocalDisplayFactory: Adding display on seat seat0
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: id: (null)
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: seat id: (null)
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: session class: greeter
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: initial: no
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: allow timed login: yes
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: local: yes
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: session type: wayland
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: seat id: seat0
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: initial: yes
Dec 13 12:35:33 macbookpro gdm3: GdmDisplayStore: Adding display /org/gnome/DisplayManager/Displays/94531909767968 to store
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Managing display: /org/gnome/DisplayManager/Displays/94531909767968
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Preparing display: /org/gnome/DisplayManager/Displays/94531909767968
Dec 13 12:35:33 macbookpro gdm3: doing initial setup? no
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: prepare display
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Got automatic login details for display: 0
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Creating D-Bus server for worker for session
Dec 13 12:35:33 macbookpro gdm3: GdmSession: D-Bus server for workers listening on unix:abstract=/tmp/dbus-tddsFbEu
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Creating D-Bus server for greeters and such
Dec 13 12:35:33 macbookpro gdm3: GdmSession: D-Bus server for greeters listening on unix:abstract=/tmp/dbus-b3xo1lyn
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Setting display device: (null)
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Running greeter
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Creating greeter for (null) (null)
Dec 13 12:35:33 macbookpro gdm3: GdmLaunchEnvironment: Starting...
Dec 13 12:35:33 macbookpro gdm3: GdmLaunchEnvironment: Setting up run time dir /var/run/gdm3/greeter
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Creating D-Bus server for worker for session
Dec 13 12:35:33 macbookpro gdm3: GdmSession: D-Bus server for workers listening on unix:abstract=/tmp/dbus-vfQwpNon
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Creating D-Bus server for greeters and such
Dec 13 12:35:33 macbookpro gdm3: GdmSession: D-Bus server for greeters listening on unix:abstract=/tmp/dbus-BAYbCdhF
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Setting display device: (null)
Dec 13 12:35:33 macbookpro gdm3: GdmSession: starting conversation gdm-launch-environment
Dec 13 12:35:33 macbookpro gdm3: GdmSessionWorkerJob: Starting worker...
Dec 13 12:35:33 macbookpro gdm3: GdmSessionWorkerJob: Running session_worker_job process: gdm-session-worker [pam/gdm-launch-environment] /usr/lib/gdm3/gdm-session-worker
Dec 13 12:35:33 macbookpro gdm3: GdmSessionWorkerJob: : SessionWorkerJob on pid 2778
Dec 13 12:35:33 macbookpro gdm3: GdmSession: setting session to type 'wayland'
Dec 13 12:35:33 macbookpro gdm3: GdmLocalDisplayFactory: display status changed: 1
Dec 13 12:35:33 macbookpro gdm3: GdmDBusServer: new connection 0x55f9ece6d650
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Handling new connection from worker
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Authenticating new connection
Dec 13 12:35:33 macbookpro gdm3: GdmSession: worker connection is 0x55f9ece6d650
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Emitting conversation-started signal
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Beginning setup for session for program using PAM service gdm-launch-environment
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Conversation started
Dec 13 12:35:33 macbookpro gdm-launch-environment]: GdmSessionWorker: Set PAM environment variable: 'HOME=/var/lib/gdm3'
Dec 13 12:35:33 macbookpro gdm3: GdmSession: type wayland, program? yes, seat seat0
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Emitting 'session-opened' signal
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Greeter session opened
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: session id: c1
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Stopping all conversations except for gdm-launch-environment
Dec 13 12:35:33 macbookpro gdm3: GdmSession: type wayland, program? yes, seat seat0
Dec 13 12:35:33 macbookpro gdm3: GdmSession: type wayland, program? yes, seat seat0
Dec 13 12:35:33 macbookpro gdm-launch-environment]: GdmSessionWorker: Set PAM environment variable: 'HOME=/var/lib/gdm3'
Dec 13 12:35:33 macbookpro gdm-launch-environment]: GdmSessionWorker: Set PAM environment variable: 'PWD=/var/lib/gdm3'
Dec 13 12:35:33 macbookpro gdm-launch-environment]: GdmSessionWorker: start program: /usr/lib/gdm3/gdm-wayland-session "gnome-session --autostart /usr/share/gdm/greeter/autostart --debug"
Dec 13 12:35:33 macbookpro gdm-launch-environment]: GdmSessionWorker: opening session for program '/usr/lib/gdm3/gdm-wayland-session'
Dec 13 12:35:33 macbookpro gdm3: GdmSession: Emitting 'session-started' signal with pid '3287'
Dec 13 12:35:33 macbookpro gdm3: GdmDisplay: Greeter started
Dec 13 12:35:33 macbookpro gdm3: GdmManager: trying to register new display
Dec 13 12:35:33 macbookpro gdm3: GdmLocalDisplayFactory: display status changed: 2
另外供参考,我在这里也没有看到错误:
# systemctl status gdm
● gdm.service - GNOME Display Manager
Loaded: loaded (/lib/systemd/system/gdm.service; static; vendor preset: enabled)
Active: active (running) since Thu 2018-12-13 12:35:33 CET; 5min ago
Process: 2600 ExecStartPre=/usr/share/gdm/generate-config (code=exited, status=0/SUCCESS)
Process: 2582 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/gdm3" ] (code=exited, status=0/SUCCESS)
Main PID: 2626 (gdm3)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/gdm.service
└─2626 /usr/sbin/gdm3
Dec 13 12:40:06 macbookpro gdm-launch-environment][9098]: GdmSession worker: watching pid 9101
Dec 13 12:40:06 macbookpro gdm3[2626]: GdmSession: Emitting 'session-started' signal with pid '9101'
Dec 13 12:40:06 macbookpro gdm3[2626]: GdmDisplay: Greeter started
Dec 13 12:40:08 macbookpro gdm3[2626]: GdmManager: trying to register new display
Dec 13 12:40:08 macbookpro gdm3[2626]: GdmLocalDisplayFactory: display status changed: 2
Dec 13 12:40:13 macbookpro gdm3[2626]: GdmManager: trying to open new session
Dec 13 12:40:13 macbookpro gdm3[2626]: GdmDBusServer: new connection 0x55f9ece6db50
Dec 13 12:40:13 macbookpro gdm3[2626]: GdmSession: Handling new connection from outside
Dec 13 12:40:13 macbookpro gdm3[2626]: GdmManager: client connected
Dec 13 12:40:13 macbookpro gdm3[2626]: GdmDisplay: Got timed login details for display: 0