Ubuntu 14.04 How to Not Start X Server

Asked by tomdean

Ubuntu 14.04

I want to log in to a console without starting the X server or any other graphical interface.

I removed unity, unity-2d, and lightdm.

I removed lightdm from /etc/init

At boot time, I get the Ubuntu ... splash. Ctrl-Alt-F1 gets me to a console prompt. How do I prevent the Ubuntu splash?

When I login, the X server is started. I do not want this to happen.

I have some applications that I want to run from the console and do not want the X server running.

Tom Dean

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Why did you remove lightdm?? ALl you have to do is add the boot option:

text

And the X server will not start. YOu don't have to go messing with your OS like this and you will break things.

Revision history for this message
tomdean (tomdean) said :
#2

On 02/03/14 02:01, actionparsnip wrote:
> Your question #243195 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/243195
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Why did you remove lightdm?? ALl you have to do is add the boot option:
>
> text
>
> And the X server will not start. YOu don't have to go messing with your
> OS like this and you will break things.
>
Thanks for the reply. I restored unity, unity-2d, and lightdm.

I changed /etc/default/grub:
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

then did sudo update-grub

When I boot, I am presented a text login prompt.

As soon as I login, the X server starts!

How do I prevent the X server from starting when I login?

Tom Dean

Revision history for this message
tomdean (tomdean) said :
#3

On 02/03/14 13:31, tomdean wrote:
>
>
> When I boot, I am presented a text login prompt.
>
> As soon as I login, the X server starts!
>
Found the reason this happens.

~/.bash_profile executes startx as its last action, which is what I have
on my 12.04 system. (I copied all the .bash* files from there).

Thanks for the answers.

Tom Dean

Revision history for this message
daniel CURTIS (anoda) said :
#4

Hello TomDean. If you don't want to log in X11, then maybe you should try to install Ubuntu Server Edition? By default, without xorg server etc. That's just a small suggestion.

Best regards.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.