martes, 18 de septiembre de 2012

Nokia N900 - The master guide - Part 1

Hi, this is one of my best how to's :P I didn't met people with one of the best cellphone ever, the Nokia N900. Unfortunately, currently is not the big one, but I have one, so I don't want to trash it. After 3 years of constant use, the SIM starts failing suddenly, so I can use the N900 for any purpose, but not as a phone...

This guide is orientated for people that have a little knowledge about GNU/Linux, and then buy this phone but didn't know all the tips and tricks, or didn't have time to search all the things. Here is all the things compressed in a post series.

The series will be split ed in this way:

- BACK-UPING: How to backup the cellphone at 100%, if you acquire the phone today, go to the next step.
- INSTALLING THE OS: How to flash the firmware, etc
- FROM SCRATCH: Adding repositories, installing and configuring SSH and safe over clocking.
- INSTALLING APPS (1): Applications that live in the repositories, and don't have problems.
- INSTALLING APPS (2): Applications that not live in the repositories, and don't have problems, but we need to do some procedures, free and not free.
- INSTALLING APPS (3): Applications that live in the repositories, and don't have problems, but require external files hard to get, generally not free.
- TRICKS, NOTES, TIPS and all the stuff that you always wants to know and you never get it cleared from  what is the correct file to do it.




BACK-UPING:

Games:

AngryBirds /var/opt/rovio/angrybirds/highscores.lua
AngryBirds Rio /home/opt/preenv/usr/palm/applications/highscores.lua
Kroll /home/user/kroll/game_user_info.savegame
The Battle for Wesnoth /home/user/.wesnoth1.8/save_index.gz and the folder /home/user/.wesnoth1.8/saves/ complete
ZenBound /home/user/*.sav
SuperTux /home/user/.supertux/save/
Asphalt 5 /opt/preenv/usr/palm/applications/com.gameloft.app.asphalt5/Asphalt5/data.sav

Back-up for the rest of the things: contacts, chats, SMS, calendar, IM accounts.
Favorites: the MICROB explorer favorites.
Configuration: I will not backup this. I want to make a new configuration.
Application list: I will not backup this. I want to install fresh packages.

Connect the phone trough the USB cable to the computer and copy the files. If you need to copy on / you can use SCP trough SSH (see the next step) or install on the phone the "backupmenu" application, this app makes an image of your phone (for me is too much). If you use windows, you can use nokia ovi suite.

How to copy files trough SCP (using SSH): Install "rootSH" and "openSSH client and server" programs from the aplication manager. During the install, the program will ask you for the root password. PLEASE DON'T FORGET THIS PASSWORD. Once it finished, you have an SSH server running on your phone.

From a Ubuntu GNU/Linux:

Go to Nokia N900, open a terminal and write:

sudo gainroot
ifconfig | grep "inet addr"

and the output will be:

/home/user # ifconfig | grep "inet addr"
inet addr:127.0.0.1 Mask:255.0.0.0
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
/home/user #

The address that you should use is  192.168.1.101. In your Ubuntu, go to places -> personal folder -> file -> connect to server... in the "type of service field" selects SSH, in the server field 192.168.1.101, in the port field 22 and in the user name field "root". Then the program will ask for a password, you must enter the password that you entered before during the installation.


trick: if you have ubuntu with gnome, the file manager is called nautilus, so, press CTRL + H in order to see the hidden folders.

The "backup" program saves the information in  /home/user/Backups, you must copy this entire folder to your computer. Sometimes, it's better to copy the entire /home/user in order to avoid mistakes.

From Windows: you can use winSCP. You can download it from  http://winscp.net/download/winscp434setup.exe

Go to Nokia N900, open a terminal and write:

sudo gainroot
ifconfig | grep "inet addr"

and the output will be:

/home/user # ifconfig | grep "inet addr"
inet addr:127.0.0.1 Mask:255.0.0.0
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
/home/user #

The address that you should use is  192.168.1.101. Then go to the winSCP, use this number as a server address, user root and password, your password.


Mini FAQ:

- Why I need to use SCP?

The Nokia N900 by default has three partitions,

rootfs 256mb (ROM)
mmcblk0p2 2gb (flash)
mmcblk0p1 30gb (flash)


The ROM is a physical IC, and the flash are the 32Gb of internal storage. When we connect the USB cable to the computer, and press on the phone for massive storage, it only mounts mmcblk0p1, and that is /home/user/MyDocs, so, I don't have access to all the things that live in the upper directory levels. Instead of this, if I use SCP, I gain access to the file system root.

Personal advice: It's not necessary under any concept, but it is for free, so you can register in this sites and  save some time if you need help in the future.

http://www.elrincondelmaemo.com/
http://www.phonesfera.com/
http://www.universosymbian.org/
http://talk.maemo.org/
http://www.noeman.org/
http://www.taringa.net/

Also, you can read this article: http://wiki.maemo.org/Manual_backup_and_restore for further reference.

I will upgrade this post adding more things to backup and adding more game saves. bye bye!!

No hay comentarios:

Publicar un comentario