How do I start Ubuntu without X server?

6,731

To stop the xserver temporalily use the following cmd:

sudo service gdm stop

Reboot the system after installing the drivers to re-start the xserver.

Share:
6,731

Related videos on Youtube

Kaare Mikkelsen
Author by

Kaare Mikkelsen

Updated on September 18, 2022

Comments

  • Kaare Mikkelsen
    Kaare Mikkelsen over 1 year

    So, I'm trying to install the official nVidia drivers for my fancy graphics card, and they advice disabling the X server before installing, as well as making sure that I can boot without the X server, so as not to wreck anything. However, I seem to be doing something wrong.

    As I understand it, this should be as simple as changing the runlevel from 2 to 1? (I am aware that all this may simply be me not understanding runlevels)

    If that is correct, a quick test should be simply typing "sudo init 1" or "sudo telinit 1" in a terminal? Doing that makes the system attempt to shutdown, only it stops at the purple screen with the ubuntu logo and 5 white dots underneath. I haven't observed it get anywhere from there, I always end up holding down the power button. "sudo telinit 3" has not visible effect.

    Alternatively, I should be able to get there using the recovery mode, activated through the grub menu? I have very little success with that. After picking recovery mode, I am faced with a set of options about how to proceed. Both choosing the one with "network enabled" and "text only", I get a dialog explaining that this will mount my / file system in read/write mode, and whether this is what I want. I choose yes, and it seems to report that my drive is fine (there's a single line of text detailing the state of the partition). And then it stops. I haven't tried letting it sit for more than a few minutes, but presumably this process should be comparable in duration to a regular boot?

    I am not particularly fond of messing with any .conf-files until I am certain that I can handle things with training wheels on. So, I guess there are two questions: the one in the title, and "how do I start a text-only session without changing defaults?"

    Thanks in advance :)

    • NickTux
      NickTux over 11 years
      Please read here askubuntu.com/questions/65856/how-does-one-exit-the-x-server on how to stop the X server. Also (I'm not sure) but I think Nvidia (now) requires the nouveau driver already blacklisted , I mean before the Installation begins, but you will see.
    • user790976
      user790976 about 6 years
      You can simply select a kernel with Upstart from the Advanced Options in the GRUB menu. This will give you a text console so you can run the Nvidia update.
  • Jean-François Beauchamp
    Jean-François Beauchamp over 5 years
    This did not work for me on Ubuntu 16.04. I got the error Unit Gen.service not loaded.