Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
what virtual machine software? –  ncdownpat 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 May 22 '13 at 1:17
    
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 May 22 '13 at 2:02

1 Answer 1

up vote 5 down vote accepted

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!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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