Choosing between desktops

Choosing between desktops with LightDM

To start a specific desktop session, you can choose one at the login screen from LightDM near the upper right corner. The following example, that might differ from yours, shows Trisquel with installed XFCE and GNOME Shell.

https://trisquel.info/files/lightdm-choosing-session_0.png

Start a specific desktop from TTY as a regular user

  • Edit your /etc/default/grub as follows:

Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="text"

Then, run the following commands:

  • Make your changes in /etc/default/grub take effect and update grub with the following command:

 $ sudo update-grub
  • Tell systemd to allow you to boot to a text console with the following command:

 $ sudo systemctl set-default multi-user.target
  • Edit your ~/.xinitrc and create a line to choose a preferred session that later will be executed. For example:

 exec mate-session
  • Other options are possible, but require the specific desktop to be installed. For example:

 exec gnome-session
 exec openbox
 exec startxfce4
  • At last, reboot your system with the following command:

 $ reboot
  • Within a text console, log in with your username and password, and then enter the following command to start a graphical session with your preferred desktop:

 $ startx

Further Reading

AttachmentSize
lightdm-choosing-session.png1.02 MB

Revisions

12/17/2024 - 14:03
knife