How to change the resolution of the Bash for a Debian VM?

I'm trying to learn how to use Linux with a Debian 7 VM that has no GUI.

The 640x400 window I'm working in feels a little constricting and would like to make it bigger, say 1024x768.

How can I do this?


Hello, I no longer use this type of work flow. I was just getting my feet wet. I prefer ssh now :)


Solution 1:

What you basically want to do is change the resolution of the framebuffer. Here's the process I used (supposing that your desired resolution is 1024x768, and that Hyper-V's framebuffer supports this resolution):

  1. Open up /etc/default/grub with superuser privileges: sudo nano /etc/default/grub
  2. Uncomment/add the following lines:

    GRUB_GFXMODE=1024x768x32
    GRUB_GFXPAYLOAD_LINUX=keep

  3. Save the file and exit: Ctrl-O, Enter, Ctrl-X
  4. Run update-grub as superuser: sudo update-grub
  5. Reboot, and (hopefully) enjoy a higher-resolution console!