You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Ubuntu 18.04 gdm3/Gnome中修改默认会话?

How to Set "Ubuntu on Wayland" as Default Session for New Users in Ubuntu 18.04 GNOME

Hey there! Switching the default session to Ubuntu on Wayland for new users in Ubuntu 18.04 GNOME is straightforward. Let’s walk through the steps:

  • First, confirm the exact name of the Wayland session desktop file. Open a terminal and run this command:

    ls /usr/share/wayland-sessions/
    

    You should see a file named ubuntu-wayland.desktop – this is the target session file we need.

  • Next, edit the GDM3 configuration file (GNOME uses GDM3 as its default display manager in 18.04). Use this command to open the file with sudo privileges:

    sudo nano /etc/gdm3/custom.conf
    
  • In the opened file, locate the [daemon] section. If it doesn’t exist, add it at the top of the file. Then add or modify the following line to set the default session:

    DefaultSession=ubuntu-wayland.desktop
    
  • Save your changes by pressing Ctrl+O, then press Enter to confirm the filename. Exit the nano editor with Ctrl+X.

  • To apply the changes, restart the GDM3 service:

    sudo systemctl restart gdm3
    

    Alternatively, you can reboot your system if you prefer a full restart.

Once done, any new user you create will have "Ubuntu on Wayland" pre-selected as their default session when they log in for the first time.

A quick note: Wayland may have compatibility issues with certain older hardware or proprietary graphics drivers (like NVIDIA’s closed-source drivers). If you encounter problems after switching, you can revert back by changing the DefaultSession value to ubuntu.desktop (the Xorg-based session) and restarting GDM3 again.

内容的提问来源于stack exchange,提问作者materangai

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:19:59