Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've installed the following version of ubuntu om my machine.


But when I switch on the computer, I get command line.

Ubuntu 12.04 LTS COMP-1245 tty1

Once I provide my username and password, it authenticates login and then displays a link to documentation.

Now, how can I start GUI? I'm stuck at command line?

share|improve this question
Try typing startx –  Mitch Jul 27 '12 at 8:38
I got this --bash: startx: command not found –  Mr Ghimire Jul 27 '12 at 8:41
Have you tried pressing Ctrl+Alt+F7? –  Peachy Jul 28 '12 at 4:46
@Peachy, is it possible to have more than one GUI. For example, with F7 I have my GUI and with F8, another? –  Sigur Feb 4 '14 at 15:45

3 Answers 3

up vote 26 down vote accepted

If you tried the command startx, but the error command not found was returned, then to install a graphical desktop, in case it is not installed, you would type this:

sudo apt-get install ubuntu-desktop
share|improve this answer
Thanks that did it. But why was it not installed while installing the OS itself? –  Mr Ghimire Jul 27 '12 at 8:59
@MrGhimire It should've been. Are you sure you didn't install with the minimal or server CD? You did say you used the desktop CD, but I don't see how that could've installed Ubuntu without gnome. –  geirha Jul 27 '12 at 10:42
@MrGhimire The minimal CD has a menu that asks if you'd like to install extra packages. Among these are ubuntu-desktop, as well a couple other desktops. Select it and make sure to press space on it, then enter to continue. If you just press enter, it'll skip it. –  JVE999 May 8 '14 at 2:04

Try to use startx in your tty , if it does not work on one terminal try ctrl+ alt + [F1 to F6] in order to switch a new tty

share|improve this answer

I have had the same problem. Solution is as the said try and install Xorg and the Ubuntu Desktop. also don't forget the build essential pkg

    $ sudo apt-get install build-essential
    $ sudo apt-get install ubuntu-desktop

you might have to install xorg seperate but also! Take advantage of this Command Line because (for my situation) Ubuntu kept trying to use my display port. I almost feel 12.04 has more bugs then the previous releases.

share|improve this answer

protected by Community Jun 3 '13 at 16:46

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.