Ubuntu: installing gnome desktop lightdm without selecting


I am writing bash script to install gnome desktop.

sudo apt-get install ubuntu-gnome-desktop  

But it is stuck when it ask to select between 1. lightdm and 2. gdm3.

How can I make it automated ? I want to finish the installation without any command input. Everything should be in script.


You have to set an environment variable to skip the dialogue.

sudo DEBIAN_FRONTEND=noninteractive apt-get install ubuntu-gnome-desktop  

But you might have to take care of the configuration file on your own. E.g. configure /etc/X11/default-display-manager.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »