The Situation
I started learning something new for a few days ago and ran into an annoying thing. I needed using VirtualBox with an Ubuntu 16.04 server. The host machine was Windows 8.1. Obviously, a new server is not ready for ssh usage at first, and you need to configure the environment for yourself. Changing the font-size in a ssh-client is not a big deal, but you need to get there at first. So you will have to configure the server while you have to watch those tiny little characters. In Virtualbox, you can improve the font-size a bit with the zooming function of the software, but it will be dim because in VirtualBox the default resolution of the command line is 640x480. So you still won't be happy with the results. To fix this issue, I started googling for a solution, but unfortunately, I couldn't find the right one just parts. Due to this, I would like to share what worked for me.
Change the resolution of Linux Command Line
Step 1:
Reboot Ubuntu and wait for the Grub2 boot loader while you keep pressing the 'c 'character. When you see the Grub loader command prompt, you should type this command videoinfo or vbeinfo
and hit enter. You will get a list like this below. (width X height).
Step 2:
I advise you to create a screenshot like above because you will need these data in the next step of the process. There is a videotest
command wich you can try to use to test the given resolution. However, while this test worked for me as well, I could not get back to the Grub menu after!
Step 3:
Reboot your computer and edit (sudo) the /etc/default/grub file.
Step 4:
Uncomment the GRUB_GFXMODE and add your selected resolution. a. This will change the resolution of the Grub Loader. It is good to have but it will not be enough. After the Grub Boot Loader, you will still get a 640X480 resolution for the command line.
Step 5:
Add the *GRUB_GFX_PAYLOAD_LINUX * variable below with the same resolution as above.
Step 6:
In the top part of the file there is an empty variable GRUB_CMDLINE_LINUX_DEFAULT. You need to assign this variable with the "video=
Last Step
Run the update and reboot commands: sudo update-grub sudo reboot
I would like to recommend a few links related to this issue.
- askubuntu link 1
- askubuntu link 2
- askubuntu link 3
- askubuntu link 4
- ubuntu.com link
- askubuntu link 5
- askubuntu link 6
- ubuntu geek link
- askubuntu link 7