Sugar on a Stick/Installation: Difference between revisions

with GNU/Linux: unecessary information, simplified a phrase, and will copy the link to LiveOS to the end of the page
Chimosky (talk | contribs)
Remove line as it was unnecessary
 
(32 intermediate revisions by 5 users not shown)
Line 2: Line 2:
[[Category:HowTo]]
[[Category:HowTo]]
[[Category:Sugar on a Stick]]
[[Category:Sugar on a Stick]]
[[Category:Live USB]]
</noinclude>__TOC__
</noinclude>__TOC__
Sugar on a Stick is best installed by following the [https://docs.fedoraproject.org/en-US/fedora/rawhide/install-guide/ Fedora Installation Guide].
The rest of this Wiki page is outdated, or superceded by the Fedora Installation Guide.
{{outdated}}
----
{|http://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Installation&action=submit#SoaS_on_VirtualBox
{|http://wiki.sugarlabs.org/index.php?title=Sugar_on_a_Stick/Installation&action=submit#SoaS_on_VirtualBox
|-
|-
|<imagemap>
File:Download-circle.png|120px
rect 58 0 109 55 [[#with_Microsoft_Windows|Microsoft Windows]]
rect 146 28 195 85 [[#with_GNU.2FLinux|GNU/Linux]]
rect 146 128 200 185 [[#on_an_OLPC_XO|OLPC XO]]
rect 58 154 112 200 [[#SoaS_on_VirtualBox|VirtualBox]]
rect 0 37 50 130 [[#with_Apple_Macintosh|Apple Mac OS X]]
rect 86 32 125 130 [[#Backup and Restore|Backup and Restore]]
desc none
</imagemap>
|
|
* Following [[Downloads|Download]],
* [[#with_Microsoft_Windows|Microsoft Windows]]
* ''Sugar on a Stick'' must be [[Sugar on a Stick/Installation|Installed]] (instructions here),
* [[#with_GNU.2FLinux|GNU/Linux]]
* then [[Sugar on a Stick/Boot|Booted]].
* [[#on_an_OLPC_XO|OLPC XO]]
* [[#SoaS_on_VirtualBox|VirtualBox]]
* [[#with_Apple_Macintosh|Apple Mac OS X]]
* [[#Backup and Restore|Backup and Restore]]
|
* Following [[Sugar on a Stick/Downloads|download]], ''Sugar on a Stick'' may be [[Sugar_on_a_Stick/Installation|Installed]] (instructions here), then [[Sugar on a Stick/Boot|booted]].
* Then you are ready to [[Getting Started/Explore|start exploring Sugar]].
* Then you are ready to [[Getting Started/Explore|start exploring Sugar]].
|}
|}
==SoaS installation on USB/SD devices==
==SoaS installation on USB/SD devices==
{{:Sugar on a Stick/Windows}}
{{:Sugar on a Stick/Windows}}


===with Apple Macintosh===
===with Apple Macintosh===
[[File:Apple.gif|link=Sugar on a Stick/Mac]]
[[File:Apple.gif|link=Macintosh]]
* See and adapt the instructions at [[Sugar on a Stick/Mac]].
* See and adapt the instructions at [[Macintosh]].
===='''Fedora 15 and Fedora 16'''====
===='''Fedora 15 and Fedora 16'''====
* Sugar on a Stick CD boots in a Mac; [[Community/Distributions/Fedora-SoaS#MacBook Pro i7 CD Boot]]
* Sugar on a Stick CD boots in a Mac - [[Testing/Reports/Sugar on a Stick#MacBook Pro i7 CD Boot]]
: The following work on some Intel MacBooks
: 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]]
:: Persistent USB for Mac - [[Testing/Reports/Sugar on a Stick#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]]
::dd writable USB.img - [[Testing/Reports/Sugar_on_a_Stick#dd_writable_1_GB_EFI_Boot_.28MAC.29_USB_Soas-v6-Pineapple_x86-USB_.img]]
 


===with GNU/Linux===
===with GNU/Linux===
<span class="linkgroup">[[File:Gnulinux.png|link=Sugar on a Stick/Linux]]</span>
<span class="linkgroup">[[File:Gnulinux.png|link=Sugar on a Stick/Linux]]</span>
<ol start="0">
{{:Sugar on a Stick/Linux/Installation}}
<li>Use this script file http://bit.ly/livecd-iso-to-disk to create a bootable image.<br>(Run {{Code|chmod +x tools_livecd-iso-to-disk.sh}} after you download the script to make it executable.)</li>
:: (See [[Sugar on a Stick/Linux]] for more details.)
<li>Execute, as the root user, in <u>one</u> command with arguments, the following:<br>
:'''Note''': The graphical Liveusb-creator is an alternative installation method (see the first Windows [[#with Microsoft 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 {{Code|liveusb-creator --reset-mbr}} may help.
{{Code|./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}}<br>
: where '{{Code|'''?'''}}' in the final parameter represents the target bootable device node, such as {{Code|sdb1}} or {{Code|sdc1}}, etc., and<br>
: make sure to replace {{Code|/path/to/source.iso}} with the path to the downloaded sugar-on-a-stick iso file.<br>
: The operating system will occupy ~520 MB, and the overlay and home size parameters, 300 and 175, where were selected to fit in a 1GB device, but may be adjusted according to your device capacity.
''Be certain of your USB/SD '''s'''csi '''d'''rive node name (such as sda, sdb, etc.) and partition (such as 1, 2, etc.).<br>
: Use the {{Code|df -Th}} command to confirm your devices before executing the script.
</li></ol>
{{Show|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You should see something like the following:
|<pre>
[root@MyComputer ~]# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1    ext4    18G  6.6G  11G  38% /
tmpfs        tmpfs    1.6G  740K  1.6G  1% /dev/shm
/dev/sdc1    vfat    15G  697M  15G  5% /media/SANDY
/dev/sdb1    vfat    15G  2.0G  13G  14% /media/TOSHIBA
</pre>
:: where the mount point and filesystem sizes should help you identify what you want.


<pre>
$ sudo ./livecd-iso-to-disk.sh --reset-mbr --overlay-size-mb 300 --home-size-mb 200 --delete-home --unencrypted-home /mnt/VMs/Fedora-13-x86_64-Live-SoaS.iso /dev/sdb1
Verifying image...
/mnt/VMs/Fedora-13-x86_64-Live-SoaS.iso:  7bb43cb6237802347e06d636b5974796
Fragment sums: 5cb46db2dd7545c7154d99616eaa942ca515fb37188c34cf82564a498b68
Fragment count: 20
Press [Esc] to abort check.
Checking: 100.0%


The media check is complete, the result is: PASS.


It is OK to use this media.
=== Sugar on a Stick on Raspberry Pi 2/3 ===
Copying live image to USB stick
{{:Sugar on a Stick/Raspberry Pi}}
Updating boot config file
Initializing persistent overlay file
300+0 records in
300+0 records out
314572800 bytes (315 MB) copied, 35.3334 s, 8.9 MB/s
Initializing persistent /home
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 24.2014 s, 8.7 MB/s
Formatting unencrypted /home
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
51200 inodes, 204800 blocks
10240 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
25 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729


Writing inode tables: done                           
=== on an OLPC XO ===
Creating journal (4096 blocks): done
[[File:OLPCXO.png|link=Testing/Reports/Sugar on a Stick#F16 SoaS Pineapple USB boot image for XO-1|50px]]
Writing superblocks and filesystem accounting information: done
* See [[Testing/Reports/Sugar on a Stick#F16 SoaS Pineapple USB boot image for XO-1|F16 SoaS Pineapple USB boot image for XO-1]]
: Very slow but works


This filesystem will be automatically checked every 33 mounts or
==Hard disk and alternate USB stick installations==
180 days, whichever comes first.  Use tune2fs -c or -i to override.
====[[Tutorials/Installation/Install with netinstall|with a Netinstall CD]]====
tune2fs 1.41.12 (17-May-2010)
* Fedora with the Sugar graphical environment
Setting maximal mount count to -1
* Installs to a hard disk or to a 4 GB USB stick (not a LiveOS image like SoaS, but all of Sugar).
Setting interval between checks to 0 seconds
: {{Highlight|bgcolor=#f9f6b7|''This requires a high-speed Internet connection for software component downloading during installation.''}}
Installing boot loader
====[[Tutorials/Installation/Install with liveinst|with the {{Code|liveinst}} command]]====
USB stick set up as live image!
: '''..from a booted Fedora 16 SoaS Live CD/USB'''
</pre>}}
* 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.
(See [[Sugar on a Stick/Linux]] for more details.)
: The Fedora-16-Live-SoaS.iso file is a 443 MB download.
:'''Note''': The graphical Liveusb-creator method may be used (see the first Windows [[#with Microsoft Windows |method]]).
::If the USB device does not boot, try the command {{Code|liveusb-creator --reset-mbr}}


=== on an OLPC XO ===
[[File:OLPCXO.png|link=Community/Distributions/Fedora-SoaS#F16 SoaS Pineapple USB boot image for XO-1|50px]]
* See [[Community/Distributions/Fedora-SoaS#F16 SoaS Pineapple USB boot image for XO-1|F16 SoaS Pineapple USB boot image for XO-1]]
: Very slow but works


==SoaS on VirtualBox==
==SoaS on VirtualBox==
<noinclude>{{Transclude|VirtualBox|note=&nbsp;&nbsp;&nbsp;See instructions from the [[VirtualBox]] page (transcluded here): |collapsed=collapsed}}</noinclude><includeonly>
<noinclude>{{Transclude|VirtualBox|note=&nbsp;&nbsp;&nbsp;See instructions from the [[VirtualBox]] page (transcluded here): |collapsed=collapsed}}</noinclude><includeonly>
* See [[VirtualBox]]</includeonly>
* See [[VirtualBox]]</includeonly>
===='''Chat room help'''====
 
 
= Chat room help =
*'''[http://webchat.freenode.net/?randomnick=1&channels=sugar&prompt=1 Sugar chat room in English]'''
*'''[http://webchat.freenode.net/?randomnick=1&channels=sugar&prompt=1 Sugar chat room in English]'''


Line 126: Line 76:
*: Pida ayuda a través de este canal #sugar-es Por favor, sea cortés y hacer sus preguntas.<br>Los voluntarios no pueden estar en línea todo el tiempo.<br>Sea paciente y permanecer conectado durante varios minutos para ver su respuest.
*: Pida ayuda a través de este canal #sugar-es Por favor, sea cortés y hacer sus preguntas.<br>Los voluntarios no pueden estar en línea todo el tiempo.<br>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.)
*::(Utilizar la función de meeting para la traducción de estos artículos.)
* '''Read the [[Sugar_Creation_Kit#Floss_Manuals|Floss Manuals]] first'''
 


= Backup and Restore =
= Backup and Restore =
Some backup and restore options for Sugar on a Stick include the following:
Some backup and restore options for Sugar on a Stick include the following:
* [http://activities.sugarlabs.org/en-US/sugar/addon/4326 Backup] and [http://activities.sugarlabs.org/en-US/sugar/addon/4327 Restore] - these are Activities that can be used on any Sugar installation to backup or restore the Sugar Journal.
* [http://activities.sugarlabs.org/en-US/sugar/addon/4326 Backup] and [http://activities.sugarlabs.org/en-US/sugar/addon/4327 Restore] - these are Activities that can be used on any Sugar installation to backup or restore the Sugar Journal.
: These activities are also on [http://download.sugarlabs.org/images/ASLOxo-5.iso ASLOxo-5.iso(DVD)]
:[http://download.sugarlabs.org/images/Contents_of_ASLOxo-5-iso.txt Look at the Contents_of_ASLOxo-5-iso]


* [[olpc:School Server]] - requires a server installation.
* [[olpc:School Server]] - requires a server installation.
* [[Sugar on a Stick/deja-dup]] - a configurable backup tool.
* [[Sugar on a Stick/Sugar Clone]] - full image (operating system and home folder) cloning.
* [[Sugar on a Stick/Sugar Clone]] - full image (operating system and home folder) cloning.


==Subpage index==
 
=Subpage index=


{{Special:PrefixIndex/Sugar on a Stick/Installation/}}
{{Special:PrefixIndex/Sugar on a Stick/Installation/}}