Template:Software Side Effects Fixes: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Deleting /.olpc-configured necessary to reset hostname in 12.1.0)
(as tested on 13.2.6, dconf has a binary copy of gsettings, the gconf is a shadow for prior versions)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
Stop the display manager. The remainder of these fixes must be typed into a virtual console, or a serial port.
sudo service olpc-dm stop
Delete the ".olpc-configured" files which tell olpc-configure it does not have to run again. This allows some of the files deleted below to be checked for and replaced.
Delete the ".olpc-configured" files which tell olpc-configure it does not have to run again. This allows some of the files deleted below to be checked for and replaced.
sudo rm -f /.olpc-configured
sudo rm -vf /.olpc-configured
rm -f /home/olpc/.olpc-configured
rm -vf /home/olpc/.olpc-configured
Destroy any saved network connections. Otherwise the cloned laptop cannot connect to the networks the original laptop used.
Destroy any saved volume settings, forcing defaults:
sudo rm -f /etc/alsa/asound.state
sudo rm -rvf /etc/NetworkManager/system-connections/*
If SSH was enabled, destroy the SSH host key. Otherwise other systems in your network may report problems connecting to the laptops over SSH.
If the installed build is later than 12.1.0 build os9, destroy the saved hostname (<trac>11710</trac>):
sudo rm -f /etc/sysconfig/network
sudo rm -vf /etc/ssh/ssh_host_rsa_key{,.pub}
Destroy the Sugar journal and settings, forcing a first boot name prompt. Otherwise the cloned laptops won't be able to collaborate using activities, or the wrong names will be shown in Chat,
If the installed build is ealier than 10.1.2 build os851, destroy the saved wireless MAC address:
rm -vrf /home/olpc/.sugar /home/olpc/.config/{g,d}conf /home/olpc/.local/share/telepathy
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
Destroy the developer key request file. Otherwise the cloned laptops will apply for developer keys using the original laptop serial number and UUID.
Destroy the SSH host key, forcing regeneration on next boot:
rm -vrf /home/.devkey.html
sudo rm -f /etc/ssh/ssh_host_rsa_key{,.pub}
Destroy the Sugar settings, forcing a first boot name prompt, and fixing collaboration:
Destroy any saved volume settings, forcing defaults. Otherwise the cloned laptop may start with silent speakers or microphone.
rm -rf /home/olpc/.sugar
sudo rm -vf /etc/alsa/asound.state
Immediately shutdown, to avoid asound.state being saved:
If a developer key was ever requested using the Browse activity, or you are not sure, clear the developer key request file:
sync && sudo poweroff -f
rm -rf /home/.devkey.html
If the laptop was ever registered with a school server, or you are not sure, clear the registration by destroying the GConf settings:
rm -rf /home/olpc/.gconf*
Immediately shutdown without restarting sugar, to avoid the .sugar directory being recreated:
sudo poweroff

Latest revision as of 03:32, 24 November 2015

Stop the display manager. The remainder of these fixes must be typed into a virtual console, or a serial port.

sudo service olpc-dm stop

Delete the ".olpc-configured" files which tell olpc-configure it does not have to run again. This allows some of the files deleted below to be checked for and replaced.

sudo rm -vf /.olpc-configured
rm -vf /home/olpc/.olpc-configured

Destroy any saved network connections. Otherwise the cloned laptop cannot connect to the networks the original laptop used.

sudo rm -rvf /etc/NetworkManager/system-connections/*

If SSH was enabled, destroy the SSH host key. Otherwise other systems in your network may report problems connecting to the laptops over SSH.

sudo rm -vf /etc/ssh/ssh_host_rsa_key{,.pub}

Destroy the Sugar journal and settings, forcing a first boot name prompt. Otherwise the cloned laptops won't be able to collaborate using activities, or the wrong names will be shown in Chat,

rm -vrf /home/olpc/.sugar /home/olpc/.config/{g,d}conf /home/olpc/.local/share/telepathy

Destroy the developer key request file. Otherwise the cloned laptops will apply for developer keys using the original laptop serial number and UUID.

rm -vrf /home/.devkey.html

Destroy any saved volume settings, forcing defaults. Otherwise the cloned laptop may start with silent speakers or microphone.

sudo rm -vf /etc/alsa/asound.state

Immediately shutdown, to avoid asound.state being saved:

sync && sudo poweroff -f