Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
courses:ct4y:resources:xoresources [07/04/2012 01:28]
brit [Emulation]
courses:ct4y:resources:xoresources [08/09/2012 12:16] (current)
brit [Making a Game]
Line 85: Line 85:
 === Emulating the XO === === Emulating the XO ===
  
-  * The XO Laptop Wiki recommends using the QEMU emulator for emulating the XO+  * The XO Laptop Wiki no longer ​recommends using the QEMU emulator for emulating the XO. For new information on emulating the XO look here:
     * [[http://​wiki.laptop.org/​go/​Emulating_the_XO | Emulating the XO]]     * [[http://​wiki.laptop.org/​go/​Emulating_the_XO | Emulating the XO]]
   * [[http://​wiki.sugarlabs.org/​go/​Sugar_on_a_Stick|Sugar on a Stick]]   * [[http://​wiki.sugarlabs.org/​go/​Sugar_on_a_Stick|Sugar on a Stick]]
Line 102: Line 102:
  
 With [[http://​wiki.sugarlabs.org/​go/​Sugar_on_a_Stick|Sugar on a Stick (SOAS)]], you can boot directly to the Sugar OS on any machine without the need virtualizing or emulating Sugar. Students can use the journal on the stick to save their work. With [[http://​wiki.sugarlabs.org/​go/​Sugar_on_a_Stick|Sugar on a Stick (SOAS)]], you can boot directly to the Sugar OS on any machine without the need virtualizing or emulating Sugar. Students can use the journal on the stick to save their work.
 +
 +==Windows==
  
 In order to use sugar on a stick: In order to use sugar on a stick:
Line 112: Line 114:
     - You should now boot to your flash drive. It is possible that you will have to press and extra key in order to successfully boot sugar on a stick, so pay attention     - You should now boot to your flash drive. It is possible that you will have to press and extra key in order to successfully boot sugar on a stick, so pay attention
   - For more information on booting to a flash drive look [[http://​pcsupport.about.com/​od/​tipstricks/​ht/​bootusbflash.htm|here]]   - For more information on booting to a flash drive look [[http://​pcsupport.about.com/​od/​tipstricks/​ht/​bootusbflash.htm|here]]
 +
 +==Mac==
 +Go [[http://​wiki.sugarlabs.org/​go/​Downloads#​Apple_Mac_OS_X|here]] for information on downloading sugar on a stick. The instructions are still in beta, and may not be effective.
 +
 +===VirtualBox===
 +VirtualBox is useful for emulating a variety of operating systems including sugar. To download VirtualBox go [[https://​www.virtualbox.org/​wiki/​Downloads|here]]. Once you have installed VirtualBox, you can press the "​New"​ button and follow the instructions to create a virtual machine. Make sure that you select the correct operating system and version for Fedora. If your virtual machine is running slowly, you may want to allocate more RAM for it.
 +
 +You will also need a virtual image of the OS you wish to emulate. You can get a .iso file of Fedora [[http://​fedoraproject.org/​get-fedora|here]]. The first time you run your virtual machine you will be prompted to provide a bootable drive. Use the disk image you just downloaded. If you run into errors attempting to run your virtual machine, your file may have been corrupted during the download. In this instance, you will have to re-download Fedora. Then, in VirtualBox, click on the yellow "​Settings"​ button on the top of the screen. On the left side of that screen click on storage, and in the center panel select the cd image under IDE controller. On the right there should be a section labeled attributes. Under that it will say CD/DVD drive. Click on the little disk icon next to the drop down menu to select a new disk image.
 + 
 +Once you have a running emulation of Fedora, go to applications and then to add/remove software. Then search for sugar and select "The emulator for the Sugar Learning Environment"​ and any activities you want installed. You should then be able to run a sugar emulator.
 +
 +===SOAS with VirtualBox===
 +It is also possible to use VirtualBox to run the Sugar on a Stick file. Go into settings for your Fedora virtual machine and change the disk image to the sugar on stick iso file. You should then be able to boot the Virtual Machine normally, and it will go directly to Sugar.
 ====Linux==== ====Linux====
 Familiarity with the Linux family of operating systems can be useful when dealing with the XO. If you haven'​t done so before, you might consider installing Linux on a machine you have access to. Ubuntu is a distribution that is particularly suited for beginners, and Fedora (the basis for the XO operating system) is good for intermediate users. The Gentoo installation process is considerably more involved, but upon completion you will have a better understanding and appreciation for Linux. ​ For Windows users, the Ubuntu CD provides Wubi, a Windows program that allows Ubuntu to be installed without re-partitioning your computer. ​ Sun Microsystem'​s VirtualBox provides Windows and Mac OS X users the ability to install any flavor of Linux as a virtual machine inside their existing OS, free of charge.  ​ Familiarity with the Linux family of operating systems can be useful when dealing with the XO. If you haven'​t done so before, you might consider installing Linux on a machine you have access to. Ubuntu is a distribution that is particularly suited for beginners, and Fedora (the basis for the XO operating system) is good for intermediate users. The Gentoo installation process is considerably more involved, but upon completion you will have a better understanding and appreciation for Linux. ​ For Windows users, the Ubuntu CD provides Wubi, a Windows program that allows Ubuntu to be installed without re-partitioning your computer. ​ Sun Microsystem'​s VirtualBox provides Windows and Mac OS X users the ability to install any flavor of Linux as a virtual machine inside their existing OS, free of charge.  ​
Line 157: Line 172:
     * ls (this will make the name of your flash drive appear)     * ls (this will make the name of your flash drive appear)
     * cd NameOfYourFlashDrive     * cd NameOfYourFlashDrive
-    * cd NameOfActivity.activity ​(You may have to move down a couple of levels to get to this point using the ls and cd commands)+    * cd NameOfActivity.activity 
 +      * You may have to move down a couple of levels to get to this point using the ls and cd commands
     * python setup.py dist_xo     * python setup.py dist_xo
   * Go to the journal and find the activity there. If you click on it, it should install   * Go to the journal and find the activity there. If you click on it, it should install
 +
 +If you have access to the .xo file then you can move into the flash-drive and then use the "​sugar-install-bundle"​ command on the .xo file to install the activity on the XO. This method shows you each step of the installation process and is useful for debugging the bundling issues.
  
 === Bundling activities for the XO === === Bundling activities for the XO ===
Line 169: Line 187:
 === Mesh === === Mesh ===
 Mesh Networks are no longer supported in XO 1.5 [[http://​wiki.laptop.org/​go/​Mesh_Network_FAQ|source]] Mesh Networks are no longer supported in XO 1.5 [[http://​wiki.laptop.org/​go/​Mesh_Network_FAQ|source]]
- 
- 
 =====Python===== =====Python=====
  
Line 234: Line 250:
 **Recursion** **Recursion**
   * Python is not optimized for tail recursion   * Python is not optimized for tail recursion
-  * Recursion uses a lot of memory, not good on an OLPC+  * Recursion uses a lot of memory, not good on an XO laptop
   * It is recommended to use loops instead of recursion when possible   * It is recommended to use loops instead of recursion when possible
  
Line 259: Line 275:
  
 ===== Pygame ===== ===== Pygame =====
-Pygame provides a relatively simple API for programming games in python, and is incredibly ​usefull ​for animations. ​ It does not however, provide GUI elements such as buttons/​text fields/​menus/​etc. ​ These must be created by hand when using pygame.+Pygame provides a relatively simple API for programming games in python, and is incredibly ​useful ​for animations. ​ It does not however, provide GUI elements such as buttons/​text fields/​menus/​etc. ​ These must be created by hand when using pygame.
  
 **Pygame Tips** **Pygame Tips**
Line 274: Line 290:
 [[http://​www.eecis.udel.edu/​~rdeaton/​spyral|Spyral Documentation]] [[http://​www.eecis.udel.edu/​~rdeaton/​spyral|Spyral Documentation]]
  
-To add: +=====Making a Game===== 
- +These are two useful skeletons for building a game. These skeletons are compatible with various versions ​of sugar. The pygtk example is useful for games that don't require much animation. Otherwise, the pygame example ​is the better starting point.
-Description ​of what Spyral ​is+
  
 +{{:​courses:​ct4y:​resources:​skeletons.rar|}}
 =====Virtual Machine===== =====Virtual Machine=====
 We have a virtual machine set up for our server needs. The information for it is located on [[virtualmachine|this]] page. We have a virtual machine set up for our server needs. The information for it is located on [[virtualmachine|this]] page.
courses/ct4y/resources/xoresources.1341379686.txt.gz · Last modified: 07/04/2012 01:28 by brit
  • 213 Smith Hall   •   Computer & Information Sciences   •   Newark, DE 19716  •   USA
    Phone: 302-831-6339  •   Fax: 302-831-8458