安装依赖
sudo apt install just rustc libglvnd-dev libwayland-dev libseat-dev libxkbcommon-dev libinput-dev udev dbus libdbus-1-dev libsystemd-dev libpixman-1-dev libssl-dev libflatpak-dev libpulse-dev pop-launcher libexpat1-dev libfontconfig-dev libfreetype-dev mold cargo libgbm-dev libclang-dev libpipewire-0.3-dev libpam0g-dev -y
Installing on Pop!_OS
COSMIC DE is in its first alpha release. Using and testing the alpha is welcome. Bugs and breakage are expected.
Enable Wayland
sudo nano /etc/gdm3/custom.conf
Change WaylandEnable to true:
WaylandEnable=true
Reboot for this change to take effect.
Update udev rules for NVIDIA users
sudo nano /usr/lib/udev/rules.d/61-gdm.rules
Look for LABEL="gdm_prefer_xorg" and LABEL="gdm_disable_wayland". Add # to the RUN statements so they look like this:
LABEL="gdm_prefer_xorg"
#RUN+="/usr/libexec/gdm-runtime-config set daemon PreferredDisplayServer xorg"
GOTO="gdm_end"
LABEL="gdm_disable_wayland"
#RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
GOTO="gdm_end"
Restart gdm
sudo systemctl restart gdm
Install COSMIC
sudo apt install cosmic-session
After logging out, click on your user and there will be a sprocket at the bottom right. Change the setting to COSMIC. Proceed to log in.