LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Booting into cli (https://www.linuxquestions.org/questions/ubuntu-63/booting-into-cli-4175676202/)

l0rddarkf0rce 05-30-2020 11:49 AM

Booting into cli
 
Have a Ubuntu 20.04 XFCE machine and I do not need the GUI so I disabled it using

Code:

sudo systemctl set-default multi-user.target
rebooted the system and it booted into cli, well kind of... It does not boot into any of the tty1-6 it goes I guess into tty7 which is the default for GUI (may be wrong on that), so I have to press CTRL-ALT-<F1-6> to get a login prompt.

How do I change the default tty that the machine is booting onto?

ps: why i installed XFCE vs server if I was not going to use X is a discussion for another time.

michaelk 05-30-2020 12:45 PM

I just tried it on my VM and it worked as expected. It was at tty1. I am running a different desktop but should not matter as far as I know.

Code:

systemctl enable multi-user.target
systemctl set-default multi-user.target

Usually by default the system console is tty1. If you do not see any start up messages then it is different tty.

l0rddarkf0rce 05-30-2020 03:24 PM

you and i know that it should not make a difference and that it should work, but apparently my machine does not know that... Oh well I guess if I need to reboot I'll give it a 3 finger salute before login in.

just asking for a friend... if I want it to start on tty3 or something how would i do that?

l0rddarkf0rce 05-30-2020 03:35 PM

OK a little of tweaking of /etc/default/grub did the trick

Quote:

sudo cp -n /etc/default/grub /etc/default/grub.backup
sudo nano /etc/default/grub

-----
disable GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" by adding # at the beginning.
set GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="text"
remove # from the line GRUB_TERMINAL="console" to disable graphical terminal.
-----

sudo update-grub
sudo reboot
It reboots and goes straight into a cli command prompt :-)


All times are GMT -5. The time now is 04:43 PM.