Merge pull request #802 from FineFan/master

Update Daily Ubuntu Tips – Fix Black Screen In Ubuntu Guest With Virtual...
OK!
This commit is contained in:
Xingyu.Wang 2014-03-11 10:19:58 +08:00
commit 8ea98aa9a4
2 changed files with 43 additions and 43 deletions

View File

@ -1,43 +0,0 @@
Daily Ubuntu Tips Fix Black Screen In Ubuntu Guest With VirtualBox Screen Capture
================================================================================
VirtualBox is a software that allows users to run multiple guest operating systems on a single host computer. Its supports Windows, Mac OS X and Linux and is maintained my Oracle.
Weve written a lot on VirtualBox here. Do a quick search and youll see all the articles about VirtualBox.
Now, heres the story: VirtualBox comes with a feature that allows users to quickly take or capture screen shots of active guest machine sessions. These screenshots can then be shared with the host machine using the clipboard.
The sad thing about it is, it wont work if certain feature in Ubuntu guest machines is enabled. It had always been a pain until just recently when I stumbled upon the solution.
Without this solution, when you take a screenshot in Ubuntu guest machines, the image will be completely dark and not useful at all.
I dug solutions with no luck until just now.
To enable bidirectional clipboard with Ubuntu guest and the host machine, click on the Ubuntu guest machine and select **Settings**. Then navigate to **General > Advanced Tab** and enable it.
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/virtualboxsharedclipboard.png)
Now, in theory, when you start the Ubuntu guest machine and press the **Print Screen** key or **Ctrl + Print Screen** keys, the guest machine should take a screenshot of its current desktop session.
You can then save it to the clipboard and access these images from the host machine.
But if you also enable **3D Acceleration** feature for Ubuntu guests, the images will be completely dark.
To fix that, you must disable 3D acceleration for Ubuntu guest machines.
To disable it, select the Ubuntu guest machine and click **Settings**. Then navigate to **Systems Display > Video** tab and disable 3D Acceleration.
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/virtualboxsharedclipboard1.png)
Well, you must disable 3D for Ubuntu guests in order to get this to work. Now launch the guest machine and try taking a screen shot.
Hope this helps.
Enjoy!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2014/02/daily-ubuntu-tips-fix-black-screen-in-ubuntu-guest-with-virtualbox-screen-capture/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,43 @@
日常Ubuntu小技巧-修复在VirtualBox截屏时的黑屏
================================================================================
VirtualBox是一个可以让你在一台物理主机上运行多个系统的软件。它支持Windows,Mac OS X 和Linux 并且是Oracle公司在维护它。
我们在这里写了很多关于VirtualBox的文章你可以做一个快速的查找来查看所有关于VirtualBox的文章。
现在这里有一个故事VirtualBox有一个功能允许用户快速的截取虚拟机会话的屏幕截图。这些截图可以通过黏贴板和宿主机共享。
这就是我们这里要说的了。这项截图的功能将不能够正常的工作当某一个Ubuntu 虚拟机中的功能被允许。这种现象一直是一个痛点,直到最近我们偶然发现了这个解决方法。
如果不采取我们发现的这个方法当你在Ubuntu的虚拟机里面截完屏幕之后截屏的图片将会被存储成全黑的文件这样的文件会毫无用处。
我一直在苦苦寻找解决方法,但是一直都没有好运气,直到刚刚。
为了开启Ubuntu下的虚拟机和宿主机之间的双向黏贴板在Ubuntu虚拟机上面点击 “设置”,之后找到,“普通->高级标签”,开启并且开启它。
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/virtualboxsharedclipboard.png)
现在理论上当你开启Ubuntu的虚拟机之后按下“截屏键”或者按下“Ctrl+截屏键”,虚拟机就应该为当前的桌面会话来张截屏。
之后你就可以通过在宿主机上面使用黏贴板的功能来看到那些图片了。
但是如果你同时启用了Ubuntu虚拟机中的“3D 加速”功能,那些图片将会变得漆黑一片。
为了不让这种事情发生你必须关闭Ubuntu虚拟机的3D加速功能。
关闭3D加速功能可以这样做在Ubuntu虚拟机种点击“设置”之后找到“系统->显示->显卡”标签关闭3D加速
![](http://www.liberiangeek.net/wp-content/uploads/2014/02/virtualboxsharedclipboard1.png)
现在你必须在Ubuntu的虚拟机中设置关闭3D加速才能让截屏正常工作。现在打开一个虚拟机尝试来截个屏幕吧。
希望这个方法能够帮到你
希望你喜欢!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2014/02/daily-ubuntu-tips-fix-black-screen-in-ubuntu-guest-with-virtualbox-screen-capture/
译者:[FineFan](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出