Reflashing and Setting Up My Nokia 770
This page contains instructions for myself, but they may be useful for
others as well.
These instructions are for flashing OS2006.2
(SU-18_2006SE_2.2006.39-14_PR_F5_MR0_ARM.bin). Earlier OSes did not
support one-click .install files.
See also: reflashing OS2007 on a Nokia N800.
Backing up stuff before reflashing
- Use the Backup/Restore tool in the Control Panel to create a
backup
- Run my backup-to-mmc shell script in an
xterm (warning: it is very strongly tailored to the set of files I
keep in my home directory)
- You'll also want to put restore.sh in the
'backups' directory in your MMC card
- Write down the list of useful applications that you'll want to
reinstall. Probably openssh, osso-xterm, fbreader, maemo mapper, load
plugin, panel clock, pwsafe, mc, vim, ntpdate. Maybe x11vnc,
vncviewer.
Reflashing
- Make sure you have flasher-2.0 for Linux
- Make sure you have the OS image
- Make sure the battery is fully charged
- Disconnect the charger
- Power off the device
- sudo ./flasher-2.0 -f -F SU-18_*.bin -R (replace
SU-18_*.bin with the filename of the OS image)
- Connect the USB cable and power on the device
Restoring stuff after reflashing
Also known as the tricky part
- Use the Backup/Restore tool in the Control Panel to restore the
backup
- Open http://mg.pov.lt/770/reflash.html
in the browser
- Enable the red-pill
mode in the application installer.
- Use this single-click install file to install openssh
- Disable the red-pill
mode in the application installer.
- ssh root@mg-nokia (replace mg-nokia with the IP of your
device)
- Enter the root password (rootme)
- EDITOR=vi visudo (if you don't know how to use vi, this
page is too technical for you!)
- Add the following two lines:
user ALL = (ALL) NOPASSWD: ALL
root ALL = (ALL) NOPASSWD: ALL
- sudo -u user sh /media/mmc1/backups/restore.sh
- Log out from the ssh session
- Verify that you can now log into your 770 with the SSH public key:
ssh user@mg-nokia (replace mg-nokia with the IP of your
device)
- Verify that you can now use sudo: sudo -s
- Lock down the root account: passwd -l root
- Exit from the root shell and log out from the ssh session
- Add some repositories. You can skip this step, as one-click install
files for the applications will add the repositories they need.
- Maemo extras.
- repository.maemo.org.
Careful with this one, it is primarily intended to be used with
the SDK, so packages in it may not work on the device. Also,
if you blindly do an apt-get upgrade, you may end up with a
device that does not boot.
- Reinstall applications. These one-click install files are
useful (some of these work on the Nokia N800 too, but not all):
Command-line apps:
Command-line apps installable only in red-pill
mode:
Other:
Wishlist:
- vim (TODO: make sure there's a package that suits me somewhere
in the world; in the meantime untar vim7-for-mistral.tar.gz
in /home/user and sudo apt-get install libxt6
- vmstat
After installing everything I still have 34 megs free (89.3 megs used
total).
- If you want to enable "reboot" and "soft poweroff" in the power menu,
sudoedit /etc/systemui/systemui.xml
- Reboot to start the applets you've installed.