Score:1

How to configure Ubuntu 22.04 to boot in console/text mode only and have a 80 column x 25 row screen

hu flag

How to configure Ubuntu 22.04 to boot in console/text mode only and have an 80-column x 25-row full screen? This is for a legacy application

Running: sudo systemctl set-default multi-user.target does get the system to boot in console mode but without changing the resolution.

I have tried editing 2 lines in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="text nomodeset"
GRUB_TERMINAL=console

I have tried editing /etc/default/console-setup

# CONFIGURATION FILE FOR SETUPCON
# Consult the console-setup(5) manual page.

ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="guess"
#FONTFACE="Fixed"
#FONTSIZE="8x16"
FONTFACE="TerminusBoldVGA"
FONTSIZE="8x14"
VIDEOMODE=
# The following is an example of how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'

Neither of these modifications makes any difference in the screen resolution.

Thank you in advance for your help Charlie

David avatar
cn flag
What version of Ubuntu did you install.? It reads like you want server with no GUI.
vanadium avatar
cn flag
`/etc/default/console-setup` is where it needs to happen, and the options will be rather limited.
Charlie avatar
hu flag
David, I installed Ubuntu 22.04 LTS. Yes there is no GUI and it is booting into console mode but I can't get the lower resolution and 80 x 25 screen
Charlie avatar
hu flag
Vanadium yes the options are limited but using /etc/default/console-setup, unfortunately, makes no difference
Score:0
in flag

To disable graphical login and get a text/getty login, you want to change the default target for systemd:

systemctl set-default multi-user.target

This will not necessarily give you a 80x24 console, changing the console-setup font sizes will assist there.

Similarly, your grub environment (and command line parameters) will control the font selection and any intermediary graphical environments between grub and getty.

You seemed to have both of those issues identified and perhaps even under control, leaving the systemd target the most likely source of your woes. If you still have problems, please describe exactly which aspect of your boot is causing you problems.

Looking at Ubuntu running only graphics mode and I cant change to text mode and similar suggested related questions may also be productive.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.