/etc/default/grub
. Software Requirements and Conventions Used
Criteria | Requirements |
---|---|
Operating System | Ubuntu 18.04 Bionic Beaver Server |
Software | The configuration works on all bare metal or virtual Ubuntu 18.04 server installations |
Other | 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. |
Conventions | # - 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 ofvideoinfo
from the GRUB command console. In the next step we will configure the GRUB boot loader and perform the system reboot: Subscribe to RSS and 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. - Obtain available console resolution information be executing the following GRUB commands:
grub> set pager=1 grub> vbeinfo
- 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 to1024x768
resolution.GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" GRUB_GFXPAYLOAD_LINUX=1024x768
The proposed/etc/default/grub
file is shown below:# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=2 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" GRUB_CMDLINE_LINUX="" # 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 ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # 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' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" GRUB_GFXPAYLOAD_LINUX=1024x768
- Apply the new GRUB configuration and reboot your system:
$ sudo update-grub $ sudo reboot