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?

  • what virtual machine software? – nc4pk May 22 '13 at 1:11
  • @tapped-out Hyper-V. There's only an option to go full-screen, and all this does is center the shell on a black screen. – Louis Waweru May 22 '13 at 1:17
  • 1
    Bash has no resolution. It is the name of a shell. What you are asking is similar to asking how you change the resolution of Firefox. What you are probably looking for his how to change the resolution of the Linux console. For the record, my solution is to simply install an SSH server into the VM and then use an SSH client to connect, and minimize the VM console. You have far more control that way. – Zoredache May 22 '13 at 1:46
  • @Zoredache Thanks, I understand now. I tried your solution as well and it works. I guess my only problem with it is that it loses the system colors and some formatting (i.stack.imgur.com/QXwUR.png), but I think it's worth an upvote if you made it an answer. – Louis Waweru May 22 '13 at 2:02

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:


  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!

In addition to nc4pk's answer.

The file /etc/default/grub on my openSUSE 42.1 contains the comment:

If you change this file, run ´grub2-mkconfig -o /boot/grub2/grub.cfg´ afterwards to update /boot/grub2/grub.cfg.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.