install gui in command line linux

Shell
sudo apt-get install ubuntu-desktop
Source

Also in Shell: