Ubuntu – How to enable X at boot time so that the system boots not in text mode

bootlightdmxserver

What I have made to disable X at boot time according to "marked as correct answer"

I have disabled X server on my machine (16.04), but now I want to do a roll back to old settings. I dont want to start lightdm service in every login. Can you help me to automize it?

Best Answer

I was able to restore the default Ubuntu 16.10 settings after applying the commands from this post (sudo systemctl enable multi-user.target --force and sudo systemctl set-default multi-user.target).

The solution is to run:

sudo systemctl set-default graphical.target

I was able to deduce it from running systemctl get-default on an unmodified Ubuntu.

Related Question