Before possibly downvoting or closing/flagging this post as duplicate please notice that I'm working with a CLI Ubuntu so installing virtualbox guest additions doesn't help. I have already tried it. I have also tried other solutions: for example this or this and many other posts. I wasn't sure if I should ask this question in macOS, Ubuntu or SuperUser stackexchange so I asked it here.
I have an Ubuntu Minimal 16.04.3 LTS tty1 installed on VirtualBox Version 5.1.30 r118389 on my MacBook running macOS EL Capitan version 10.11.6. When I fullscreen the window with left cmd ⌘+f the working window of the CLI Ubuntu does not scale up.
Expected solution:
Almost all of the solutions I have found on the internet require editing these files:
/etc/default/grub/etc/grub.d/00_header
Steps:
- Hold shift ⇧ while booting to go to GRUB menu
- press C to go to GRUB CLI
- enter the command
set pager=1to make sure you see long returns - enter the command
vbeinfoorvideoinfoand press enter multiple times to see all of your options for screen resolution. On my mac I have a screen resolution of2880x1800and from vbeinfo I chose1152x864x32. - press shift ⇧ +esc to go back to GRUB menu and then boot in normally
- When booted edit
/etc/default/grubwith superuser and applying either of the edits:- changing the value of
GRUB_CMDLINE_LINUX_DEFAULT="splash quite"toquiet vga=0x0365ornomodesetorquiet text vga=0x160orsplash vga=792... - uncommenting the line
GRUB_GFXMODE=...and editing the value to the one selected in step 4 - Adding a line below as
GRUB_GFXPAYLOAD=...with the same value as above orkeep
- changing the value of
- Editing the file
/etc/grub.d/00_headerwith superuser privilages and apply the edits:- editing the line
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=1152x864x32 ; fito match the resolution chosen in step 4 - Adding the line
if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=1152x864x32 ; fibelow - Find the line
set gfxmode=${GRUB_GFXMODE}and addset gfxpayload=${GRUB_GFXPAYLOAD}below
- editing the line
- update grub
update-gruborupdate-grub2with superuser - reboot
During the booting process or in the GRUB, the CLI matech the window size but when it boots up the main command line is still small! I have tried other resolutions and other possible combinations but none works. I would appreciate if you could help me find the problem and solve it.