Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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


But when I switch on the computer now, I get command line;

Ubuntu 13.04 ubuntu tty1

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

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

share|improve this question

marked as duplicate by Raja, Eric Carvalho, user68186, Thomas Ward, stephenmyall May 24 '13 at 15:18

This question was marked as an exact duplicate of an existing question.

Ubuntu Server is cli & Ubuntu Desktop is GUI, So you need to download the right version...Asad sahb zara dekh kr download krn kon sa version kr liya hai – Qasim May 24 '13 at 13:15
Check that other question, but simply, you need to run sudo apt-get install ubuntu-desktop (it would be a good idea to run sudo apt-get update first though) – Dan May 24 '13 at 13:15
@Qasim if the OP doesn't want to re-install the whole OS, he only needs to install the right packages, which i believe are all offered part of the ubuntu-desktop meta-package – Dan May 24 '13 at 13:17
sudo apt-get install ubuntu-desktop – Qasim May 24 '13 at 13:20

Try the command :


This will work only if you have :

  • an X display manager like gdm on your server
  • if you are connected on server with ssh, you must start ssh with the -X option
share|improve this answer
I typed startx but the result is currently not installed .the i typed "sudo apt-get install xinit' the result was "E :unable to locate package xinit" .I am first time using ubuntu so please tell me in detail about X. – asad May 24 '13 at 13:27

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