User:Kevgor/Reflash to Shipped defaults using KG USB stick: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
Plug the charger into the wall, and the other end into the XO. Ensure that XO is fully charged by observing that the green battery light is on. If an XO is completely discharged, this can take a few hours for the yellow light to turn green.
Plug the charger into the wall, and the other end into the XO. Ensure that XO is fully charged by observing that the green battery light is on. If an XO is completely discharged, this can take a few hours for the yellow light to turn green.


Put the Refresh USB stick in the right hand vertical XO port.
Put the Refresh USB stick in the right hand vertical XO USB port.


Press the power button, and quickly hold down all 4 game keys on the right side beside the display.
Press the power button, and quickly hold down all 4 game keys on the right side beside the display.

Revision as of 15:15, 21 September 2011

To return an XO to the delivered installed defaults:

This refresh and install script process takes around 1 hour from start to finish on an XO1 and slightly longer on an XO 1.5 due to more custom software being installed.

The first step involves replacing the entire operating system, and the default activities, with a copy which has previously been saved to a USB Refresh stick. Any work saved on the XO internal storage since delivery, or any new programs or activities installed since delivery on internal storage will be erased. All journal entries from the main storage will be erased. At the end of this install, the machine internal memory will be exactly as it was when it was delivered to you.

Plug the charger into the wall, and the other end into the XO. Ensure that XO is fully charged by observing that the green battery light is on. If an XO is completely discharged, this can take a few hours for the yellow light to turn green.

Put the Refresh USB stick in the right hand vertical XO USB port.

Press the power button, and quickly hold down all 4 game keys on the right side beside the display.

Release the game keys when prompted. If the prompt does not appear, and the machine just continues to boot, once the system comes up and is running, power it off elegantly (using the shutdown command). Start again: perhaps being faster on hitting, or more accurate at simultaneously holding down, all 4 game keys.

The screen will now show a grid of black rectangles, followed by a partial grid of yellow rectangles, signifying memory erasure. On an XO 1, It will then slowly fill the yellow rectangles with green and blue rectangles as the operating system is loaded from the USB stick into memory. You will also see the red light from the USB stick flashing during this process, indicating activity. On an XO 1.5, there will be alternating green fill and white rectangles, as it skips writing when there is "blank" infromation.

When it has finished installing, the Linux Operating system and two operating environments, Sugar and Gnome are now available on the machine. On first boot, the XO will begin to start the Sugar Operating environment. You will be asked to Name the machine. Please use a unique name.

After naming the machine, you will be prompted to change the colour of the machine icon. You may elect to just hit return here, as having accurately matching the coloured icons is not really required.

Once this phase is complete, you will be at the Sugar Activity Home View screen. After the Linux Operating System and base activities have been loaded, some other programs and activities still have to be manually loaded, and this is done via running a script in the Terminal activity.

At the top right of the screen there are two small icons. The square with 4 lines across it on the right corresponds to the ‘List View’ of Sugar Activities. Place the pointer on that square and hit the left-click button. You will now have changed from the favourite Home View to the List View of activities. You need to scroll down to the Terminal activity, and click the icon beside the ‘star’ icon. This will now start the Terminal activity.

It is very important to type the following at the prompts *exactly* as they appear below. Failure to do so will cause the machine refresh to be incomplete. In the worst case, you may have to return to the beginning of the document and begin the entire process anew.   Besides the regular activity menus and status bars at the top of the screen, you should see a series of various languages saying “Hello”, and then a command prompt beginning with “[olpc” The cursor is a black rectangle beside the prompt Enter:

su -

(There is a space between the “su” and the “-“)

You should see pretty much the same prompt, except it will now start with “[bash” and end with “#”

Enter:

bash /media/PATRIOT/installrpms.sh

Hit return, and again, the USB stick will flash red, signifying activity. For those of you familiar with tab-complete command entry, that works here too. You will see various status messages appear; for example:

“New Activities”

And then ending with

“Please reboot”

At the prompt, enter:

reboot

The system will restart and take you back to the Favorites view of Sugar. You will most likely wish to look at the ‘List View’ of the activities again and click the star beside any which you would also like to see on the home view: such as IRC or Geoquiz. You will then need to re-attach to a network, as your previous network settings all have been removed by this refresh. Please be reminded that the Network Neighbourhood View key is the 3rd key from the left on the top row of the keyboard, looking like a circle with eight dots in it. To return to the home view, one can then use the Home key, which is also on the top row, and like the screen icon, is a circle with a single dot in it. Perhaps check the browse activity at this time to ensure internet connectivity. At this point, one can then switch to the Gnome desktop through the settings in Sugar, attach to the desired Network on that side, then restarts Sugar. This ensures that future boots will automatically attach to the last connected network.

This completes a full refresh of the XO.