Line 184: |
Line 184: |
| USB stick set up as live image! | | USB stick set up as live image! |
| | | |
− | == Full Fedora 11 Install of Sugar-Desktop on a Stick to USB ==
| |
− | Uses [[wikipedia:Logical_Volume_Manager_(Linux)|Logical Volume Manager (LVM)]] layer over the file structure on the USB flash drive. Other methods on this page install a LiveUSB image that uses a compressed file system ([[wikipedia:SquashFS|SquashFS]]) to hold the system and content.
| |
| | | |
− | THIS IS A WORK IN PROGRESS. Please make suggestions or improvements.
| |
− | ===='''Download of Prebuilt SUGAR-DESKTOP USB.img file'''====
| |
− |
| |
− | * DOWNLOAD Link:[[http://people.sugarlabs.org/Tgillard/]]
| |
− | '''Requires:'''
| |
− | * GNU/Linux system with ability to decompress archive
| |
− | * 4 GB or larger USB Stick
| |
− | * Familiarity with dd commands in terminal (see below)
| |
− |
| |
− | ====Make your OWN Custom SUGAR-DESKTOP USB Boot Stick====
| |
− | * Uses Fedora 11 Net Install CD,[http://mirrors.cat.pdx.edu/fedora/linux/releases/11/Fedora/i386/iso/] so best with a fast internet connection.
| |
− | * USB 2.0 recommended or install would take a excessive time using USB 1.0
| |
− | * '''Requires 4-GB USB drive.''' (Tested with Cruzer Micro USB Stick, an 8-GB Toshiba USB drive works faster.)
| |
− | # Boot from CD
| |
− | # Enter language, time, location, root user password
| |
− | # Replace existing Linux system
| |
− | # Review and modify partitioning layout
| |
− | # edit LVM VolGroup
| |
− | # delete LV_swap (needed to fit on 4GB stick and for reduced writes to USB)
| |
− | # edit LV_root (Edit LVM and increase to max size on (/dev/sda*)
| |
− | # size:(change to max shown)
| |
− | # yes for no swap file
| |
− | # Write changes to disk '''*NOTE: Be sure this is the USB drive, or you will ruin your hard disk installation on the host PC.'''
| |
− | # install boot loader Fedora/dev/mapper/VolGroup-lv_root
| |
− | # enable network interface (DHCP, IPv4)
| |
− | # retrieve install informtion for Fedora 11-i386
| |
− | # Select customize now
| |
− | ## sugar-desktop ONLY / deselect gnome-desktop
| |
− | ## deselect other unwanted applications in categories (Games, etc)
| |
− | #: Installer will reformat drive; install bootloader; transfer 957 packages (about 2 hours)
| |
− | #reboot
| |
− | # Configuration setup (Graphical), add user and password on first boot
| |
− | # Log in User
| |
− | # Select Sugar on selection bar
| |
− | *
| |
− | *''' You can also do a hard disk install of SUGAR this way ''' (not tested yet)
| |
− |
| |
− | *''' This procedure can be used with a Windows PC if it will boot from CD'''
| |
− |
| |
− | ====8 GB Gnome/Sugar-Desktop USB====
| |
− | *''' install gnome or KDE desktop with this technique and then, use add/remove programs to install sugar from other desktops'''
| |
− |
| |
− | *''' you get a 8GB USB that boots either gnome or sugar (8 GB Toshiba USB)'''
| |
− | This Works well....can switch back between desktops by logging off and back on.
| |
− |
| |
− | ===='''AUTO Login to SUGAR'''====
| |
− |
| |
− | TO bypass gdm Login and start up Stick in SUGAR DESKTOP:
| |
− | *start up and log in to sugar
| |
− | *Open Terminal Application
| |
− | su -
| |
− | password=sugarroot
| |
− | yum install gedit
| |
− | (after gedit is installed:)
| |
− | gedit /etc/gdm/gdm.schemas
| |
− | *change: (to true and add sugar)
| |
− | --snip--
| |
− | <key>daemon/AutomaticLoginEnable</key>
| |
− | <signature>b</signature>
| |
− | <default>true</default>
| |
− | </schema>
| |
− | <schema>
| |
− | <key>daemon/AutomaticLogin</key>
| |
− | <signature>s</signature>
| |
− | <default>sugar</default>
| |
− | </schema>
| |
− | --snip--
| |
− | *Reboot
| |
− |
| |
− | ===='''Duplication of USB Sticks'''====
| |
− | '''Caution:''' ''This is a work in progress''
| |
− |
| |
− | ====Preparation of target device====
| |
− | '''Caution if you purchase Sandisk cruzer micro 4 GB USB you have to use Windows machine to to start the U3 program and delete the hidden U3 directory'''
| |
− |
| |
− | '''This will make the USB a full 4GB otherwise it will be too small to use dd to copy .img file'''
| |
− | * U3 partition will not be removed by formating with Partition Manager
| |
− |
| |
− | '''CAUTION VERY DANGEROUS IF NOT ENTERED CORRECTLY:'''
| |
− |
| |
− | * Enter Terminal
| |
− | su -
| |
− | <password>
| |
− | (Need to be ROOT or get permission denied)
| |
− | * Target USB device MUST be larger for this to work (not all USB Sticks are exactly the same size)
| |
− | ** be certain of the device identifier, /dev/sd(x), for your USB Stick. (I use the partition editor in Ubuntu 9.04 to identify the USB device.)
| |
− | * Note that .img file on Desktop can be compressed for distribution.
| |
− |
| |
− | '''Example of sucessful clone session:''''
| |
− | =====Make Image from USB:=====
| |
− | * 8-GB Toshiba USB
| |
− | root@xxxxx:/home/robert/Desktop# dd if=/dev/sda* of=USB8.img
| |
− | 15687680+0 records in
| |
− | 15687680+0 records out
| |
− | 8032092160 bytes (8.0 GB) copied, 421.146 s, 19.1 MB/s
| |
− |
| |
− | =====use image to write USB Clone:=====
| |
− | * 4-GB SanDisk Cruzer with U3 partition removed
| |
− | root@xxxx:/home/robert/Desktop# dd if=USB4C2.img of=/dev/sdg bs=4k
| |
− | 986623+1 records in
| |
− | 986623+1 records out
| |
− | 4041211392 bytes (4.0 GB) copied, 595.509 s, 6.8 MB/s
| |
| | | |
| == Make a Sugar-Desktop on a Stick VMware appliance == | | == Make a Sugar-Desktop on a Stick VMware appliance == |