English 中文(简体)
How do I change the dynamically change the window size with Ubuntu on VirtualBox [closed]
原标题:

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 9 years ago.

Ive installed Ubuntu inside of a Sun VirtualBox. When I maximise the VirtualBox window the Ubuntu window stays the same size and does not dynamically grow with the size of the VirtualBox window.

Ive seen this done before. How do I set it up? (And no Im not just looking for how to increase the screen resolution)

Thanks

最佳回答

You need to install the VirtualBox Guest Additions.
Go to Synaptics an mark the packages:

virtualbox-ose-guest-utils
virtualbox-ose-guest-x11

or go to the console and type:

sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11

This will enable most of the VirtualBox drivers in your system.

If you need USB support, you need to install the binary guest additions from the devices menu of your VirtualBox window instead. They have more functions than the OSE ones, but you need to install them manually. This is described at ubuntu-tutorials

Edit: updated Link to a newer article

问题回答

You need to install Virtualbox Additions inside the guest OS. It can be done by selecting "Devices -> Install Virtualbox Additions".

This will mount the install CD image to the guest machine cdrom if the additions are available for Ubuntu. If they are not, you can install them by following some of the tutorials found on Google. For example, this one.

Fixed the above problem with regards to The Windows Guest Additions drivers were removed from this directory to save space on your hard drive

Seems there s a bug in using Devices > Install Guest Additions when the os is loaded and that the image this mounts is incomplete and does not include all the necessary files (infact it had about 4 files and a readme)

Went back to the VirtualBox manager and picked Guest Additions as the mountable CDROM drive there, that exposed the correct mounted drive and all worked per the earlier provided tutorial instructions.

I suggest an alternate route.

First download the .iso for Guest Additions.

Exit Ubuntu in VirtualBox, and go to:

  • Settings > Storage
  • Click on "Empty" with the CD icon next to it
  • On the right under "Attributes and next to "CD/DVD Drive", click the CD icon
  • Click "Choose a virtual CD/DVD Disk file"
  • Navigate to the .iso file you downloaded for Guest Additions

Note the difference between a "disc" and a "disk".

  • Disc: Internal storage (such as a Hard Drive)
  • Disk: External media (in this case a CD or DVD)

NOTE: After installing Guest Additions, for full-screen mode, press (right-Ctrl)+F. Do the same to un-maximize the window.





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签