轉(zhuǎn)帖于:ltolll的博客(技術(shù)版)
原帖: http://blog.csdn.net/ltolll/archive/2009/06/03/4238498.aspx
平臺(tái):主機(jī):XPsp3,VirtualBox(2.2.4)下的Ubuntu(9.04)
問題:ubuntu作為客機(jī)(guest)的分辨率只能調(diào)到800×600——屏幕在VirtualBox下的大小不可調(diào)
解決:
安裝最新的系統(tǒng)更新(system/軟件源)
安裝VirtualBox增強(qiáng)工具包(重要):(VirtualBox客戶機(jī)運(yùn)行窗口菜單欄上)設(shè)備-->安裝增強(qiáng)功能(點(diǎn)擊后桌面上會(huì)多一個(gè)虛擬光驅(qū)的圖標(biāo))
下面的操作需要注意,網(wǎng)上有很多方法說是運(yùn)行虛擬光驅(qū)里的VBoxLinuxAdditions文件就可以了,我按照這個(gè)方法做了很多次,不行的.必須要用終端命令的方法才可以:
打開終端輸入cd /media/cdrom0
sudo sh ./VBoxLinuxAdditions-x86.run (這里的VBoxLinuxAdditions-x86.run取決于VirtualBox和ubuntu的版本,按照虛擬光驅(qū)里的文件名改就可以)
等待運(yùn)行結(jié)束(需要一些時(shí)間)
關(guān)閉ubuntu;
重啟VirtualBox;
啟動(dòng)ubuntu;
試著用host+f切換成全屏(這里host代表VirtualBox的功能鍵,一般為右ctrl)
值得一提的是,安裝了增強(qiáng)工具包后,VirtualBox具有了一些激動(dòng)人心的功能。一個(gè)是鼠標(biāo)可以在主系統(tǒng)和guest之間切換而不必再無數(shù)次的按host鍵了;另一個(gè)超強(qiáng)的功能是主系統(tǒng)和guest之間可以共享剪切板,它一下子把工作效率從石器時(shí)代推到了現(xiàn)在。
最后感謝ccurry,是他在www.linuxquestions.org上的回答幫助了我(雖然不是我的提問)。原地址(http://www.linuxquestions.org/questions/linux-software-2/using-full-screen-mode-in-virtualbox-672165/)
原文如下:...
The nut of what you will be doing:
1. Install Ubuntu on VB.
2. After install and restart, go to the 'Devices' menu for VirtualBox.
3. Select 'Install Guest Additions'.
4. Open Terminal in Ubuntu.
Type:
cd /media/cdrom0 (this puts you to the cdrom directory where you just mounted guest additions)
Press enter then type:
dir (this shows you what's inside this directory.)
Press enter then type:
sudo sh ./VBoxLinuxAdditions-x86.run (this is what you would type if you have an x86 machine, typical. If you have an AMD use that one, and so forth.)
5. Wait for update to complete.
6. Once complete, shut down Ubuntu.
7. Restart VirtualBox
8. Boot up Ubuntu.
9. Once booted, press cmd+F for fullscreen or cmd+L for seamless.
This worked for me and I am using VB 2.2.2 on a MacBookPro. Just posted this from Ubuntu in Full Screen mode. woot.
Hope this helps.
本文來自CSDN博客,轉(zhuǎn)載請(qǐng)標(biāo)明出處:http://blog.csdn.net/ltolll/archive/2009/06/03/4238498.aspx
posted on 2010-02-08 11:02
小王 閱讀(914)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
linux