Difference between revisions of "Sugar on a Stick/Beta"

From Sugar Labs
Jump to navigation Jump to search
Line 21: Line 21:
 
: where '{{Code|'''?'''}}' in the final parameter represents the target bootable device node, such as {{Code|sdb1}} or {{Code|sdc1}}, etc.
 
: where '{{Code|'''?'''}}' in the final parameter represents the target bootable device node, such as {{Code|sdb1}} or {{Code|sdc1}}, etc.
  
:* ''Be certain of your USB/SD '''s'''torage '''d'''evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sdb1}}. ''Use the mount command or the partition manager to confirm it before executing the script.''
+
:* ''Be certain of your USB/SD '''s'''torage '''d'''evice node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sdb1}}. ''Use the mount command or the partition manager to confirm it before executing the script.''
 
<!-- let simplify the base instructions and leave this sort of information on a troubleshooting page.
 
<!-- let simplify the base instructions and leave this sort of information on a troubleshooting page.
 
:* <code>--format --reset-mbr</code> are optional arguments for the shell script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device.  
 
:* <code>--format --reset-mbr</code> are optional arguments for the shell script, but may be excluded to preserve the existing disc format and data.  See [[olpc:How to Damage a FLASH Storage Device]] for a discussion of why you might want to try to keep your factory format on a flash storage device.  
Line 46: Line 46:
 
*# Change the working directory to {{Code|/mnt/live/LiveOS/}} or {{Code|/LiveOS/}} (depending on a pending image configuration).<br>{{Code|cd /LiveOS/}}
 
*# Change the working directory to {{Code|/mnt/live/LiveOS/}} or {{Code|/LiveOS/}} (depending on a pending image configuration).<br>{{Code|cd /LiveOS/}}
 
*# execute the Linux command line:<br>{{Code|./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /dev/live /dev/sd'''?'''1}}
 
*# execute the Linux command line:<br>{{Code|./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /dev/live /dev/sd'''?'''1}}
:: ''Be certain of your USB/SD '''s'''torage '''d'''evice name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sdb1}}. ''Use the mount command to confirm it before executing the script.''
+
:: ''Be certain of your USB/SD '''s'''torage '''d'''evice node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example,'' {{Code|/dev/sdb1}}. ''Use the mount command to confirm it before executing the script.''
:'''Note:''' Every ''[[Sugar on a Stick/Mirabelle|Mirabelle]] or [[Sugar on a Stick/Strawberry|Strawberry]] Sugar on a Stick'' can copy its original installation to another USB stick or SD card by following the above instructions.  See [[Sugar on a Stick/Sugar Clone]] for instructions on how to customize the contents of a Sugar on a Stick device.  
+
:'''Note:''' Every ''[[Sugar on a Stick/Mirabelle|Mirabelle]] or [[Sugar on a Stick/Strawberry|Strawberry]] Sugar on a Stick'' can copy its original installation to another USB stick or SD card by following the above instructions.  See [[Sugar on a Stick/Sugar Clone]] for instructions on how to customize the contents of a Sugar on a Stick device.
 +
* or '''Launch a virtual machine''', such as VirtualBox with the soas-mirabelle.iso file
 +
*:{{Show|See the instructions at [[VirtualBox]]: |{{Transclude|VirtualBox}}}}
 
===with Apple Macintosh===
 
===with Apple Macintosh===
 
* See and adapt the instructions at [[Sugar on a Stick/Mac]].
 
* See and adapt the instructions at [[Sugar on a Stick/Mac]].

Revision as of 22:34, 10 May 2010


SoaS Release Testing

Sugar 0.88 release testing is underway with Sugar on a Stick Mirabelle with Fedora 13 (Goddard).

Download and test

SoaS installation on USB/SD devices

with Linux

(Run chmod +x livecd-iso-to-disk.sh after you download the script to make it executable.)
  • The .iso file may be burnt to a CD-ROM and booted on your PC (or mounted in a virtual machine to boot it).

Note: To install the .iso disc image, execute the shell script as the root user in one command with arguments as follows:

./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /path/to/source.iso /dev/sd?1

where '?' in the final parameter represents the target bootable device node, such as sdb1 or sdc1, etc.
  • Be certain of your USB/SD storage device node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example, /dev/sdb1. Use the mount command or the partition manager to confirm it before executing the script.

with Microsoft Windows

  • Either use Fedora Live USB Creator
    1. Download the Live USB Creator from FedoraHosted here.
    2. Insert a USB flash drive (or SD Card) with 1 GB or more of free space into your computer. (See LiveOS image and Cautions with using Live USB devices regarding flash drive size and usage.)
    3. Launch Live USB Creator.
    4. Select the 'Browse' button to 'Use existing Live CD' and find the downloaded .iso file image on your system.
    5. Adjust the Persistent Storage slider. This enables you to save changes to the system and additional Sugar Activities onto the device.
    6. Select your flash drive as the target, and click the Create Live USB button.
    7. Wait for the process to finish, then close the Live USB Creator program.
    8. Stop your flash drive using the Safely Remove Hardware dialog, and eject it.
Note: The above installation method does not allow the full optimization of data storage that comes from installing a separate, persistent home directory—see the alternate method below.
  • or Burn a CD-ROM disc with the soas-mirabelle.iso file.
    1. Use Windows 7 built-in Disk Image Burner or a free utility, like ImgBurn, to write the downloaded SoaS.iso file onto a blank CD.
    2. Insert a USB flash drive (or SD Card) with 1 GB or more of free space into your computer. (See LiveOS image and Cautions with using Live USB devices regarding flash drive size and usage.)
    3. Boot your computer with the CD-ROM disc. You probably need to press F1, F12, Esc, or a similar key as the computer starts up to adjust the boot source to the CD-ROM device.
    4. A successful boot will take you into Sugar on a Stick Mirabelle. From there, open the Terminal Activity, Activity-terminal.png, from the Home view.
    5. Click the 'Become root' icon, Activity-become-root.svg, to gain administrative permissions in the Terminal session.
    6. Change the working directory to /mnt/live/LiveOS/ or /LiveOS/ (depending on a pending image configuration).
      cd /LiveOS/
    7. execute the Linux command line:
      ./livecd-iso-to-disk --overlay-size-mb 200 --home-size-mb 200 --delete-home --unencrypted-home /dev/live /dev/sd?1
Be certain of your USB/SD storage device node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example, /dev/sdb1. Use the mount command to confirm it before executing the script.
Note: Every Mirabelle or Strawberry Sugar on a Stick can copy its original installation to another USB stick or SD card by following the above instructions. See Sugar on a Stick/Sugar Clone for instructions on how to customize the contents of a Sugar on a Stick device.
  • or Launch a virtual machine, such as VirtualBox with the soas-mirabelle.iso file
    See the instructions at VirtualBox:
    Note: The contents of this section have been transcluded from another page, VirtualBox:

With VirtualBox® one can run Sugar on Microsoft Windows, Intel-based Apple Macintosh, or GNU/Linux host computers from within a virtual machine window.

See this VirtualBox overview. VirtualBox is a large software installation with many features and operating system options. A User Manual and other documentation is available online. Those who have not used VirtualBox before, might find it more easy to understand and install than expected.

VirtualBox Downloads: https://www.virtualbox.org/wiki/Downloads

(See VirtualBox/Technical for some collected details.)

The following instructions are intended for those Learners interested in using VirtualBox to run Sugar. The process is not fully mature as the technology is evolving both in the VirtualBox and operating system software.

Online IRC support is available from http://www.virtualbox.org/wiki/IRC
Various VirtualBox experiments may be found on the discussion page.

Install VirtualBox

on Mac OS X

Follow the instructions on the VirtualBox Downloads page for Mac OS X.

on Microsoft Windows

Download from http://www.virtualbox.org/wiki/Downloads.

on GNU/Linux

Use the VirtualBox packages available in your GNU/Linux distribution. For example, on Ubuntu, it is available in Ubuntu Software Centre.

Or, use the most recent packages from VirtualBox, see Linux Downloads.

Also, see Talk:VirtualBox page for experimental installation variations.

Setup a Virtual Machine for Sugar on a Stick

Notice: Prebuilt VirtualBox 4.1 Appliances are available. Just click "import" on one of the .vmdk or .ovf files.

One may also use these instructions, VirtualBox/Preparing a disk image, to prepare one's own.
You can watch a screencast video of the process with an earlier version of SoaS on a Mac here:
  1. In VirtualBox click New
  2. Click Next
  3. Enter a name "Sugar"
  4. Operating System: choose Linux
  5. Version: choose Fedora
  6. Click Next
  7. For memory leave 256 MB
  8. Click Next
  9. Virtual Hard Disk click Existing
  10. Click the little folder to the right of the selection box
    1. A new window pops up
    2. Click Add button in the toolbar
    3. Browse to the location where you extracted the .vdi disk image
    4. Click Open
    5. Click Select
  11. Click Next
  12. Click Finish
  13. Select Sugar on the left
  14. Click Start in the toolbar
  15. After a minute or two you should see the Sugar screen asking for you name
  16. Enter your name
  17. Click Done at the bottom of the window. You might have to scroll.
  18. From now on you can start VirtualBox and start the "Sugar" virtual machine

Setup a Virtual Machine for Ubuntu Sugar

Use Ubuntu Software Centre to install the virtualbox-guest-utils package, so that your virtual machine display can be resized to fit your computer.

Issues

  • Activating the Frame might be a little difficult. The lower 2 corners are easiest and you may want to configure edge activation in the My Settings > Frame panel. With VirtualBox Guest Additions installed (see here), only the bottom edge and corners are available for Frame activation.
  • On Mac keyboards, you might wish to change the Virtual Box default key for switching the Sugar cursor to the normal one, as the default key (control right arrow on Mac keyboards) is trapped by Sugar. (Windows and Linux keyboards use Right Ctrl.) You may do this change in File/settings of the Virtual Box menu.

Resources

on Debian, Ubuntu, or derived distributions

sudo apt install virtualbox-guest-utils

with Apple Macintosh