How to increase TTY console resolution on Ubuntu 18.04 Server
The default TTY console resolution on Ubuntu 18.04 Server is normally 800x600. This may be satisfactory in many cases. However, there are times that higher resolution is required. To increase TTY console resolution on the Ubuntu 18.04 server it is necessary to change the configuration of the relevant GRUB boot loader settings within the /etc/default/grub.
Default 800x600 TTY console resolution on Ubuntu 18.04 Server virtual machine
Software Requirements and Conventions Used
Software Requirements and Linux Command Line Conventions
Ubuntu 18.04 Bionic Beaver Server
The configuration works on all bare metal or virtual Ubuntu 18.04 server installations
Privileged access to your Linux system as root or via the sudo command. To apply GRUB configuration, reboot of the Ubuntu 18.04 will be also required.
# - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user
How to increase TTY console resolution step by step instructions
In order to change/increase TTY console resolution we first should obtain supported TYY console screen resolution information. This will require a system reboot and execution of videoinfo from the GRUB command console. In the next step we will configure the GRUB boot loader and perform the system reboot:
SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.
Reboot your system into GRUB menu. Press c key to enter GRUB's command line.
To enter GRUB's command line press c key
Obtain available console resolution information be executing the following GRUB commands:
grub> set pager=1
Press space bar to scroll down. Take a note of your desired resolution eg. 1024x768.
Reboot your system or enter the normal command to continue with normal server boot.
Once in the system edit /etc/default/grub to include the following settings. The bellow GRUB settings will set TTY console to 1024x768 resolution.
The proposed /etc/default/grub file is shown below:
# If you change this file, run 'update-grub' afterwards to update
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
# Uncomment to disable graphical terminal (grub-pc only)
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
# Uncomment to disable generation of recovery mode menu entries
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Apply the new GRUB configuration and reboot your system:
$ sudo update-grub
$ sudo reboot
Custom TTY console resolution on Ubuntu 18.04 Linux Server