Sugar on a Stick/Installation

From Sugar Labs
Jump to: navigation, search

Contents

Microsoft WindowsGNU/LinuxOLPC XOVirtualBoxApple Mac OS XBackup and RestoreDownload-circle.png

SoaS installation on USB/SD devices

with Microsoft Windows

Windows.gif There are three ways to do this:

  • 1. Use Fedora Live USB Creator
    (This installation method is not recommended for long-time usage of Sugar on a Stick. See why.)
    1. Download the Live USB Creator from Fedora.
    2. Insert a USB flash drive (or SD Card) with 2 GB or more of free space into your computer.
    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 with the Safely Remove Hardware and Eject Media notification area icon dialog, and eject it.
See a video of an earlier version of this process here.

  • 2. Burn a CD-ROM disc, boot from it, then run the script, livecd-iso-to-disk
    1. Use Windows 7 built-in Disk Image Burner or a free utility, like ImgBurn, to write the downloaded Sugar on a Stick .iso file onto a blank CD.
    2. Insert a USB flash drive (or SD Card) with 2 GB or more of free space into your computer.
    3. Boot your computer with the CD-ROM disc. You probably need to press F1, F10, F12, Esc, or a similar key as the computer starts up in order to set the boot source for your computer to the CD-ROM device.
    4. A successful boot will take you into Sugar on a Stick. You can 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 /LiveOS/
      cd /LiveOS/
    7. Be certain of your USB/SD scsi drive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.), yielding, for example, /dev/sdb1.
      Use the df -Th command to confirm your devices before executing the following script.
    8. execute the Linux command line:
      ./livecd-iso-to-disk --reset-mbr --overlay-size-mb 300 --home-size-mb 175 --delete-home --unencrypted-home /dev/sr0 /dev/sd?1
    9. Shutdown the physical machine.
    10. Reboot from the newly-installed Live USB with Sugar on a Stick.
  • 3. Launch a virtual machine, then run the script, livecd-iso-to-disk
    1. Download and install VirtualBox (for example; you could do something similar with another vm).
    2. Create a new virtual machine.
    3. Choose Linux for the Operating System and Version Fedora (64 bit) if available, or Fedora, on systems lacking 64-bit functionality.
    4. Attach the Sugar on a Stick .iso file as a CD in the Storage Section
    5. Insert a USB storage device into your physical computer and enable the VirtualBox USB controller. Then add a filter to recognize the inserted device in the USB section of the VirtualBox machine setup.
    6. Start the new virtual machine.
    7. Verify that the USB device is recognized in the running virtual machine.
      • Your device appears in the hover box for the USB stick icon in the virtual machine bottom frame.
      • df -Th reveals your device mounted mounted on a device node, for example, /dev/sda1, on a filesystem volume mount point, such as /media/<USBdeviceManufacturer>
    1. Continue from step #4 in the Burn a CD-ROM disc section above.
    2. Shutdown the virtual machine.
    3. Reboot your physical computer from the newly-installed Live USB with Sugar on a Stick.

with Apple Macintosh

Apple.gif

Fedora 15 and Fedora 16

The following work on some Intel MacBooks
Persistent USB for Mac:Community/Distributions/Fedora-SoaS#MacBook Persistent SoaS v5 and SoaS v6 EFI Boot USB
dd writable USB.img Community/Distributions/Fedora-SoaS#dd writable 1 GB EFI Boot .28MAC.29 USB Soas-v5-Coconut-USB .img

with GNU/Linux

Gnulinux.png

  1. Use this script file livecd-iso-to-disk to create a bootable image.
    (Run chmod +x tools_livecd-iso-to-disk.sh after you download the script to make it executable.)
  2. Execute, as the root user, in one command with arguments, the following:
    ./tools_livecd-iso-to-disk.sh --reset-mbr --overlay-size-mb 300 --home-size-mb 175 --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., and
    make sure to replace /path/to/source.iso with the path to the downloaded sugar-on-a-stick iso file.
    The operating system will occupy ~520 MB, and the overlay and home size arguments, 300 and 175, were selected to fit in a 1 GB device, but may be adjusted according to your device capacity.
    Be certain of your USB/SD scsi drive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.).
    Use the df -Th command to confirm your devices before executing the script.
(See Sugar on a Stick/Linux for more details.)
Note: The graphical Liveusb-creator is an alternative installation method (see the first Windows method), but it does not create the separate home.img filesystem, and so, the write-once persistent storage on the disk is more quickly consumed (see LiveOS image). If the USB device does not boot after running Liveusb-creator, the command liveusb-creator --reset-mbr may help.

on an OLPC XO

OLPCXO.png

Very slow but works

Hard disk and alternate USB stick installations

with a Netinstall CD

  • Fedora with the Sugar graphical environment
  • Installs to a hard disk or to a 4 GB USB stick (not a LiveOS image like SoaS, but all of Sugar).
This requires a high-speed Internet connection for software component downloading during installation.

with the liveinst command

..from a booted Fedora 16 SoaS Live CD/USB
  • Installs to a hard disk or a 4 GB USB stick. You start with a SoaS LiveOS image, and then load an uncompressed version onto the hard disk or USB stick.
The Fedora-16-Live-SoaS.iso file is a 443 MB download.

SoaS on VirtualBox

Chat room help

  • Sugar chat room in Español (with translations to English)
    Pida ayuda a través de este canal #sugar-es Por favor, sea cortés y hacer sus preguntas.
    Los voluntarios no pueden estar en línea todo el tiempo.
    Sea paciente y permanecer conectado durante varios minutos para ver su respuest.
    (Utilizar la función de meeting para la traducción de estos artículos.)
  • Read the Floss Manuals first

Backup and Restore

Some backup and restore options for Sugar on a Stick include the following:

  • Backup and Restore - these are Activities that can be used on any Sugar installation to backup or restore the Sugar Journal.
These activities are also on ASLOxo-5.iso(DVD)
Look at the Contents_of_ASLOxo-5-iso

Subpage index

Sugar on a Stick/Installation/OLPCSugar on a Stick/Installation/OLPC/lang-esSugar on a Stick/Installation/OLPC/lang-fr
Sugar on a Stick/Installation/Variations
Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations