Difference between revisions of "EBC Exercise 07 Installing Ubuntu in VMware"

From eLinux.org
Jump to: navigation, search
m (Cleaning up html)
 
(39 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Here's step by step instructions.
+
[[Category:ECE497]]
Go to http://sourceforge.net/projects/vmmanager and get VMmanager, install and run it.
+
{{YoderHead}}
  
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Creat a new virtual machine"</div>
+
It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux.  The problem is many have some form of Windows OS installed. Here are step by step instructions on how to install a virtual machine running Ubuntu Linux on your Windows box.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select Operating System:  Linux</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Below Select:  Ubuntu Linux</div>
+
== Installing and Configuring VMware Workstation ==
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Project name:  Ubuntu 9.10</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab RAM:   512M  (make this no more than 1/2 your RAM)</div>
+
=== Downloading VMware Workstation ===
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hard Disk: 20480 (we want 40960, but it won't do that)</div>
+
If you are a Rose student you have access to a free (well, already paid for) copy of VMware Workstation. Here's where to find it:
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Unselect "Allocate all disk space now"</div>
+
# Go to [http://angel.rose-hulman.edu/default.asp Angel]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Keep Selected "Split into 2GB files"</div>
+
# Click on [http://angel.rose-hulman.edu/ROSEtools/ROSEportal/default.asp RosePortal] near the bottom of the middle column.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged</div>
+
# Click on the link below [http://e5.onthehub.com/WebStore/ProductsByMajorVersionList.aspx?ws=67366416-107e-de11-9b99-0030487d8897&vsro=8&JSEnabled=1 VMware Global Education and Research Program]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Adapters:<span style="white-space: pre;"> </span>Select USB, COM1 COM2 and Sound Adapter</div>
+
# Select [http://e5.onthehub.com/WebStore/OfferingsOfMajorVersionList.aspx?ws=67366416-107e-de11-9b99-0030487d8897&vsro=8&pmv=f5bac88e-ccf5-e111-bd05-f04da23e67f6&cmi_mnuMain=4751da70-dd3c-df11-b4ab-0030487d8897&cmi_mnuMain_child=fff4cc7b-8f1f-de11-9c12-0030485a8df0 VMWare Workstation 9]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.</div>
+
# Download it. This will take several steps. In the end you will download a file that's some 436M.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Restart VMmanager</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Modify an existing virtual machine"</div>
+
=== Downloading Ubuntu ===
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select the machine you just saved.</div>
+
You are welcome to run whatever flavor of Linux you want, however I suggest running the current ''long-term support'' version of Ubuntu. The current LTS is 12.04. If you are at Rose you can quickly get it from the CSSE site.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Hard Drive</div>
+
# Got to the [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/ csse site]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Unlock"</div>
+
# Click [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2 12.04.2].
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Enter 40960</div>
+
# If you are running 32-bit hardware download [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2/ubuntu-12.04.2-desktop-i386.iso ubuntu-12.04.2-desktop-i386.iso].  If you are running 64-bit download [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2/ubuntu-12.04.2-desktop-amd64.iso ubuntu-12.04.2-desktop-amd64.iso].
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Finish</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click "Ok".  It should quickly say it is finished.</div>
+
=== Running VMware and Installing Ubuntu ===
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the VMware player (I got 2.5.3) at:</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
# Start VMware Workstation
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.vmware.com/download/player/download.html</div>
+
# Select "Create a new virtual machine"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Install it</div>
+
# Select "Typical"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the Ubuntu iso image at http://www.ubuntu.com/</div>
+
# Select "Installer disc image file (iso)" and browse to the Ubuntu iso file. It should detect the correct OS
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the vm you created above.  (*.vmx)</div>
+
# Fill in names
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The VMware Player should start.</div>
+
# Fill in VM name
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the CD icon on the bottom right.</div>
+
# Use default disk size (20G) and be sure "Split virtual disk into multiple files"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select Disconnect.</div>
+
# Click "Finish"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the CD icon again and select "Connect to disk image file (iso):</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select the Ubuntu iso file you downloaded.</div>
+
Ubuntu will install and in a few minutes you'll have a running version.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">On the top left the widow select the menu VMware Player:Troubleshoot:Reset</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The VMware Player should find the iso image and start the Unbuntu install.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select:  Load Ubuntua</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 2:  It won't see you mouse at first, so use the keyboard.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 3:  Ctrl-Alt will release the mouse for outside the VM.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Answer questions for your location.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Erase and use the entire disk"</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Answet the rest of the questions.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select install and wait a while.  My install took about 1/2 and hour.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Restart the system when asked to.  You may be asked about ejecting the CD-ROM.  I clicked No.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Once Ubuntu is running you can right-click on the CD-ROM image and unmount it.  Then</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">go to the CD-ROM icon on the bottom right and disconnect from the iso image.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The Update Manager may appear.  Go ahead and have it update everything.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">It took 15 minutes on my system.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Installing beagleboard-demo-image on Ubuntu under VMware</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">I got and error the labgwaether had failed.  I check the log file given in the erro and it said</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">tmp/staging/i686-linux/usr/lib/libxml2.so.2 had an undefined symbol gzopen64.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The path tells me it's something being compiled for the guest OS (not the target).  I googled</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">for libxml2.so gzopen46 and found this help:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/151045</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The library /usr/lib/libz.so should contain gzopen64, but some versions don't.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The version at /usr/lib/libz.so had gzopen64, so I did</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">cd tmp/staging/i686-linux/usr/lib</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">mv libz.so libz.so.orig</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ln -s /usr/lib/libz.so .</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">I had made this change earlier and it looks like some tool had undone it.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Other notes</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here's how I get ubuntu running in a vmware window.  The instructions are:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here is a preloaded VMware image with Ubuntu 9.04</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://vmplanet.net/node/95</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">You can get the Ubuntu iso image at the link below, but you don't have to.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.ubuntu.com/</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the VMware player (I got 2.5.2) at:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.vmware.com/download/player/download.html</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Instructions are at the bottom of this page:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://help.ubuntu.com/community/VMware/Player</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here is some other useful information:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://help.ubuntu.com/community/VMware/Workstation</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># The install has an 8G virtual drive.  We need a bigger drive so use:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://sourceforge.net/projects/vmmanager</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># In ubuntu run</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install gparted</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">#######################</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The network didn't work until I switched to NAT.  Do this by selecting the</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">network icon on the bottom right of the VMware window.  Select NAT, disable</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">the network, then enable it.  It should connect.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">### Notes on creating own VM appliance</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.ffnn.nl/pages/articles/linux/vmware-player-image-creation.php</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### DNS</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># DNS doesn't alway work on its own.  Editing /etc/resvol.conf and adding</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">nameserver 137.112.4.196</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># Seems to make it work</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### Disk Mount</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># Here's how to get to the files from outside vmware</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.petri.co.il/virtual_mount_vmware_virtual_disk_without_vmware.htm</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### minicom</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install minicom</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">In minicom hit ctrl-A then O to configure.  Turn off Hardware flow control.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Set to /dev/ttyS0</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Eclipse</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.eclispe.org</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install openjdk-6.jre-headless</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### Setting Time</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># The date was a couple of days off.  It this happens try:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get insall ntpdate</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ntpd</div>
+
<p>It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux.  The problem is many have some form of Windows OS installed.  Here are step by step instructions on how to install a virtual machine running Unbuntu Linux on your Windows box.</p>
+
<p> </p>
+
<p>First we'll set up the virtual hard drive, then we'll get the virtual machine software.  The hard drive is set up using some third party software.</p>
+
<ol>
+
<li>Go to <a href="http://sourceforge.net/projects/vmmanager" target="_blank" title="http://sourceforge.net/projects/vmmanager">http://sourceforge.net/projects/vmmanager</a> and get <strong>VMmanager</strong>, </li>
+
<li>install and run it. </li>
+
<li>Select "Creat a new virtual machine"</li>
+
<li>Select Operating System:  Linux</li>
+
<li>Below Select:  Ubuntu Linux</li>
+
<li>Project name:  Ubuntu 9.10</li>
+
<li>Tab RAM:   512M  (make this no more than 1/2 your RAM)</li>
+
<li>Tab Hard Disk: Unselect "Allocate all disk space now"  We'll make the hard drive bigger in a moment.  This is working around a small bug that requires all the disk space to be present when you create the machine, even if you don't allocate it all at the beginning.</li>
+
<li>Keep Selected "Split into 2GB files"</li>
+
<li>Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged</li>
+
<li>Tab Adapters:<span style="white-space: pre;"> </span>Select USB, COM1 COM2 and Sound Adapter</li>
+
<li>Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.</li>
+
<li>Quit VMmagager</li>
+
</ol>
+
<div>Here's a demo of installing:</div>
+
<div>{swf}BeagleBoard/install_vmmanager|724|659{/swf}</div>
+
<div>Here's how to run VMmanager:</div>
+
<div>{swf}BeagleBoard/run_vmmanager|481|329{/swf}</div>
+
<ol>
+
<li>Restart <strong>VMmanager</strong></li>
+
<li>Select "Modify an existing virtual machine"</li>
+
<li>Select the machine you just saved.</li>
+
<li>Tab Hard Drive</li>
+
<li>Select "Unlock"</li>
+
<li>Enter 40960</li>
+
<li>Tab Finish</li>
+
<li>Click "Ok".  It should quickly say it is finished.</li>
+
</ol>
+
<div>Here is a demo:</div>
+
<div>{swf}BeagleBoard/run_vmmanager2|481|329{/swf}</div>
+
<p>Now we can get the VMware player and install it.</p>
+
<ol>
+
<li>Get the <strong>VMware </strong>player (I got 2.5.3) at <a href="http://www.vmware.com/download/player/download.html" target="_blank" title="http://www.vmware.com/download/player/download.html">http://www.vmware.com/download/player/download.html</a>.  I got <strong>VMware Player for Window 32-bit and 64-bit (.exe).</strong></li>
+
<li>Install it</li>
+
</ol>
+
<p><em>(</em></p>
+
<p><em>Optional: You can also get the VMware Workstation, but they are out of keys right now.  Do this:</em></p>
+
<ol>
+
<li><em>Go to http://angel.rose-hulman.edu</em></li>
+
<li><em>Login</em></li>
+
<li><em>In the middle column click on <strong><span style="color: #ff00ff;">ROSE</span>porta</strong>l.</em></li>
+
<li><em>Click on the <strong>VMware Global Education</strong> on the top right.</em></li>
+
</ol>
+
<p><em>)</em></p>
+
<p>Next get the Ubunutu image and install it in the machine.  I'm using 9.10.</p>
+
<ol> </ol> <ol>
+
<li>You can get the Ubuntu iso image at <a href="http://www.ubuntu.com/" target="_blank" title="http://www.ubuntu.com/">http://www.ubuntu.com/</a>;jhowever it's faster to get a copy locally from <a href="http://lug.rose-hulman.edu/mirror/ubuntu-releases/">http://lug.rose-hulman.edu/mirror/ubuntu-releases/</a> or <a href="ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/">ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/</a>.  If you aren't sure which <strong>iso </strong>to get, look for <strong>ubuntu-9.10-desktop-i386.iso</strong>.</li>
+
<li><a href="http://www.ubuntu.com/" target="_blank" title="http://www.ubuntu.com/"></a>Click on the vm you created above (*.vmx). The VMware Player should start.</li>
+
<li>Click on the CD icon on the bottom right.</li>
+
<li>Select Disconnect.</li>
+
<li>Click on the CD icon again and select "<strong>Connect to disk image file (iso)</strong>:"</li>
+
<li>Select the Ubuntu <strong>iso </strong>file you downloaded.</li>
+
<li>On the top left the widow select the menu <strong>VMware Player:Troubleshoot:Reset. <span style="font-weight: normal;">The VMware Player should find the iso image and start the Unbuntu install.</span></strong></li>
+
<li><strong><span style="font-weight: normal;">Select: </span><span style="font-weight: normal;">Load Ubuntua</span></strong></li>
+
</ol>
+
<div>Here is a demo:  {swf}BeagleBoard/install_ubuntu|818|664{/swf}</div>
+
<div><span style="color: #000000; font-family: Arial, helvetica, sans-serif; line-height: normal; font-size: 11px;"><br /></span></div>
+
<p>Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.</p>
+
<p>Hint 2:  It won't see your mouse at first, so use the keyboard.</p>
+
<p>Hint 3:  Ctrl-Alt will release the mouse for outside the VM.</p>
+
<ol>
+
<li>Answer questions for your location.</li>
+
<li>Select "Erase and use the entire disk"</li>
+
<li>Answer the rest of the questions.</li>
+
<li>Select install and wait a while.  My install took about half an hour.</li>
+
<li>Restart the system when asked to.  You may be asked about ejecting the CD-ROM.  I clicked <strong>No</strong>.</li>
+
</ol> <ol>
+
<li>Once Ubuntu is running you can right-click on the CD-ROM image and unmount it. </li>
+
<li>Go to the CD-ROM icon on the bottom right and disconnect from the <strong>iso </strong>image.</li>
+
<li>The Update Manager may appear.  Go ahead and have it update everything. It took 15 minutes on my system.</li>
+
</ol>
+

Latest revision as of 22:58, 27 May 2013

thumb‎ Embedded Linux Class by Mark A. Yoder


It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux. The problem is many have some form of Windows OS installed. Here are step by step instructions on how to install a virtual machine running Ubuntu Linux on your Windows box.

Installing and Configuring VMware Workstation

Downloading VMware Workstation

If you are a Rose student you have access to a free (well, already paid for) copy of VMware Workstation. Here's where to find it:

  1. Go to Angel
  2. Click on RosePortal near the bottom of the middle column.
  3. Click on the link below VMware Global Education and Research Program
  4. Select VMWare Workstation 9
  5. Download it. This will take several steps. In the end you will download a file that's some 436M.

Downloading Ubuntu

You are welcome to run whatever flavor of Linux you want, however I suggest running the current long-term support version of Ubuntu. The current LTS is 12.04. If you are at Rose you can quickly get it from the CSSE site.

  1. Got to the csse site
  2. Click 12.04.2.
  3. If you are running 32-bit hardware download ubuntu-12.04.2-desktop-i386.iso. If you are running 64-bit download ubuntu-12.04.2-desktop-amd64.iso.

Running VMware and Installing Ubuntu

  1. Start VMware Workstation
  2. Select "Create a new virtual machine"
  3. Select "Typical"
  4. Select "Installer disc image file (iso)" and browse to the Ubuntu iso file. It should detect the correct OS
  5. Fill in names
  6. Fill in VM name
  7. Use default disk size (20G) and be sure "Split virtual disk into multiple files"
  8. Click "Finish"

Ubuntu will install and in a few minutes you'll have a running version.