I want to make sure when my pc starts up, it boots into tty1, instead of tty7. And also, in case I need it, I should also be able to switch to the graphical desktop using ctrl +alt+f7 in case I need it. How do I do that?
Asked
Active
Viewed 2.3k times
1 Answers
11
Find GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub (with a sudo nano /etc/default/grub and change it to ...
GRUB_CMDLINE_LINUX_DEFAULT="text"
and update grub with ...
sudo update-grub
Tell systemd to not load the desktop with ...
sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target
And the initial boot will end up on a tty. By default it will be tty1. You can still go to the desktop by using the command startx on commandline.
I should also be able to switch to the graphical desktop using ctrl +alt+f7 in case I need it.
You will need to issue the sudo systemctl start lightdm command before using control+alt+f7. Probably impossible to get around that: if a desktop is loaded during boot it will take precedence.
Rinzwind
- 309,379