Difference between revisions of "Fullscreen problem of Ubuntu in VM"
m (1 revision imported) |
|||
| Line 41: | Line 41: | ||
ccsm | ccsm | ||
* Select the OpenGL section and then untick the Framebuffer Object option. If this fixes the issue it should be immediately visible. No reboot is required. | * Select the OpenGL section and then untick the Framebuffer Object option. If this fixes the issue it should be immediately visible. No reboot is required. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | http://www.linuxformat.com/forums/viewtopic.php?p=103289 | ||
| + | |||
| + | # Start Virtual box and log into Ubuntu. | ||
| + | # Hit the right ctrl key so you can get your mouse pointer outside the virtual machine. | ||
| + | # .Go to top of virtual window, click on devices then select "Install Guest Additions" You will see a window pop up inside Ubuntu showing you that there are some new files mounted in a virtual CDROM drive. One of those files should be VBoxLinuxAdditions.run | ||
| + | |||
| + | You must run the file with some admin permissions so do that this way... | ||
| + | |||
| + | * Click inside the Ubuntu screen again then go to Applications - Accessories then Terminal. The terminal window is where you will run the file from, but first we must navigate to the correct directory. | ||
| + | * type this... cd /media/cdrom0 (then hit enter, there is a space after cd!) | ||
| + | * next type... dir (You should see amongst the files displayed VBoxLinuxAdditions.run) | ||
| + | * now type... | ||
| + | sudo sh ./VBoxLinuxAdditions.run | ||
| + | (yes, that is a full stop before the slash!) | ||
| + | * after you hit enter and it has done its stuff, the files are now accessable from Ubuntu. | ||
| + | |||
| + | You now need to reboot the virtual machine or press Ctrl+Alt+backspace. | ||
| + | * Log onto the Ubuntu desktop and this time go to System - Preferences then Screen Resolution. You should now have more options than the three low res options you had at the beginning of the day! | ||
| + | * if the resolution you want is not one of the newly listed ones then follow these steps... | ||
| + | |||
| + | * Open the terminal window again (Applications - Accessories then Terminal) | ||
| + | Type... | ||
| + | sudo gedit /etc/X11/xorg.conf | ||
| + | (space after gedit and X11 must be capital X) | ||
| + | It will ask you for a password which is the same as you log in with. | ||
| + | The text editor loads and you should see a lot of text in the window. First make a backup of this file by going to "file" then "save as" and changing the filename to xorgbak.conf | ||
| + | |||
| + | You now need to hunt through the text until you see the display resolutions listed. The ones you will be concerned about will be listed under bit depth 24 or bit depth 16 (as these depths are the ones that give you a large amount of colors.) | ||
| + | |||
| + | The idea here is to have your favorite screen resolution included in this list. Do this by either inserting it before the other listed resolutions in the exact same manner or typing it over one of the others. (you will only need to do this for the ones under bit depth 24 and 16) | ||
| + | |||
| + | You must now do a "save as" but be careful here as this time we need to call the file xorg.conf again. If you just hit save here you would have saved the changes over the backup file you created! | ||
| + | |||
| + | You are done. Hit Ctrl+Alt+Backspace to restart your virtual box, log in and enjoy your new screen resolution options! | ||
Latest revision as of 16:19, 17 February 2017
View -> Switch to Fullscreen Mode (or HOST+F)
Right CTRL is normally the default HOST key.
You need to install the Guest Additions to be able to adjust the guest screen geometry to the host in fullscreen mode.
Installing Guest additions
http://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm
Why does a Ubuntu guest in VirtualBox run very, very slowly?
http://askubuntu.com/questions/207813/why-does-a-ubuntu-guest-in-virtualbox-run-very-very-slowly
- Install VirtualBox Oracle VM VirtualBox Extension Pack.
- Create a VirtualBox instance and install Ubuntu 12.10 on it.
- Install some required packages for the guest additions:
sudo apt-get install linux-headers-$(uname -r) build-essential
- Install the guest additions by clicking Devices, Install Guest Additions and running this command from the CD-ROM's directory:
sudo ./VBoxLinuxAdditions.run
- Add the vboxvideo driver to the instance by running:
sudo bash -c 'echo vboxvideo >> /etc/modules'
- Shutdown the VirtualBox instance.
- Open the settings of the Virtualbox instance, navigate to "Display", and tick "Enable 3D acceleration".
- Boot your Ubuntu 12.10 guest, and check that 3D acceleration is working by running:
/usr/lib/nux/unity_support_test -p
- If windows seem to disppear, install CompizConfig Settings Manager and disable Framebuffer Object (FBO) in the OpenGL section:
- Install the CompizConfig Settings Manager:
sudo apt-get install compizconfig-settings-manager
- Run the CompizConfig Settings Manager:
ccsm
- Select the OpenGL section and then untick the Framebuffer Object option. If this fixes the issue it should be immediately visible. No reboot is required.
http://www.linuxformat.com/forums/viewtopic.php?p=103289
- Start Virtual box and log into Ubuntu.
- Hit the right ctrl key so you can get your mouse pointer outside the virtual machine.
- .Go to top of virtual window, click on devices then select "Install Guest Additions" You will see a window pop up inside Ubuntu showing you that there are some new files mounted in a virtual CDROM drive. One of those files should be VBoxLinuxAdditions.run
You must run the file with some admin permissions so do that this way...
- Click inside the Ubuntu screen again then go to Applications - Accessories then Terminal. The terminal window is where you will run the file from, but first we must navigate to the correct directory.
- type this... cd /media/cdrom0 (then hit enter, there is a space after cd!)
- next type... dir (You should see amongst the files displayed VBoxLinuxAdditions.run)
- now type...
sudo sh ./VBoxLinuxAdditions.run
(yes, that is a full stop before the slash!)
- after you hit enter and it has done its stuff, the files are now accessable from Ubuntu.
You now need to reboot the virtual machine or press Ctrl+Alt+backspace.
- Log onto the Ubuntu desktop and this time go to System - Preferences then Screen Resolution. You should now have more options than the three low res options you had at the beginning of the day!
- if the resolution you want is not one of the newly listed ones then follow these steps...
- Open the terminal window again (Applications - Accessories then Terminal)
Type...
sudo gedit /etc/X11/xorg.conf
(space after gedit and X11 must be capital X) It will ask you for a password which is the same as you log in with. The text editor loads and you should see a lot of text in the window. First make a backup of this file by going to "file" then "save as" and changing the filename to xorgbak.conf
You now need to hunt through the text until you see the display resolutions listed. The ones you will be concerned about will be listed under bit depth 24 or bit depth 16 (as these depths are the ones that give you a large amount of colors.)
The idea here is to have your favorite screen resolution included in this list. Do this by either inserting it before the other listed resolutions in the exact same manner or typing it over one of the others. (you will only need to do this for the ones under bit depth 24 and 16)
You must now do a "save as" but be careful here as this time we need to call the file xorg.conf again. If you just hit save here you would have saved the changes over the backup file you created!
You are done. Hit Ctrl+Alt+Backspace to restart your virtual box, log in and enjoy your new screen resolution options!