6

I just downloaded GNOME-Shell. And at login screen it's give me to choose to set desktop environment, But I want to set GNOME as my default desktop environment. Although I tried the possible suggestions on this site like

pnath@ubuntu:~$ sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
[sudo] password for pnath: 
sudo: /usr/lib/lightdm/lightdm-set-defaults: command not found
pnath@ubuntu:~$ 

And this

gksu gedit /etc/lightdm/lightdm.conf

and this:

Open a terminal and cd to /etc/lightdm/lightdm.d, create a file called 50-ubuntu.conf with the following command sudo nano 50-ubuntu.conf.

Add the following two lines.

[SeatDefaults]
user-session=gnome

then reboot and gnome should be your default session.

When I tried output is this:

pnath@ubuntu:~$ cd /etc/lightdm/lightdm.d
bash: cd: /etc/lightdm/lightdm.d: No such file or directory
pnath@ubuntu:~$ 

this did not change anything

Please give me any other solution

1 Answer 1

5

(This answer was tested with Ubuntu 14.04. It is probably not useful for newer Ubuntu editions)

I do not know about ligthDM (@muru confirm that lightDM behave the same), but if you use gdm as display manager the default session is simply the last one you choose (at least, it was --- I hope they didn't change this; can't test now because I removed all desktops minus the gnome-shell one).

To install gdm (which, by the way, is the best thing to do if you want gnome-shell --- I had problems with gnome-shell + lightDM), simply

sudo apt-get install gdm

If you have it already installed, just

sudo dpkg-reconfigure gdm 

will ask you which display manager to use.

Then when you login, you choose Gnome as the desktop you want, and the subsequent login that will be the default.

7
  • Yes when I chose gdm , it's simply change login screen but not theme Oct 23, 2014 at 8:11
  • @PriyankaNath I do not understand... if you login choosing "Gnome Desktop" (which is gnome-shell), the next time you login without choosing anything you should go to "Gnome" by default. I can't understand the reference to the theme, which is another thing (and that you can set with gnome-tweak-tool).
    – Rmano
    Oct 23, 2014 at 8:17
  • 1
    "the default session is simply the last one you choose" - also holds for LightDM.
    – muru
    Oct 23, 2014 at 8:18
  • Yes by default Gnome has started but Icon theme does not changed why ? Oct 23, 2014 at 8:21
  • 1
    @Mehdi the answer was posted for Ubuntu 14.04 (see the date!). A lot of things changed in the Ubuntu graphic stack... I added a warning.
    – Rmano
    Mar 12, 2020 at 18:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .