Turnkey and Vbox change console size

kamaradski's picture
Hi all,

I was hoping one of you would be able to point me in the right direction on a small challenge i'm facing.

On my Debian host, i'm running 2 Turnkey machines in Virtualbox namly the Lamp-stack and the torrent server.

As i'm doing most administration via a x11vnc client i would like to increase the console resolution of the virtual machines to 800x600 or 1024x768 on boot.

After some searching i know i need to change this in the grub2 configuration, however the few articles i found on this topic are not corresponding the turnkey setup.

Could someone on help me solve this ?

Many thanks in advance!

Jeremy Davis's picture

Unless you have a specific reason to have a GUI installed IMO you are much better off using SSH (from a local terminal), SFTP (Filezilla is my favourite) and the WebUIs avaiable with TKL. Then you won't have any issue with window size/resolution (it can be maximised, minimised or whatever).

If for some reason you wish to persevere on your current course then I would suggest that you consult the Ubuntu forums - TKL 11.x (the current version is v11.2) is based on Ubuntu 10.04/Lucid.

kamaradski's picture

Hi Jeremy, thanks for the reply :)

I'm not actually vnc'ing into the TLK VM's only to the host machine through a ssht-tunnel this host is not Vbox dedicated and has the full gnome installed for day-to-day purposes.

There are 2 reasons for me using the VM consoles and need resolution change:

1 - It's often quicker to have have a quick glance on the running console to see for any latest screen updates then to open a new console and ssh+screen to the VM.
2 - i'm running some "not out of the box" software on the TLK VM's and they display info on the console however these would need a higher resolution to be readable. (example rtorrent without webgui)

I'll have another sniff on the Ubuntu forums, even though i already gave it a quick scan. Thanks again for the reply.


Jeremy Davis's picture

No worries on the reply. TBH it's not something I've ever done before so I've got no idea (I recall doing it with desktop connections before, but never console ones). Sorry I couldn't be a bit more helpful.

Ric Moore's picture

Wouldn't using putty be easier? you can configure size, fonts and font sizes, colors, you name it. Easy enough. Ric

Jeremy Davis's picture

Using PuTTY to SSH straight to the VM would be a much better solution IMO too.

Ed Carp's picture

Addressing the original question, didn't the user want to run something like 80x25 on the console instead of using putty to get in? I thought he mentioned that he didn't want to use putty or ssh, but the solution proposed didn't address this?

I have a similar issue - using Turnkey LAMP 13.0 on an HP laptop, on bootup the console goes into an enhanced video mode, and shows much greater text resolution than 80x25. As I replace getty with a custom getty for enhanced security purposes, the screen resolution on the console needs to be 80x25.

As a workaround, I hacked /boot/grub/grub.cfg to remove the load_video line, then I had to add "acpi=off noapic" to the kernel boot line (after "ro"). I am aware that this will not survive the next update-grub.

I'm not sure how to get my C program to switch text video modes, or I would do it in the code.

Jeremy Davis's picture

TBH I'm not 100% sure about removing the "load_video" line, but the 'proper' way to (permanently) add kernel options is to edit /etc/default/grub and amend the GRUB_CMDLINE_LINUX_DEFAULT line. E.g.:

GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi=off noapic"

Then update grub:


Post new comment