this post was submitted on 18 Aug 2023
6 points (87.5% liked)

Linux

5212 readers
78 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 1 year ago
MODERATORS
 

One can boot into the command from grub by editing kernel parameters.

Another way is edition the grub configuration and setting GRUB_CMDLINE_LINUX_DEFAULT="text". But now it's not possible to boot into a graphical env.

So is there way to create menu entry just for command line so it will be one of the ways to log into the system?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (1 children)

Not sure why you would want to specifically do that since you can boot from a normal graphics install and just use the shortcut ctrl+shift+F# to change to the TTY.

However if you really want to just edit you GRUB config and copy paste the the menu entry you want to duplicate, and to one of them add a "space" and the number "3" to the end of the line. This way one entry would boot the graphics mode and the other would boot directly to TTY.

The solution is found here https://www.linux.org/threads/grub-menu-entry-to-boot-to-tty.44508/ and perhaps a thread like this would better fit here [email protected]

[–] [email protected] 1 points 1 year ago

Thanks.

The link suggests it might be undone after GRUB updates. Maybe I will just edit the line and at the init level at the boot menu.

Ah, yes. I felt a bit uncomfortable posting here, glad to know linux4noobs exits here; subscribed.

[–] [email protected] 2 points 1 year ago

It might be possible to boot into a bootable image from grub so you don't need to set up another bootable partition.

Or you could disable your display manager in systemd. This will start in console, then if you want X just run startx.

Or you could change your display manager to Lemur, which supports X, Wayland, and TTY sessions.

Or you could just press control-alt-F2 at the login screen to switch to a console.