When working on my laptop I would like to be able to log in directly into a tty without launching the X server. This saves battery and is also pleasant on the eyes since the screen background is truly black. Then if I need to do some web browsing I would like to launch the desktop environment with startx
or similar. How can I accomplish this in Ubuntu?
Asked
Active
Viewed 425 times
0

jsb
- 123
-
Does this answer your question? How to disable GUI in Ubuntu – Daniel T Mar 01 '24 at 18:26
-
Does this answer your question? Switching between virtual console (tty) and GUI – karel Mar 02 '24 at 16:16
1 Answers
4
To configure Ubuntu desktop to boot into the text mode, like the server:
sudo systemctl set-default multi-user.target
Then, if you are working in text mode and want to launch the graphical environment:
sudo systemctl isolate graphical.target

AlexP
- 10,197