设为首页 收藏本站
查看: 1139|回复: 0

[经验分享] Ubuntu 安装 VirtualBox

[复制链接]

尚未签到

发表于 2015-10-13 00:08:49 | 显示全部楼层 |阅读模式
  http://weblog.scanyours.com/2011/08/23/howto-run-internet-explorer-8-under-ubuntu-11-04-natty-narwhal-using-virtualbox/
  

  
As a web developer, I am constantly aware of the problem that every browser seems to have a mind of its own when rendering a webpage. Especially earlier versions of Internet Explorer are a big problem for a lot of developers as these browsers were not updatedwith new options and/or visual fixes (only security updates). As a result, most web developers want to test their creations in various versions of Internet Explorer to make sure that everyone can experience their website as intended. Earlier, I wrote anarticle that explained how you can run Internet Explorer 7 under Ubuntu 10.04 Lucid Lynx. However, the package provided by PlayForLinux seems to be broken now and I had to find a new way to test websites before putting them online. In this blog I willexplain a new method that actually runs Windows within Ubuntu enabling developers to exactly mimic the conditions of real users. Before starting, I should note that the files required for this method are somewhat large (3x 700Mb& 1x 553Mb), so you might want to download the files first (step 1) before continuing with the rest of these steps.
1. For this method, you need to download a ‘Internet Explorer Application Compatibility VPC Image’ provided by Microsoft. You can pick any VPC image you like, but in this blog I will make use of the Windows 7 Internet Explorer 8 image which consists out offour files. You can download your image of preference directly from theMicrosoftwebsite.

2. We need two pieces of software from the Ubuntu Software Center before we continue. Open the Ubuntu Software Center and search for the package ‘VirtualBox OSE’. Install it and search for the package ‘Wine Microsoft Windows Compatibility Layer’. Also installthis package before you continue.

3. We will use the WinRAR archiving tool from RARLAB to extract the images from the first step. You should download the Windows (32-bit) trial version from the RARLABwebsite.

4. Navigate to the directory containing your WinRAR download and select WinRAR. Now righclick on the icon and pick the option ‘Properties’ from the menu. In the new Windows make sure that the file is set to be executable (third tab ‘Permissions’, as shown below).Click ‘Close’ when you are done to close the window.

5. Now rightclick again on the icon and pick the option ‘Open with Wine Windows Program Loader’ to start the installation process of WinRAR. You can now install WinRAR by following the wizard and using the default options.

5. After installation, you can start WinRAR as a normal program. Once started, click ‘File -> Open archive’ (Ctrl + O) and select one of the image files you downloaded in first step (note that one of the downloaded files will not show up; this is expected behaviorfrom WinRAR). Click ‘Ok’ to open the archive in WinRAR.

6. Once opened, click the “Extract to…”-button and select a location where you want to save the extracted image. Now click ‘Ok’ to start the extraction process. Once done, you can close WinRAR.

7. Now start VirtualBox OSE and click ‘New’ within this program to create a new environment for your image. A wizard should appear to create your new environment.

8. Click ‘Next’ in the wizard to continue to the second page. On the new page you can give your test environment a name and you have to select the type of environment that you want to set up (this of course depends on your image of choice from the first step).Afterwards, click ‘Next’ to continue.

9. The third page allows you to allocate working memory (or RAM) to your environment. I usually allocate 1024Mb of RAM to my test environment as this allows me to run more programs in it and I have enough spare memoryto continue my normal work while my test environment is active (NOTE: it is recommend to not dedicate more than half your total working memory to an environment). After you have allocated your working memory, click ‘Next’ to continue.

10. The next page allows you to either create a new empty environment or create an environment using an existing image. Select the second option which will enable you to select your downloaded VPC image. After you have selected your image you can click ‘Next’to review your choices. Finally, click ‘Finish’ to create your new test environment.

11. Your new environment is now almost ready for you to use! However, due to a configuration ‘error’ made by VirtualBox your environment needs one more change in order to work. In the VirtualBox window select your new environment (left click on it) and clickthe button ‘Settings’. A new window should appear that looks like the one shown below.

12. Navigate to your Storage devices in the list on the left. You should now see a screen similar to the first screenshot below. Select the ‘SATA Controller’ and hit your [Delete]-key to remove this item from the list. Now click on the small ‘Add Hard Disk’-iconnext to the ‘IDE Controller’ (it’s the second icon) and add your hard disk again like you have done in step 10. The final result should look like the second screenshot below.


12. Click ‘Ok’ to close the ‘Settings’-window. Your new environment is now ready to be used for the first time! Select it (left click) and click the ‘Run’-button to start up your Windows test environment with Internet Explorer.

Remarks
Your test environment will have ‘Password1′ as a default password for all accounts available. If you use the administrator account, you can temporarily ‘activate’ your test environment for 30 days using the commandslmgr–rearm. More information on this is also available on the Microsoftwebsite.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-125974-1-1.html 上篇帖子: genymotion unable to load virtualbox engine 下篇帖子: ubuntu9.0.4 安装virtualbox
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表