LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using Slackware in a Virtual Machine -- adjust window size (https://www.linuxquestions.org/questions/slackware-14/using-slackware-in-a-virtual-machine-adjust-window-size-760117/)

dishbreak 10-06-2009 02:06 PM

Using Slackware in a Virtual Machine -- adjust window size
 
Hi all,

I recently set up Slackware 13.0 x86 inside a VirtualBox setup. The installation went well, but I'm having a bit of a niggle.

I'm using Slackware to develop C code for a class, so I don't start X11. What this means that my virtual display is too big for the window, and I have scroll-bars on my console. (I've attached a picture to show what I mean) -> Photobucket Link

Is there any way to limit the size of the console display? I know it's not something one normally messes with, but this is starting to get kind of irritating, especially when i'm using vim.

Thanks for your time!

disturbed1 10-06-2009 02:59 PM

Edit /etc/lilo.conf

Look for this section (around line 38)
Code:

# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785

1024x768 is the default (vga=773)

Comment vga = 773 and try uncommenting vga=771 for an 800x600 display.

After changing and saving /etc/lilo.conf, you have to run lilo
$ lilo
This rewrites lilo to the mbr to save the settings. Restart the vm.

Or, you could just maximize your Virtual Screen ;)

dishbreak 10-06-2009 03:53 PM

disturbed1,

Thanks! That sorted out my issue. I had tried changing the vga code prior, but I set it to a different one and didn't run lilo after I modified the config (I figured rebooting would do the job, makes sense that the MBR wasn't touched).

Small thing for other users: I had to switch to root using su to run lilo. I couldn't run it using sudo. Of course, I can't issue commands like shutdown and poweroff within my account, so that might be another issue entirely.

Thanks again! (and yes, I was using the VM in fullscreen mode. :) )


All times are GMT -5. The time now is 07:43 AM.